:root {
    --bg-color: #fdf5e6;
    --card-bg: #ffffff;
    --card-border: #f0cbb5;
    --text-color: #555;
    --title-color: #d17a3a;
    --hover-glow: rgba(255, 140, 0, 0.4);
    --hover-border: #ff8c00;
    --footer-bg: linear-gradient(to bottom, #d9d9d9, #efefef);
    --accent-color: #ff8c00;
    --page-gradient: radial-gradient(circle at center, #ffffff 0%, #fae6d1 100%);
    --card-inner-bg: linear-gradient(135deg, #fdfdfd, #fff1e0);
    --partner-card-inner-bg: linear-gradient(135deg, #fdfdfd, #fbeddf);
}
body.theme-indy {
    --bg-color: #1a1a1a;
    --card-bg: #2a2a2a;
    --card-border: #444;
    --text-color: #ccc;
    --title-color: #ff4d4d;
    --hover-glow: rgba(255, 0, 0, 0.5);
    --hover-border: #ff3333;
    --footer-bg: linear-gradient(to bottom, #222, #111);
    --accent-color: #ff3333;
    --page-gradient: radial-gradient(circle at center, #333333 0%, #111111 100%);
    --card-inner-bg: linear-gradient(135deg, #3a3a3a, #222222);
    --partner-card-inner-bg: linear-gradient(135deg, #333333, #1a1a1a);
}
body.theme-indy .channel-card h2 { color: #fff; }
body.theme-indy .clock { color: #eee; }
body.theme-indy .date { color: #aaa; }
body.theme-indy .menu-footer { border-top-color: #444; }
body.theme-vickz {
    --bg-color: #e6ebf5;
    --card-bg: #ffffff;
    --card-border: #b5c6f0;
    --text-color: #444;
    --title-color: #3a5bd1;
    --hover-glow: rgba(255, 51, 51, 0.4);
    --hover-border: #ff3333;
    --footer-bg: linear-gradient(to bottom, #d9d9d9, #efefef);
    --accent-color: #3366ff;
    --page-gradient: radial-gradient(circle at center, #ffffff 0%, #d1dbfa 100%);
    --card-inner-bg: linear-gradient(135deg, #fdfdfd, #e0e8ff);
    --partner-card-inner-bg: linear-gradient(135deg, #fdfdfd, #ffe0e0);
}
body.theme-night {
    --bg-color: #fdfde6;
    --card-bg: #ffffff;
    --card-border: #f0eab5;
    --text-color: #555;
    --title-color: #d1b83a;
    --hover-glow: rgba(255, 215, 0, 0.4);
    --hover-border: #ffd700;
    --footer-bg: linear-gradient(to bottom, #d9d9d9, #efefef);
    --accent-color: #ffcc00;
    --page-gradient: radial-gradient(circle at center, #ffffff 0%, #faf3d1 100%);
    --card-inner-bg: linear-gradient(135deg, #fdfdfd, #fffbe0);
    --partner-card-inner-bg: linear-gradient(135deg, #fdfdfd, #fbf7df);
}
body.theme-doublexxp {
    --bg-color: #201a2a;
    --card-bg: #2a2235;
    --card-border: #4a3565;
    --text-color: #e0d5f5;
    --title-color: #b580ff;
    --hover-glow: rgba(181, 128, 255, 0.4);
    --hover-border: #b580ff;
    --footer-bg: linear-gradient(to bottom, #2b2238, #1a1522);
    --accent-color: #a866ff;
    --page-gradient: radial-gradient(circle at center, #352a45 0%, #171220 100%);
    --card-inner-bg: linear-gradient(135deg, #3d3050, #251d32);
    --partner-card-inner-bg: linear-gradient(135deg, #352a45, #1f182a);
}
body.theme-doublexxp .channel-card h2 { color: #fff; }
body.theme-doublexxp .clock { color: #eee; }
body.theme-doublexxp .date { color: #aaa; }
body.theme-doublexxp .menu-footer { border-top-color: #4a3565; }
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
    cursor: url('wiimouse/wii-pointer-blue.cur'), auto;
}
a, button, .channel-card, .footer-btn {
    cursor: url('wiimouse/wii-pointer-blue.cur'), pointer !important;
}
.screen-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    background: var(--page-gradient);
}
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.02),
        rgba(0, 0, 0, 0.02) 2px,
        transparent 2px,
        transparent 4px
    );
    pointer-events: none;
    z-index: 100;
}
.content {
    flex: 1;
    padding: 2rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding-bottom: 120px;
}
.section-title {
    font-size: 1.5rem;
    color: var(--title-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}
.partner-title {
    margin-top: 2rem;
}
.channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}
.channel-card {
    display: block;
    text-decoration: none;
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 0.5rem;
    aspect-ratio: 4 / 3;
    box-shadow: 
        0 4px 6px rgba(0,0,0,0.1),
        inset 0 2px 4px rgba(255,255,255,1),
        inset 0 -4px 10px rgba(0,0,0,0.05);
    border: 3px solid var(--card-border);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    color: inherit;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
.channel-grid > :nth-child(1) { animation-delay: 0.6s; }
.channel-grid > :nth-child(2) { animation-delay: 0.7s; }
.channel-grid > :nth-child(3) { animation-delay: 0.8s; }
.channel-grid > :nth-child(4) { animation-delay: 0.9s; }
.channel-grid > :nth-child(5) { animation-delay: 1.0s; }
.channel-grid > :nth-child(6) { animation-delay: 1.1s; }
.channel-grid > :nth-child(7) { animation-delay: 1.2s; }
.channel-grid > :nth-child(8) { animation-delay: 1.3s; }
.channel-grid > :nth-child(9) { animation-delay: 1.4s; }
.channel-grid > :nth-child(10) { animation-delay: 1.5s; }
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: #000;
    z-index: 9998;
    animation: blackScreen 0.6s ease-in-out forwards;
    pointer-events: none;
}
body::after {
    content: '';
    position: fixed;
    top: 50%; left: 50%;
    width: 100vw; height: 100vh;
    background: #fff;
    z-index: 9999;
    transform: translate(-50%, -50%) scale(0, 0);
    animation: tvTurnOnCRT 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    pointer-events: none;
}
@keyframes blackScreen {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}
@keyframes tvTurnOnCRT {
    0% {
        transform: translate(-50%, -50%) scale(0, 0.005);
        opacity: 0;
    }
    10% {
        transform: translate(-50%, -50%) scale(0, 0.005);
        opacity: 1;
    }
    40% {
        transform: translate(-50%, -50%) scale(1, 0.005);
        opacity: 1;
    }
    70% {
        transform: translate(-50%, -50%) scale(1, 1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1, 1);
        opacity: 0;
    }
}
@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.channel-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.channel-card:hover {
    transform: scale(1.05);
    border-color: var(--hover-border);
    box-shadow: 
        0 8px 15px rgba(0,0,0,0.15),
        0 0 15px var(--hover-glow),
        inset 0 2px 4px rgba(255,255,255,1);
    z-index: 10;
}
.channel-card:hover::before {
    opacity: 1;
}
.channel-card:active {
    transform: scale(0.98);
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.1),
        inset 0 4px 8px rgba(0,0,0,0.1);
}
.card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--card-inner-bg);
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
}
.partner-card .card-inner {
    background: var(--partner-card-inner-bg);
}
.channel-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    object-fit: cover;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.15));
    transition: transform 0.2s ease-in-out;
}
.highlight-card {
    grid-column: 1 / -1;
    aspect-ratio: auto;
    height: auto;
}
.highlight-card .card-inner {
    flex-direction: row;
    justify-content: flex-start;
    padding: 1.5rem;
    position: relative;
    overflow: visible;
}
.video-thumbnail {
    width: 250px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    aspect-ratio: 16/9;
    margin-right: 1.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.5);
    transition: transform 0.3s;
}
.highlight-card:hover .video-thumbnail {
    transform: scale(1.02);
}
.highlight-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}
.highlight-info h2 {
    font-size: 1.4rem;
    margin-top: 0.5rem;
    padding: 0;
    text-align: left;
}
.highlight-info p {
    font-size: 1rem;
    color: var(--title-color);
    font-weight: 800;
}
.highlight-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #ff3333;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transform: rotate(5deg);
    z-index: 20;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: rotate(5deg) scale(1); }
    50% { transform: rotate(5deg) scale(1.1); }
    100% { transform: rotate(5deg) scale(1); }
}
.channel-card:hover .channel-logo {
    transform: scale(1.1);
}
.channel-card h2 {
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    padding: 0 0.5rem;
}
.menu-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: var(--footer-bg);
    border-top: 3px solid #ccc;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
    z-index: 50;
    border-radius: 40px 40px 0 0;
}
.menu-footer::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 10px;
    right: 10px;
    height: 2px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
}
.footer-btn {
    width: 70px;
    height: 70px;
    background: #fdfdfd;
    border-radius: 50%;
    border: 3px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #444;
    box-shadow: 
        0 4px 6px rgba(0,0,0,0.1),
        inset 0 2px 4px rgba(255,255,255,1),
        inset 0 -2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s;
    position: relative;
}
.footer-btn:hover {
    transform: scale(1.1);
    border-color: var(--hover-border);
    box-shadow: 0 0 10px var(--hover-glow);
}
.footer-btn:active {
    transform: scale(0.95);
}
.left-btn span {
    font-size: 1.2rem;
}
.right-btn .envelope {
    font-size: 1.8rem;
}
.right-btn .badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: var(--accent-blue);
    color: white;
    font-size: 0.7rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}
.date-time-display {
    text-align: center;
    color: #666;
}
.clock {
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 2px;
    line-height: 1;
    font-family: monospace;
    text-shadow: 1px 1px 0 rgba(255,255,255,1);
}
.date {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: -5px;
}
@media (max-width: 600px) {
    .content {
        padding: 1rem 5%;
        padding-bottom: 90px;
    }
    .channel-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1rem;
    }
    .channel-card {
        aspect-ratio: 1;
    }
    .menu-footer {
        padding: 0 1rem;
        height: 75px;
        border-radius: 25px 25px 0 0;
    }
    .highlight-card .card-inner {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    .video-thumbnail {
        width: 100%;
        margin-right: 0;
        margin-bottom: 1rem;
    }
    .highlight-info {
        align-items: center;
        text-align: center;
    }
    .highlight-info h2 {
        text-align: center;
        font-size: 1.1rem;
    }
    .footer-btn {
        width: 55px;
        height: 55px;
    }
    .clock {
        font-size: 1.8rem;
    }
    .date {
        font-size: 1rem;
    }
    .channel-logo {
        width: 50px;
        height: 50px;
    }
    .channel-card h2 {
        font-size: 0.85rem;
    }
}