* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: url('RWArrow.cur'), auto;
}

body {
    background: #fff;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.tv-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.85);
}

.tv-container {
    position: relative;
    width: 75vmin;
    max-width: 680px;
    z-index: 6;
}

.tv-container img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 6;
    pointer-events: none;
}

.screen-video {
    position: absolute;
    top: 3.2%;
    left: 5.5%;
    width: 89%;
    height: 78%;
    z-index: 1;
    overflow: hidden;
    border-radius: 8px;
}

.crt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    background:
        repeating-linear-gradient(to bottom,
            transparent 0px,
            transparent 2px,
            rgba(0, 0, 0, 0.15) 2px,
            rgba(0, 0, 0, 0.15) 4px);
    mix-blend-mode: multiply;
}

.crt-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center,
            transparent 50%,
            rgba(0, 0, 0, 0.35) 100%);
}

.crt-overlay::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(130, 255, 130, 0.03);
    animation: flicker 0.1s infinite alternate;
}

@keyframes flicker {
    0% {
        opacity: 0.95;
    }

    100% {
        opacity: 1;
    }
}

.screen-video iframe,
.screen-video div {
    width: 130%;
    height: 130%;
    margin-left: -15%;
    margin-top: -10%;
    border: none;
    pointer-events: none;
}

.vcr-wrapper {
    width: 115%;
    margin-top: -20px;
    perspective: 800px;
    z-index: 3;
}

.vcr-top {
    width: 100%;
    height: 30px;
    background: linear-gradient(180deg,
            #6a6a6a 0%,
            #5a5a5a 30%,
            #4a4a4a 70%,
            #404040 100%);
    border-radius: 4px 4px 0 0;
    transform: rotateX(40deg);
    transform-origin: bottom center;
    position: relative;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    border: 1px solid #555;
    border-bottom: none;
}

.vcr-top::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 15%;
    width: 25%;
    height: 8px;
    background: repeating-linear-gradient(90deg,
            #555 0px, #555 2px,
            #4a4a4a 2px, #4a4a4a 6px);
    border-radius: 1px;
    opacity: 0.5;
}

.vcr-top::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 15%;
    width: 25%;
    height: 8px;
    background: repeating-linear-gradient(90deg,
            #555 0px, #555 2px,
            #4a4a4a 2px, #4a4a4a 6px);
    border-radius: 1px;
    opacity: 0.5;
}

.vcr {
    width: 100%;
    position: relative;
    background: linear-gradient(180deg,
            #4a4a4a 0%,
            #3d3d3d 2%,
            #333 5%,
            #2a2a2a 15%,
            #222 40%,
            #1e1e1e 60%,
            #1a1a1a 85%,
            #151515 95%,
            #111 100%);
    border-radius: 0 0 10px 10px;
    padding: 18px 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    box-shadow:
        0 6px 12px rgba(0, 0, 0, 0.5),
        0 12px 30px rgba(0, 0, 0, 0.35),
        0 2px 2px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -2px 0 rgba(0, 0, 0, 0.6),
        inset 2px 0 0 rgba(255, 255, 255, 0.04),
        inset -2px 0 0 rgba(0, 0, 0, 0.2);
    border: 1px solid #4a4a4a;
    border-top: 1px solid #555;
    border-bottom: 3px solid #0a0a0a;
    border-left: 2px solid #3a3a3a;
    border-right: 2px solid #1a1a1a;
}

.vcr::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.04), transparent);
    pointer-events: none;
}

.vcr::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.06), transparent);
}

.vcr-slot {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 6px;
    background: linear-gradient(to bottom, #050505, #111 40%, #0a0a0a);
    border-radius: 0 0 4px 4px;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.9),
        inset 0 -1px 0 rgba(255, 255, 255, 0.03),
        0 1px 0 rgba(255, 255, 255, 0.05);
}

.vcr-ridge {
    position: absolute;
    top: 14px;
    left: 10px;
    right: 10px;
    height: 1px;
    background: linear-gradient(to right,
            transparent 0%,
            rgba(255, 255, 255, 0.06) 20%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0.06) 80%,
            transparent 100%);
}

.vcr-display {
    flex: 1;
    background: linear-gradient(135deg, #080e08, #0a140a 50%, #060c06);
    border: 1px solid #2a2a2a;
    border-top-color: #1a1a1a;
    border-bottom-color: #3a3a3a;
    border-radius: 4px;
    padding: 8px 12px;
    margin-right: 10px;
    min-width: 0;
    overflow: hidden;
    box-shadow:
        inset 0 3px 8px rgba(0, 0, 0, 0.7),
        inset 0 -1px 0 rgba(255, 255, 255, 0.03),
        0 1px 0 rgba(255, 255, 255, 0.06);
}

.vcr-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.vcr-label {
    font-family: "Courier New", monospace;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #4a6a4a;
}

.vcr-title {
    font-family: "Courier New", monospace;
    font-size: 11px;
    color: #00ff00;
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.5);
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vcr-channel {
    font-family: "Courier New", monospace;
    font-size: 15px;
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.6);
    width: 50px;
    text-align: center;
    flex-shrink: 0;
}

.vcr-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.vcr-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #1a1a1a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 30% 30%, #666, #444 30%, #2a2a2a 60%, #1a1a1a 80%, #111);
    box-shadow:
        0 3px 6px rgba(0, 0, 0, 0.7),
        0 1px 2px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.15),
        inset 0 -1px 1px rgba(0, 0, 0, 0.3);
    color: #ccc;
    font-size: 14px;
    transition: all 0.15s;
}

.vcr-btn:hover {
    background:
        radial-gradient(circle at 30% 30%, #777, #555 30%, #333 60%, #222 80%, #1a1a1a);
    color: #fff;
}

.vcr-btn:active {
    transform: scale(0.92) translateY(1px);
    background:
        radial-gradient(circle at 50% 50%, #333, #222 40%, #1a1a1a 70%, #111);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.6),
        inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.vcr-btn.mute-btn {
    font-size: 8px;
    font-family: "Courier New", monospace;
    width: auto;
    border-radius: 15px;
    padding: 0 10px;
}

.vcr-brand {
    font-family: Arial, sans-serif;
    font-size: 10px;
    color: #555;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: absolute;
    bottom: 4px;
    right: 14px;
}

.credit {
    position: fixed;
    bottom: 10px;
    left: 15px;
    z-index: 10;
    font-family: "Lucida Grande", Tahoma, Verdana, Arial, sans-serif;
    font-size: 11px;
    color: #888;
}

.credit a {
    color: #555;
    text-decoration: none;
    font-weight: bold;
}

.credit a:hover {
    color: #000;
    text-decoration: underline;
}

.site-logo {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.site-logo img {
    height: 30px;
    width: auto;
}

.guide-desc {
    width: 280px;
    z-index: 15;
    display: none;
    align-self: flex-start;
    margin-top: 10%;
    flex-shrink: 0;
}

.guide-desc.visible {
    display: block;
}

.guide-desc-title {
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: bold;
    color: #000;
    margin-bottom: 8px;
}

.guide-desc-text {
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: #000;
}

.guide-desc-cursor {
    display: inline-block;
    width: 2px;
    height: 14px;
    background: #000;
    margin-left: 1px;
    vertical-align: text-bottom;
    animation: blink-cursor 0.6s step-end infinite;
}

@keyframes blink-cursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.camera-btn {
    position: fixed;
    bottom: 20px;
    right: 155px;
    z-index: 20;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: transform 0.15s ease;
}

.camera-btn:hover {
    transform: scale(1.1);
}

.camera-btn:active {
    transform: scale(0.9);
}

.camera-btn img {
    width: 45px;
    height: auto;
}

.random-btn {
    position: fixed;
    bottom: 20px;
    right: 90px;
    z-index: 20;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: transform 0.15s ease;
}

.random-btn:hover {
    transform: scale(1.1);
}

.random-btn:active {
    transform: scale(0.9);
}

.random-btn img {
    width: 50px;
    height: auto;
}

.tvguide-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 20;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: transform 0.15s ease;
}

.tvguide-btn:hover {
    transform: scale(1.1);
}

.tvguide-btn:active {
    transform: scale(0.9);
}

.tvguide-btn img {
    width: 60px;
    height: auto;
}

@media (max-width: 768px) {
    .guide-desc {
        position: fixed;
        bottom: 60px;
        top: auto;
        left: 10px;
        right: 10px;
        width: auto;
        margin-top: 0;
        text-align: center;
    }

    .guide-desc-title {
        display: none;
    }

    .guide-desc-text {
        font-size: 12px;
        line-height: 1.5;
    }

    .vcr-wrapper {
        width: 115%;
    }

    .vcr {
        height: 70px;
        min-height: 70px;
        max-height: 70px;
    }

    .vcr-display {
        overflow: hidden;
    }

    .vcr-title {
        max-width: 120px;
    }

    .camera-btn {
        bottom: 10px;
        right: 105px;
    }

    .camera-btn img {
        width: 30px;
    }

    .random-btn {
        bottom: 10px;
        right: 60px;
    }

    .random-btn img {
        width: 35px;
    }

    .tvguide-btn {
        bottom: 10px;
        right: 10px;
    }

    .tvguide-btn img {
        width: 40px;
    }
}
