/* VCR Intro Styles - Authentic 80s SEERS VCR */
.vcr-intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #2a1a3a 0%, #1a0a2a 40%, #0a0515 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    overflow: hidden; /* prevent horizontal scroll on small screens */
}
.vcr-intro.hidden { display: none; }
.vcr-device {
    /* Fluid width: fills viewport up to 900px max */
    width: min(900px, 95vw);
    height: auto;
    min-height: 300px;
    background: linear-gradient(180deg, #d0d0d0 0%, #b8b8b8 30%, #a8a8a8 100%);
    border: 4px solid #555;
    border-radius: 6px;
    box-shadow:
        inset 0 3px 0 #e0e0e0,
        inset 0 -4px 0 #808080,
        6px 8px 0 #222,
        10px 14px 35px rgba(0,0,0,0.7);
    position: relative;
    display: flex;
    flex-direction: column;
}

.vcr-wood-grain {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 8px;
    width: 60px;
    background:
        repeating-linear-gradient(90deg,
            rgba(92,64,51,0.95) 0px, rgba(92,64,51,0.95) 12px,
            rgba(107,76,58,0.95) 12px, rgba(107,76,58,0.95) 24px,
            rgba(74,52,40,0.95) 24px, rgba(74,52,40,0.95) 36px
        );
    border-right: 4px solid #4a3328;
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    z-index: 5;
}
.vcr-wood-grain::before {
    content: "SEERS";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    font-family: "Impact", "Arial Black", sans-serif;
    font-size: 16px;
    color: #d4af37;
    text-shadow: 2px 2px 4px #000;
    letter-spacing: 4px;
    white-space: nowrap;
}
.vcr-wood-grain-right {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 8px;
    width: 60px;
    background:
        repeating-linear-gradient(90deg,
            rgba(92,64,51,0.95) 0px, rgba(92,64,51,0.95) 12px,
            rgba(107,76,58,0.95) 12px, rgba(107,76,58,0.95) 24px,
            rgba(74,52,40,0.95) 24px, rgba(74,52,40,0.95) 36px
        );
    border-left: 4px solid #4a3328;
    box-shadow: -2px 0 10px rgba(0,0,0,0.3);
    z-index: 5;
}
.vcr-main {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 25px 25px;
    padding-left: 85px;
    padding-right: 85px;
    gap: 30px;
    position: relative;
    z-index: 2;
}
.vcr-display-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
}
.vcr-display {
    background: #0a0a0a;
    padding: 14px 28px;
    border-radius: 4px;
    border: 4px solid #333;
    box-shadow: inset 0 3px 15px rgba(0,0,0,1);
}
.vcr-display-text {
    font-family: "Courier New", monospace;
    font-size: 38px;
    color: #ff3300;
    text-shadow: 0 0 15px #ff3300, 0 0 30px #ff6600;
    letter-spacing: 6px;
}
.vcr-indicators {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-left: 8px;
}
.vcr-led {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #330000, #110000);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.9);
    border: 2px solid #333;
}
.vcr-led.on {
    background: radial-gradient(circle at 30% 30%, #ff6644, #ff2200);
    box-shadow: 0 0 15px #ff2200;
    animation: led-fire 0.3s infinite;
}
.vcr-led.timer {
    background: radial-gradient(circle at 30% 30%, #ffff00, #ffaa00);
    box-shadow: 0 0 10px #ffaa00;
}
.vcr-led.deck {
    background: radial-gradient(circle at 30% 30%, #00ff66, #00aa33);
    box-shadow: 0 0 10px #00aa33;
}
@keyframes led-fire { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }
.vcr-deck {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vcr-slot-area {
    width: 320px;
    height: 65px;
    position: relative;
    background: linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
    border: 5px solid #444;
    border-radius: 8px;
    box-shadow: inset 0 6px 20px rgba(0,0,0,1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}
.vcr-slot-area::before {
    content: "INSERT";
    position: absolute;
    color: #333;
    font-family: "Arial Black", sans-serif;
    font-size: 14px;
    letter-spacing: 4px;
    opacity: 0.4;
}
.vcr-tape {
    width: 280px;
    height: 46px;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 50%, #0a0a0a 100%);
    border: 4px solid #444;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.8);
    transition: all 2.5s cubic-bezier(0.6, 0, 0.4, 1);
    position: relative;
    z-index: 10;
    transform-origin: center center;
}
.vcr-tape.inserting {
    width: 30px;
    min-width: 30px;
    gap: 0;
    border-radius: 4px;
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
}
.vcr-tape.inserting .vcr-tape-reel {
    display: none;
}
.vcr-tape.inserting .vcr-tape-label {
    display: none;
}
.vcr-tape.inserting::after {
    content: "";
    position: absolute;
    right: -20px;
    width: 40px;
    height: 20px;
    background: linear-gradient(90deg, transparent 0%, #1a1a1a 50%, #2a2a2a 100%);
    opacity: 0;
}
.vcr-tape-label {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(180deg, #fff8dc 0%, #ffefd5 50%, #ffe4b5 100%);
    padding: 3px 8px;
    font-family: "Comic Sans MS", "Brush Script MT", cursive;
    font-size: 8px;
    font-weight: bold;
    color: #8b0000;
    border-radius: 2px;
    /* No uppercase — mixed case looks more hand-written */
    letter-spacing: 0.5px;
    line-height: 1.35;
    white-space: normal;
    text-align: center;
    /* Constrain to the tape width so it never overflows */
    max-width: calc(100% - 16px);
    width: max-content;
    border: 2px solid #daa520;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.8);
}
.vcr-tape-reel {
    width: 28px;
    height: 28px;
    background: radial-gradient(circle at 30% 30%, #555, #222);
    border: 3px solid #666;
    border-radius: 50%;
    position: relative;
    display: block;
}
.vcr-tape-reel::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle at 30% 30%, #555, #2a2a35);
    border: 2px solid #777;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.vcr-tape-reel::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #111;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #444;
}
.vcr-tape-reel .spoke {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 12px;
    background: #333;
    transform-origin: center center;
}
.vcr-tape-reel .spoke:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg); }
.vcr-tape-reel .spoke:nth-child(2) { transform: translate(-50%, -50%) rotate(60deg); }
.vcr-tape-reel .spoke:nth-child(3) { transform: translate(-50%, -50%) rotate(120deg); }
@keyframes reel-rotate { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes reel-spin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(-360deg); } }
.vcr-tape-reel.spinning { animation: reel-rotate 0.1s linear infinite; }
.vcr-tape-reel.spinning .spoke { animation: reel-spin 0.1s linear infinite reverse; }
.vcr-controls-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}
.vcr-controls-row {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.vcr-btn {
    width: 46px;
    height: 40px;
    background: linear-gradient(180deg, #e0e0e0 0%, #c0c0c0 50%, #a0a0a0 100%);
    border: 3px solid;
    border-color: #fff #666 #666 #fff;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 0 #888;
}
.vcr-btn:focus-visible {
    outline: 2px dashed #00ff00;
    outline-offset: 2px;
}
.vcr-btn.play-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #888; }
.vcr-btn svg { width: 16px; height: 16px; fill: #333; }
.vcr-btn span { font-family: Arial, sans-serif; font-size: 7px; color: #333; margin-top: 2px; text-transform: uppercase; }
.vcr-btn.play-btn {
    width: 54px;
    height: 50px;
    background: linear-gradient(180deg, #00cc33 0%, #009922 50%, #006611 100%);
    border-color: #00ff66 #004422 #004422 #00ff66;
    cursor: pointer;
    transition: all 0.1s;
    box-shadow: 0 4px 0 #003311, 0 0 20px rgba(0,255,102,0.3);
}
.vcr-btn.play-btn:hover {
    background: linear-gradient(180deg, #00ff44 0%, #00cc33 50%, #009922 100%);
    transform: scale(1.08);
}
.vcr-btn.play-btn svg {
    width: 24px;
    height: 24px;
    fill: #fff;
    filter: drop-shadow(0 0 6px #fff);
    animation: play-pulse 1s ease-in-out infinite;
}
@keyframes play-pulse {
    0%, 100% { filter: drop-shadow(0 0 6px #fff); }
    50% { filter: drop-shadow(0 0 15px #fff) drop-shadow(0 0 25px #00ff66); }
}
.vcr-btn.rec-btn {
    background: linear-gradient(180deg, #cc2222 0%, #990000 50%, #660000 100%);
    border-color: #ff4444 #550000 #550000 #ff4444;
}
.vcr-btn.rec-btn svg { fill: #fff; }
.vcr-channels {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding-top: 10px;
    border-top: 3px solid #999;
}
.vcr-channel-btn {
    width: 38px;
    height: 30px;
    background: linear-gradient(180deg, #e0e0e0 0%, #b0b0b0 100%);
    border: 3px solid;
    border-color: #fff #888 #888 #fff;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: #333;
    box-shadow: 0 2px 0 #888;
}
.vcr-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 90px;
    border-top: 4px solid #888;
    background: linear-gradient(180deg, #c0c0c0 0%, #b0b0b0 100%);
    position: relative;
    z-index: 2;
}
.vcr-serial { font-family: "Courier New", monospace; font-size: 11px; color: #555; letter-spacing: 2px; }
.vcr-powered { font-family: "Arial Black", sans-serif; font-size: 12px; color: #777; letter-spacing: 2px; }
.vcr-intro::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg, transparent 0px, transparent 3px, rgba(0,0,0,0.02) 3px, rgba(0,0,0,0.02) 4px);
    pointer-events: none;
    z-index: 100;
}

/* =========================================
   RESPONSIVE BREAKPOINTS — VCR INTRO
   Keep the pixel SEERS VCR aesthetic at
   every viewport width.
   ========================================= */

/* Tablet / small desktop: device compresses to ~700px */
@media (max-width: 900px) {
    .vcr-device {
        width: 95vw;
    }
    .vcr-slot-area {
        width: 240px;
        height: 58px;
    }
    .vcr-tape {
        width: 210px;
        height: 40px;
    }
    .vcr-display-text {
        font-size: 28px;
        letter-spacing: 4px;
    }
    .vcr-wood-grain,
    .vcr-wood-grain-right {
        width: 48px;
    }
    .vcr-main {
        padding: 18px 70px;
        gap: 20px;
    }
    .vcr-bottom {
        padding: 12px 70px;
    }
    .vcr-btn {
        width: 40px;
        height: 35px;
    }
    .vcr-btn.play-btn {
        width: 48px;
        height: 44px;
    }
    .vcr-channel-btn {
        width: 32px;
        height: 26px;
        font-size: 10px;
    }
}

/* Small tablet / large phone landscape */
@media (max-width: 700px) {
    .vcr-main {
        padding: 12px 55px;
        gap: 12px;
    }
    .vcr-bottom {
        padding: 10px 55px;
    }
    .vcr-wood-grain,
    .vcr-wood-grain-right {
        width: 38px;
    }
    .vcr-slot-area {
        width: 180px;
        height: 52px;
    }
    .vcr-tape {
        width: 155px;
        height: 36px;
        gap: 30px;
    }
    .vcr-display {
        padding: 10px 16px;
    }
    .vcr-display-text {
        font-size: 22px;
        letter-spacing: 3px;
    }
    .vcr-tape-label {
        font-size: 7px;
        padding: 3px 8px;
    }
    .vcr-btn {
        width: 34px;
        height: 30px;
    }
    .vcr-btn.play-btn {
        width: 40px;
        height: 38px;
    }
    .vcr-btn svg { width: 12px; height: 12px; }
    .vcr-btn.play-btn svg { width: 18px; height: 18px; }
    .vcr-btn span { font-size: 6px; }
    .vcr-channel-btn {
        width: 28px;
        height: 22px;
        font-size: 9px;
    }
    .vcr-serial { font-size: 9px; letter-spacing: 1px; }
    .vcr-powered { font-size: 10px; letter-spacing: 1px; }
}

/* Mobile portrait (~390-500px) */
@media (max-width: 500px) {
    .vcr-intro {
        padding: 8px 0;
        /* stack device more tightly */
        justify-content: center;
    }
    .vcr-wood-grain,
    .vcr-wood-grain-right {
        width: 28px;
    }
    .vcr-wood-grain::before {
        font-size: 11px;
        letter-spacing: 2px;
    }
    .vcr-main {
        padding: 10px 36px;
        gap: 8px;
        flex-wrap: nowrap;
    }
    .vcr-bottom {
        padding: 8px 36px;
    }
    .vcr-display {
        padding: 6px 10px;
        border-width: 3px;
    }
    .vcr-display-text {
        font-size: 16px;
        letter-spacing: 2px;
    }
    .vcr-indicators {
        gap: 8px;
    }
    .vcr-led {
        width: 9px;
        height: 9px;
    }
    .vcr-slot-area {
        width: 130px;
        height: 44px;
        border-width: 3px;
    }
    .vcr-tape {
        width: 108px;
        height: 30px;
        gap: 16px;
        border-width: 2px;
    }
    .vcr-tape-label {
        font-size: 5px;
        padding: 2px 4px;
        letter-spacing: 0;
    }
    .vcr-tape-reel {
        width: 18px;
        height: 18px;
    }
    .vcr-tape-reel .spoke {
        height: 8px;
    }
    .vcr-controls-section {
        gap: 6px;
    }
    .vcr-controls-row {
        gap: 6px;
    }
    .vcr-btn {
        width: 28px;
        height: 24px;
        border-width: 2px;
        border-radius: 4px;
    }
    .vcr-btn.play-btn {
        width: 32px;
        height: 30px;
    }
    .vcr-btn svg { width: 9px; height: 9px; }
    .vcr-btn.play-btn svg { width: 13px; height: 13px; }
    .vcr-btn span { font-size: 5px; margin-top: 1px; }
    .vcr-channels {
        gap: 6px;
        padding-top: 6px;
    }
    .vcr-channel-btn {
        width: 22px;
        height: 18px;
        font-size: 8px;
        border-width: 2px;
        border-radius: 3px;
    }
    .vcr-serial { font-size: 7px; letter-spacing: 1px; }
    .vcr-powered { font-size: 8px; letter-spacing: 1px; }
}