/* =========================================================
   DRAMA PLAYER - CSS REFEITO E CORRIGIDO
   ========================================================= */

.drama-player {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background: #000;
}

/* =========================================================
   BACKGROUND (CORRIGIDO - NÃO USA FIXED)
   ========================================================= */

.player-background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* =========================================================
   SLIDES
   ========================================================= */

.player-slide {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;
    object-fit: cover;

    opacity: 0;
    transform: scale(1.05);

    transition: opacity .8s ease, transform 8s linear;
}

.player-slide.active {
    opacity: 1;
    transform: scale(1);
}

/* =========================================================
   OVERLAY VISUAL
   ========================================================= */

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;

    background: linear-gradient(
        to top,
        rgba(0,0,0,.92),
        rgba(0,0,0,.45),
        rgba(0,0,0,.85)
    );

    backdrop-filter: blur(2px);
}

/* =========================================================
   CONTAINER PRINCIPAL
   ========================================================= */

.player-container {
    position: relative;
    z-index: 5;

    width: 100%;
    max-width: 1100px;

    margin: 0 auto;

    min-height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 40px 25px 80px;
}

/* =========================================================
   TOPO
   ========================================================= */

.player-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
}
/* TAG */
.player-tag {
    display: inline-flex;

    padding: 8px 14px;
    border-radius: 999px;

    background: rgba(255,255,255,.12);
    color: #fff;

    font-size: 13px;
    font-weight: 600;

    margin-bottom: 18px;

    backdrop-filter: blur(12px);
}

/* TÍTULOS */
.player-top h1 {
    color: #fff;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 10px;
}

.player-top h2 {
    color: rgba(255,255,255,.82);
    font-size: 20px;
    font-weight: 500;
}

/* BOTÃO EPISÓDIOS */
.episodes-toggle {
    border: 0;

    background: rgba(255,255,255,.12);
    color: #fff;

    padding: 14px 18px;
    border-radius: 16px;

    cursor: pointer;

    font-size: 15px;
    font-weight: 600;

    backdrop-filter: blur(10px);

    transition: .3s;
}

.episodes-toggle:hover {
    background: rgba(255,255,255,.22);
}

/* =========================================================
   AUDIO CONTROLS
   ========================================================= */

.player-controls {
    width: 100%;
}

.player-controls audio {
    width: 100%;
}

/* =========================================================
   MODAL EPISÓDIOS
   ========================================================= */

.episodes-modal {
    position: fixed;
    inset: 0;

    background: rgba(0,0,0,.65);

    z-index: 999;

    opacity: 0;
    visibility: hidden;

    transition: .3s;
}

.episodes-modal.active {
    opacity: 1;
    visibility: visible;
}

/* SIDEBAR */
.episodes-sidebar {
    position: absolute;
    right: 0;
    top: 0;

    width: 420px;
    max-width: 100%;
    height: 100%;

    background: #111;

    padding: 30px;

    overflow-y: auto;

    transform: translateX(100%);
    transition: .4s ease;
}

.episodes-modal.active .episodes-sidebar {
    transform: translateX(0);
}

/* HEADER */
.episodes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 30px;
}

.episodes-header h3 {
    color: #fff;
    font-size: 26px;
}

.episodes-header button {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* =========================================================
   EPISÓDIOS
   ========================================================= */

.episode-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 18px;
    border-radius: 18px;

    background: rgba(255,255,255,.04);

    margin-bottom: 15px;

    transition: .3s;
}

.episode-item:hover {
    background: rgba(255,255,255,.08);
}

.episode-info span {
    color: #ffcc70;
    font-size: 12px;
    font-weight: 700;
}

.episode-info h4 {
    color: #fff;
    margin: 8px 0;
}

.episode-info small {
    color: rgba(255,255,255,.6);
}

/* BOTÃO EPISÓDIO */
.episode-button {
    border: 0;
    text-decoration: none;

    background: #ff7b00;
    color: #fff;

    padding: 12px 16px;
    border-radius: 12px;

    cursor: pointer;
    font-weight: 700;
}

.episode-item.locked .episode-button {
    background: #333;
}

/* =========================================================
   MODAL PREMIUM
   ========================================================= */

.premium-modal {
    position: fixed;
    inset: 0;

    z-index: 9999;

    background: rgba(0,0,0,.75);

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;

    transition: .3s;
}

.premium-modal.active {
    opacity: 1;
    visibility: visible;
}

.premium-box {
    width: 95%;
    max-width: 420px;

    background: #141414;

    border-radius: 28px;

    padding: 40px;

    text-align: center;
}

.premium-box h3 {
    color: #fff;
    font-size: 28px;

    margin-bottom: 20px;
}

.premium-box p {
    color: rgba(255,255,255,.7);

    line-height: 1.7;

    margin-bottom: 25px;
}

.premium-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 100%;

    padding: 16px;

    border-radius: 16px;

    text-decoration: none;

    background: #ff7b00;
    color: #fff;

    font-weight: 700;

    margin-bottom: 15px;
}

.premium-box button {
    border: 0;
    background: transparent;

    color: rgba(255,255,255,.6);
    cursor: pointer;
}

/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 768px) {

    .player-top {
        flex-direction: column;
    }

    .player-top h1 {
        font-size: 34px;
    }

    .episodes-sidebar {
        width: 100%;
    }
}



/* ==========================================
   AÇÕES DO PLAYER
   ========================================== */

.player-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.player-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 0 18px;

    border: 0;
    border-radius: 14px;

    text-decoration: none;

    background: rgba(255,255,255,.12);
    color: #fff;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    backdrop-filter: blur(10px);

    transition: .25s;
}

.player-action:hover {
    background: rgba(255,255,255,.22);
    transform: translateY(-2px);
}

.next-chapter-countdown {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,.85);
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 16px;
    z-index: 9999;
    display: none;
}