@import url('https://fonts.googleapis.com/css2?family=Creepster&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-dark: #070709;
    --bg-card: #111115;
    --primary: #cc1111;
    --primary-glow: rgba(204, 17, 17, 0.4);
    --text-primary: #f3f4f6;
    --text-muted: #9ca3af;
    --font-horror: 'Creepster', cursive;
    --font-ui: 'Inter', sans-serif;
    --category-color: #111115; /* Alterado dinamicamente via JS */
}

/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

body, html {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-ui);
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* Hide default scrollbars but allow scrolling */
::-webkit-scrollbar {
    display: none;
}

/* Orientation Warning Screen */
.orientation-warning {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 9999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
}

.orientation-warning-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    animation: rotatePhone 2s infinite ease-in-out;
}

.orientation-warning-text h2 {
    font-family: var(--font-horror);
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 10px;
}

.orientation-warning-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

@keyframes rotatePhone {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(-90deg); }
    100% { transform: rotate(0deg); }
}

/* Media query to detect landscape rotation in mobile */
@media screen and (orientation: landscape) and (max-height: 550px) {
    .orientation-warning {
        display: flex;
    }
}

/* SPA Screen Manager */
.screen-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.96);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.screen.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    z-index: 2;
}

/* --- TELA 1: TERMOS DE USO --- */
.terms-screen {
    background: radial-gradient(circle at center, #200408 0%, var(--bg-dark) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 24px;
}

.terms-header {
    text-align: center;
    margin-bottom: 30px;
}

.terms-header h1 {
    font-family: var(--font-horror);
    color: var(--primary);
    font-size: 3.2rem;
    letter-spacing: 2px;
    text-shadow: 0 0 15px var(--primary-glow);
}

.terms-header p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.terms-box {
    background: rgba(17, 17, 21, 0.85);
    border: 1px solid rgba(204, 17, 17, 0.2);
    border-radius: 12px;
    padding: 20px;
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 25px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.terms-box h3 {
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.terms-box p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
}

.terms-agreement {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 30px;
    cursor: pointer;
}

.terms-agreement input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    background: transparent;
    position: relative;
    flex-shrink: 0;
}

.terms-agreement input[type="checkbox"]:checked {
    background: var(--primary);
}

.terms-agreement input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: bold;
}

.terms-agreement span {
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.btn-pulse {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 14px 40px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 0 15px var(--primary-glow);
    transition: transform 0.2s ease;
    animation: buttonPulse 2s infinite;
}

.btn-pulse:disabled {
    background: #444;
    cursor: not-allowed;
    animation: none;
    box-shadow: none;
}

@keyframes buttonPulse {
    0% { transform: scale(1); box-shadow: 0 0 10px var(--primary-glow); }
    50% { transform: scale(1.03); box-shadow: 0 0 25px var(--primary-glow); }
    100% { transform: scale(1); box-shadow: 0 0 10px var(--primary-glow); }
}

/* --- TELA 2: HOME NETFLIX STYLE --- */
.home-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 10;
}


.home-offline-badge {
    background: #f59e0b;
    color: #000;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 700;
    display: none;
    text-transform: uppercase;
}

/* Featured Banner */
.featured-banner {
    position: relative;
    width: 100%;
    height: 48vh;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}

.featured-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--bg-dark) 0%, rgba(7, 7, 9, 0.3) 60%, rgba(0,0,0,0.6) 100%);
}

.featured-content {
    position: relative;
    z-index: 2;
    max-width: 90%;
    margin-bottom: 10px;
}

.featured-title {
    font-family: var(--font-horror);
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 6px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    line-height: 1;
}

.featured-synopsis {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}

.btn-play-featured {
    background: #fff;
    color: #000;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

/* Rows styling */
.rows-container {
    padding: 10px 0 100px 0; /* Espaço para o player fixo na base */
}

.category-row {
    margin-bottom: 24px;
    padding-left: 20px;
}

.row-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
    letter-spacing: 0.5px;
}

.cards-scroller {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    padding-right: 20px;
}

.card {
    flex: 0 0 130px;
    aspect-ratio: 2/3;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.card:active {
    transform: scale(0.96);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 8px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* --- TELA 3: DETALHES DA CATEGORIA --- */
.category-screen {
    background-color: var(--category-color);
    transition: background-color 0.4s ease;
}

.category-hero {
    position: relative;
    height: 38vh;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.category-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--category-color) 0%, rgba(0,0,0,0.4) 100%);
}

.btn-back {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.category-hero-content {
    position: relative;
    z-index: 2;
    padding: 24px 20px 10px 20px;
}

.category-title {
    font-family: var(--font-horror);
    font-size: 2.5rem;
    line-height: 1;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}

.category-body {
    background: linear-gradient(to bottom, var(--category-color) 0%, var(--bg-dark) 100%);
    padding: 0 20px 120px 20px; /* Espaço para o player na base */
    flex: 1;
}

.category-synopsis {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.category-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.btn-play-all {
    flex: 1;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(204, 17, 17, 0.3);
}

.btn-download-cat {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 12px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

/* Playlist / Track Items */
.playlist-section h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
}

.track-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.track-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 8px;
    padding: 12px 14px;
    cursor: pointer;
    gap: 12px;
    transition: background 0.2s ease;
}

.track-item:active {
    background: rgba(255, 255, 255, 0.08);
}

.track-item.playing {
    border-color: var(--primary);
    background: rgba(204, 17, 17, 0.05);
}

.track-number {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    width: 24px;
}

.track-info {
    flex: 1;
    min-width: 0;
}

.track-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Resume progress bar in details */
.track-progress-container {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
    display: none;
}

.track-progress-bar {
    width: 0%;
    height: 100%;
    background: var(--primary);
}

.track-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-track-download {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-track-download.downloaded {
    color: #10b981;
}

/* --- REPRODUTOR DE HÍSTÓRIAS (PERSISTENT / FULL OVERLAY) --- */
.player-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #09090b;
    border-top: 1px solid rgba(255,255,255,0.08);
    z-index: 100;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

/* Estado Minimizado: Barra na base */
.player-overlay.minimized {
    height: 64px;
    transform: translate3d(0, 0, 0);
}

/* Estado VHS: Equipamento 160px na base */
.player-overlay.vhs {
    height: 160px;
    transform: translate3d(0, 0, 0);
}

/* Estado Expandido: Tela cheia */
.player-overlay.expanded {
    height: 100%;
    transform: translate3d(0, 0, 0);
    background: radial-gradient(circle at center, #2e0307 0%, #070709 100%);
}

/* Ao esconder o player totalmente */
.player-overlay.hidden {
    transform: translate3d(0, 100%, 0);
}

/* Ocultar e exibir layouts dinamicamente com base no estado do overlay */
.player-overlay .mini-player-layout,
.player-overlay .vhs-player-layout,
.player-overlay .expanded-player-layout {
    display: none;
}

.player-overlay.minimized .mini-player-layout {
    display: flex;
}

.player-overlay.vhs .vhs-player-layout {
    display: flex;
}

.player-overlay.expanded .expanded-player-layout {
    display: flex;
}

/* Layout Mini-player (Minimizado 64px) */
.mini-player-layout {
    align-items: center;
    width: 100%;
    height: 64px;
    padding: 0 16px;
    gap: 12px;
    cursor: pointer;
}

.mini-player-img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    background: #000;
}

.mini-player-info {
    flex: 1;
    min-width: 0;
}

.mini-player-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-player-cat {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.mini-player-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-mini-control {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

/* ==========================================================================
   NOVO ESTILO: PLAYER VHS / RACK ANALÓGICO DE CREEPYPASTA (160px)
   ========================================================================== */
.vhs-player-layout {
    width: 100%;
    height: 160px;
    background: #111115;
    background-image: 
        radial-gradient(rgba(255,255,255,0.02) 1px, transparent 0),
        linear-gradient(180deg, #16161d 0%, #09090b 100%);
    background-size: 4px 4px, 100% 100%;
    border-top: 3px solid #cc1111;
    box-shadow: 
        inset 0 3px 5px rgba(255,255,255,0.05), 
        inset 0 -3px 5px rgba(0,0,0,0.8), 
        0 -4px 20px rgba(0,0,0,0.7);
    padding: 10px 14px;
    box-sizing: border-box;
    position: relative;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

/* Hazard Stripe Retrô na borda superior */
.vhs-player-layout::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: repeating-linear-gradient(
        -45deg,
        #cc1111,
        #cc1111 6px,
        #111115 6px,
        #111115 12px
    );
    opacity: 0.85;
}

/* Parafusos de Montagem do Rack */
.vhs-screw {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #555 20%, #1a1a1a 80%);
    border-radius: 50%;
    box-shadow: 1px 1px 1px rgba(0,0,0,0.8), inset 1px 1px 0 rgba(255,255,255,0.2);
}
.vhs-screw.top-left { top: 7px; left: 7px; }
.vhs-screw.top-right { top: 7px; right: 7px; }
.vhs-screw.bottom-left { bottom: 7px; left: 7px; }
.vhs-screw.bottom-right { bottom: 7px; right: 7px; }

/* PAINEL DO DISPLAY LCD + EQUALIZADOR */
.vhs-display-panel {
    display: flex;
    flex-direction: column;
    flex: 1.35;
    height: 100%;
    background: #060608;
    border: 2px solid #242429;
    border-radius: 6px;
    padding: 6px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.95);
    min-width: 0;
    gap: 5px;
    box-sizing: border-box;
}

.vhs-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.65rem;
    color: #555;
    font-family: monospace;
    padding: 0 2px;
}

.vhs-badge {
    color: #888;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.vhs-signal-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
}

.vhs-signal-text {
    color: #666;
    font-size: 0.6rem;
    font-weight: bold;
}

.vhs-signal-led {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #330808;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.vhs-signal-led.active {
    background-color: #ff3333;
    box-shadow: 0 0 6px #ff3333;
    animation: blinkLed 0.8s infinite alternate;
}

@keyframes blinkLed {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Visor LCD Retrô Verde */
.vhs-lcd-screen {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #09170e;
    border: 1px solid #142e1d;
    border-radius: 4px;
    padding: 4px 8px;
    font-family: 'Courier New', Courier, monospace;
    color: #33ff66;
    text-shadow: 0 0 3px rgba(51, 255, 102, 0.6);
    height: 38px;
    gap: 8px;
    box-sizing: border-box;
}

.vhs-lcd-text-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vhs-lcd-title {
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.3px;
}

.vhs-lcd-cat {
    font-size: 0.58rem;
    color: #1a8838;
    font-weight: bold;
}

.vhs-digital-counter {
    font-size: 1.15rem;
    font-weight: bold;
    letter-spacing: 1px;
    color: #ff9900;
    text-shadow: 0 0 4px rgba(255, 153, 0, 0.6);
}

/* Container do Equalizador */
.vhs-canvas-container {
    flex: 1;
    width: 100%;
    position: relative;
    background: #020203;
    border-radius: 3px;
    border: 1px solid #18181f;
    overflow: hidden;
}

#vhs-equalizer-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* PAINEL DE CONTROLE (BOTOES + VHS DECK) */
.vhs-control-panel {
    display: flex;
    flex-direction: column;
    flex: 1.05;
    height: 100%;
    justify-content: space-between;
    padding: 2px 0;
    gap: 6px;
    min-width: 0;
    box-sizing: border-box;
}

/* Compartimento VHS / Fita Cassete */
.vhs-cassette-deck {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #060608;
    border: 2px solid #242429;
    border-radius: 6px;
    height: 52px;
    padding: 4px 10px;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.9);
    box-sizing: border-box;
}

.vhs-window {
    flex: 1;
    height: 100%;
    background: rgba(15, 15, 18, 0.95);
    border: 1px solid #2d2d35;
    border-radius: 3px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 8px;
    position: relative;
    overflow: hidden;
}

.vhs-window::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.03);
    top: 50%;
    left: 0;
}

.vhs-reel {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 3px dashed #3a3a42;
    background: radial-gradient(circle, #050505 30%, #1b1b22 70%);
    position: relative;
    box-sizing: border-box;
}

.vhs-reel::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #25252b;
    border: 1px solid #444;
}

.vhs-reel.spinning {
    animation: rotateReel 4s infinite linear;
}

@keyframes rotateReel {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.vhs-cassette-label {
    font-size: 0.52rem;
    font-family: monospace;
    color: #cc1111;
    text-shadow: 0 0 2px rgba(204, 17, 17, 0.4);
    text-transform: uppercase;
    font-weight: bold;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    margin-left: 8px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Grade de Botões anos 90 */
.vhs-buttons-grid {
    display: flex;
    gap: 5px;
    width: 100%;
    justify-content: space-between;
}

.vhs-btn {
    flex: 1;
    height: 38px;
    background: linear-gradient(135deg, #2e2e34 0%, #161619 100%);
    border: 1px solid #0b0b0c;
    border-radius: 4px;
    color: #d1d1d6;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 
        inset 1px 1px 1px rgba(255,255,255,0.1),
        0 2px 3px rgba(0,0,0,0.6);
    position: relative;
    transition: all 0.08s ease;
    outline: none;
    user-select: none;
}

.vhs-btn:active {
    background: linear-gradient(135deg, #111113 0%, #202024 100%);
    box-shadow: 
        inset 1px 1px 3px rgba(0,0,0,0.8),
        0 1px 1px rgba(255,255,255,0.05);
    transform: translateY(1px);
}

.vhs-btn-play {
    background: linear-gradient(135deg, #c30f0f 0%, #660000 100%);
    border-color: #4a0000;
    color: #fff;
    font-weight: bold;
}

.vhs-btn-play:active {
    background: linear-gradient(135deg, #4c0000 0%, #7d0d0d 100%);
}

.vhs-play-led {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #2c0505;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.vhs-play-led.active {
    background-color: #00ff66;
    box-shadow: 0 0 6px #00ff66;
}

/* BOTÕES UTILITÁRIOS LATERAIS */
.vhs-util-controls {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 2px 0;
    gap: 8px;
    box-sizing: border-box;
}

.vhs-util-btn {
    width: 26px;
    height: 46px;
    border-radius: 4px;
    border: 1px solid #0c0c0d;
    color: #aaa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.08s ease;
    outline: none;
    font-weight: bold;
}

.btn-vhs-minimize {
    background: linear-gradient(135deg, #35353d 0%, #1d1d21 100%);
    box-shadow: inset 1px 1px 1px rgba(255,255,255,0.08), 0 2px 2px rgba(0,0,0,0.5);
}

.btn-vhs-minimize:active {
    background: #141416;
    box-shadow: inset 1px 1px 3px rgba(0,0,0,0.9);
    transform: translateY(1px);
}

.btn-vhs-close {
    background: linear-gradient(135deg, #4d4d54 0%, #2a2a2e 100%);
    box-shadow: inset 1px 1px 1px rgba(255,255,255,0.08), 0 2px 2px rgba(0,0,0,0.5);
    color: #ff3333;
}

.btn-vhs-close:active {
    background: #1b1b1d;
    box-shadow: inset 1px 1px 3px rgba(0,0,0,0.9);
    transform: translateY(1px);
}

.vhs-min-arrow {
    font-size: 0.65rem;
}

/* Layout Expandido */
.expanded-player-layout {
    display: none;
    flex-direction: column;
    height: 100%;
    padding: 30px 24px;
    justify-content: space-between;
}

.player-overlay.expanded .mini-player-layout {
    display: none;
}

.player-overlay.expanded .expanded-player-layout {
    display: flex;
}

/* Topo do Player Expandido */
.expanded-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-collapse {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.expanded-header-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Cover do Player */
.expanded-cover-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
}

.expanded-cover {
    width: 65vw;
    max-width: 250px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(204, 17, 17, 0.2);
    box-shadow: 0 0 30px var(--primary-glow);
    background: #000;
    transition: transform 0.5s ease;
}

/* Efeito de rotação ao dar Play */
.expanded-cover.playing {
    animation: rotateCover 25s infinite linear;
}

@keyframes rotateCover {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Info do Áudio Expandido */
.expanded-info {
    text-align: center;
    margin-bottom: 20px;
}

.expanded-title {
    font-family: var(--font-horror);
    color: #fff;
    font-size: 1.8rem;
    letter-spacing: 1px;
    margin-bottom: 6px;
    line-height: 1.1;
}

.expanded-cat {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Seeker (Barra de progresso de veia pulsante) */
.expanded-seeker-container {
    margin-bottom: 20px;
}

.time-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.seeker-bar {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.1);
    outline: none;
    cursor: pointer;
    position: relative;
}

/* Slider Track styling */
.seeker-bar::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
}

/* Slider Thumb (Glowing red point) */
.seeker-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary);
    margin-top: -4px; /* centraliza */
}

/* Controles Principais do Player */
.expanded-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    margin-bottom: 20px;
}

.btn-control-secondary {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.btn-control-secondary:active {
    color: #fff;
}

.btn-control-main {
    background: var(--primary);
    color: #fff;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: none;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 20px var(--primary-glow);
    transition: transform 0.2s ease;
}

.btn-control-main:active {
    transform: scale(0.94);
}

/* --- ABAS DE NAVEGAÇÃO (RÁDIO / BLOG) --- */
.nav-tabs-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 20px 0 10px 0;
    padding: 0 20px;
    position: relative;
    z-index: 5;
}

.nav-tab {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    border-radius: 30px;
    padding: 8px 24px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    user-select: none;
}

.nav-tab:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-tab.active {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.hidden-tab {
    display: none !important;
}

/* --- BLOG GRID (CATÁLOGO NETFLIX STYLE) --- */
#blog-content-container {
    padding: 10px 20px 120px 20px; /* Margem para o rodapé */
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
}

.blog-card {
    aspect-ratio: 2/3;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, border-color 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.blog-card:active {
    transform: scale(0.96);
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-img {
    transform: scale(1.04);
}

.blog-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    line-height: 1.25;
}

/* --- TELA DE LEITURA DE CONTOS --- */
.story-reading-screen {
    background-color: var(--bg-dark) !important;
}

.story-hero {
    position: relative;
    height: 38vh;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.story-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--bg-dark) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.story-hero-content {
    position: relative;
    z-index: 2;
    padding: 24px 20px 14px 20px;
}

.story-title {
    font-family: var(--font-horror);
    font-size: 2.2rem;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
    letter-spacing: 0.5px;
}

.story-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.story-body {
    background: var(--bg-dark);
    padding: 24px 20px 120px 20px; /* Margem para o rodapé */
    flex: 1;
    overflow-y: auto;
}

.story-content {
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #e5e7eb;
    letter-spacing: 0.3px;
}

.story-content p {
    margin-bottom: 22px;
    text-align: justify;
}
