/* ── Video Player Section ─────────────────────────── */

.player-section {
    margin: 2rem 0;
    background: #1a1a2e;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #2d2d3d;
}

.player-section h3 {
    color: #fff;
    font-size: 1.25rem;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-section h3 i {
    color: #e50914;
}

/* ── Server Tabs ─────────────────────────────────── */

.server-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

.server-tab {
    background: #2d2d3d;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 8px 14px;
    color: #ccc;
    cursor: pointer;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    font-family: inherit;
}

.server-tab:hover {
    background: #3d3d4d;
    border-color: #555;
}

.server-tab.active {
    background: #e50914;
    border-color: #e50914;
    color: #fff;
}

.server-tab i {
    font-size: 0.75rem;
}

.server-lang {
    font-weight: 600;
}

.server-quality {
    background: rgba(255,255,255,0.2);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.75rem;
    color: #fff;
}

.server-tab.active .server-quality {
    background: rgba(255,255,255,0.3);
}

.server-name {
    color: #aaa;
    font-size: 0.75rem;
}

.server-tab.active .server-name {
    color: rgba(255,255,255,0.7);
}

/* ── Player Container ────────────────────────────── */

.player-container {
    margin-bottom: 1rem;
}

.player-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.player-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #000;
    transition: background 0.3s;
    gap: 10px;
}

.player-placeholder i {
    font-size: 4rem;
    color: #e50914;
    transition: transform 0.2s;
}

.player-placeholder span {
    color: #ccc;
    font-size: 0.9rem;
}

.player-placeholder:hover {
    background: #111;
}

.player-placeholder:hover i {
    transform: scale(1.15);
}

.player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ── Download Section ────────────────────────────── */

.download-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #2d2d3d;
}

.download-section h4 {
    color: #ccc;
    font-size: 1rem;
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-section h4 i {
    color: #28a745;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
}

.download-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #2d2d3d;
    border-radius: 6px;
    color: #ccc;
    text-decoration: none;
    font-size: 0.82rem;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.download-link:hover {
    background: #3d3d4d;
    border-color: #28a745;
    color: #fff;
}

.download-link i {
    color: #28a745;
    font-size: 1rem;
    flex-shrink: 0;
}

.dl-server {
    font-weight: 600;
    text-transform: capitalize;
}

.dl-quality {
    background: rgba(255,255,255,0.1);
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.72rem;
    margin-left: auto;
}

.dl-lang {
    color: #aaa;
    font-size: 0.75rem;
}

/* ── Redirect Notice (no video) ──────────────────── */

.player-redirect .redirect-notice {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: #0d0d15;
    border-radius: 8px;
}

.redirect-notice > i {
    font-size: 3rem;
    color: #ffc107;
    margin-bottom: 1rem;
    display: block;
}

.redirect-notice p {
    color: #a8a8bc;
    font-size: 0.95rem;
    margin: 0 0 1.25rem;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.btn-watch-external {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #e50914;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-watch-external:hover {
    background: #ff1a25;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
    color: #fff;
}

/* ── Responsive ──────────────────────────────────── */

@media (max-width: 768px) {
    .player-section {
        padding: 1rem;
        margin: 1rem -0.5rem;
        border-radius: 8px;
    }

    .server-tabs {
        gap: 6px;
    }

    .server-tab {
        padding: 6px 10px;
        font-size: 0.78rem;
    }

    .server-name {
        display: none;
    }

    .download-grid {
        grid-template-columns: 1fr;
    }
}
