* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    position: relative;
    overflow-x: hidden;
}

/* Animated background particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255,255,255,0.2), transparent);
    background-size: 200px 100px;
    animation: sparkle 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes sparkle {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px);
        opacity: 0;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(102, 126, 234, 0.05), transparent);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0%, 100% {
        transform: translateX(-100%) translateY(-100%) rotate(30deg);
    }
    50% {
        transform: translateX(100%) translateY(100%) rotate(30deg);
    }
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

.characters {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100px;
    margin-bottom: 25px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
    padding: 10px;
}

.character-scroll {
    display: flex;
    gap: 10px;
    will-change: transform;
    animation: scroll-horizontal 10s linear infinite;
    align-items: center;
}

.character-scroll.paused {
    animation-play-state: paused;
}

.character-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        0 0 0 2px rgba(102, 126, 234, 0.3);
    transition: all 0.4s ease;
    flex-shrink: 0;
    filter: brightness(1.1) saturate(1.2);
}

.character-img:hover {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.3),
        0 0 0 3px rgba(255, 107, 107, 0.5),
        0 0 20px rgba(102, 126, 234, 0.4);
    filter: brightness(1.3) saturate(1.4);
}

h1 {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: glow 4s ease-in-out infinite alternate;
}

@keyframes glow {
    0% {
        filter: drop-shadow(0 0 5px rgba(102, 126, 234, 0.3));
    }
    100% {
        filter: drop-shadow(0 0 15px rgba(102, 126, 234, 0.6));
    }
}

.header p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 25px;
}

.randomize-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 18px 35px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 8px 25px rgba(255, 107, 107, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.randomize-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.randomize-btn:hover::before {
    left: 100%;
}

.randomize-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(255, 107, 107, 0.6),
        0 0 20px rgba(255, 107, 107, 0.4);
}

.randomize-btn:active {
    transform: translateY(0);
}

.view-mode-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.view-btn {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #495057;
    border: 2px solid #dee2e6;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.view-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.6s;
}

.view-btn:hover::before {
    left: 100%;
}

.view-btn:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    border-color: #adb5bd;
    transform: translateY(-2px);
}

.view-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 8px 20px rgba(102, 126, 234, 0.4),
        0 0 15px rgba(102, 126, 234, 0.3);
}

.main {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 35px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.main::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1), transparent);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(-20px, -20px) scale(1.1);
    }
    66% {
        transform: translate(20px, -10px) scale(0.9);
    }
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.schedule-grid.list-view {
    grid-template-columns: 1fr;
    gap: 15px;
}

.time-slot {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 22px;
    border-left: 4px solid #ddd;
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(30px);
    animation: slideIn 0.6s ease forwards;
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    overflow: hidden;
}

.time-slot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.time-slot:hover::before {
    transform: translateX(100%);
}

.time-slot:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.15),
        0 0 20px rgba(102, 126, 234, 0.1);
}

.time-slot.spongebob {
    border-left-color: #ffd700;
    background: linear-gradient(135deg, #fff9c4, rgba(255, 249, 196, 0.7));
    box-shadow: 
        0 5px 15px rgba(255, 215, 0, 0.2),
        0 0 0 1px rgba(255, 215, 0, 0.1);
}

.time-slot.spongebob:hover {
    box-shadow: 
        0 15px 35px rgba(255, 215, 0, 0.3),
        0 0 25px rgba(255, 215, 0, 0.2);
}

.time-slot.simpsons {
    border-left-color: #ff6b6b;
    background: linear-gradient(135deg, #ffe1e1, rgba(255, 225, 225, 0.7));
    box-shadow: 
        0 5px 15px rgba(255, 107, 107, 0.2),
        0 0 0 1px rgba(255, 107, 107, 0.1);
}

.time-slot.simpsons:hover {
    box-shadow: 
        0 15px 35px rgba(255, 107, 107, 0.3),
        0 0 25px rgba(255, 107, 107, 0.2);
}

.time-slot.looneytunes {
    border-left-color: #ff8c00;
    background: linear-gradient(135deg, #fff2e1, rgba(255, 242, 225, 0.7));
    box-shadow: 
        0 5px 15px rgba(255, 140, 0, 0.2),
        0 0 0 1px rgba(255, 140, 0, 0.1);
}

.time-slot.looneytunes:hover {
    box-shadow: 
        0 15px 35px rgba(255, 140, 0, 0.3),
        0 0 25px rgba(255, 140, 0, 0.2);
}

.time-slot.rugrats {
    border-left-color: #9b59b6;
    background: linear-gradient(135deg, #f3e5ff, rgba(243, 229, 255, 0.7));
    box-shadow: 
        0 5px 15px rgba(155, 89, 182, 0.2),
        0 0 0 1px rgba(155, 89, 182, 0.1);
}

.time-slot.rugrats:hover {
    box-shadow: 
        0 15px 35px rgba(155, 89, 182, 0.3),
        0 0 25px rgba(155, 89, 182, 0.2);
}

.time-slot.adventuretime {
    border-left-color: #00bfff;
    background: linear-gradient(135deg, #e1f5ff, rgba(225, 245, 255, 0.7));
    box-shadow: 
        0 5px 15px rgba(0, 191, 255, 0.2),
        0 0 0 1px rgba(0, 191, 255, 0.1);
}

.time-slot.adventuretime:hover {
    box-shadow: 
        0 15px 35px rgba(0, 191, 255, 0.3),
        0 0 25px rgba(0, 191, 255, 0.2);
}

.time-slot.batman {
    border-left-color: #1a1a1a;
    background: linear-gradient(135deg, #f0f0f0, rgba(240, 240, 240, 0.7));
    box-shadow: 
        0 5px 15px rgba(26, 26, 26, 0.3),
        0 0 0 1px rgba(26, 26, 26, 0.1);
}

.time-slot.batman:hover {
    box-shadow: 
        0 15px 35px rgba(26, 26, 26, 0.4),
        0 0 25px rgba(26, 26, 26, 0.2);
}

.time-slot.batman .time-display {
    color: #1a1a1a;
}

.time-slot.batman .show-name {
    color: #444;
}

.time-slot.batman .episode-title {
    color: #333;
}

.time-slot.heyarnold {
    border-left-color: #32CD32;
    background: linear-gradient(135deg, #f0fff0, rgba(240, 255, 240, 0.7));
    box-shadow: 
        0 5px 15px rgba(50, 205, 50, 0.2),
        0 0 0 1px rgba(50, 205, 50, 0.1);
}

.time-slot.heyarnold:hover {
    box-shadow: 
        0 15px 35px rgba(50, 205, 50, 0.3),
        0 0 25px rgba(50, 205, 50, 0.2);
}

.time-slot.familyguy {
    border-left-color: #ff4500;
    background: linear-gradient(135deg, #ffe4d4, rgba(255, 228, 212, 0.7));
    box-shadow: 
        0 5px 15px rgba(255, 69, 0, 0.2),
        0 0 0 1px rgba(255, 69, 0, 0.1);
}

.time-slot.familyguy:hover {
    box-shadow: 
        0 15px 35px rgba(255, 69, 0, 0.3),
        0 0 25px rgba(255, 69, 0, 0.2);
}

.time-slot.flintstones {
    border-left-color: #f77f00;
    background: linear-gradient(135deg, #ffedd5, rgba(255, 237, 213, 0.7));
    box-shadow: 
        0 5px 15px rgba(247, 127, 0, 0.2),
        0 0 0 1px rgba(247, 127, 0, 0.1);
}

.time-slot.flintstones:hover {
    box-shadow: 
        0 15px 35px rgba(247, 127, 0, 0.3),
        0 0 25px rgba(247, 127, 0, 0.2);
}

.time-slot.stevenuniverse {
    border-left-color: #ff69b4;
    background: linear-gradient(135deg, #ffd1e8, rgba(255, 209, 232, 0.7));
    box-shadow: 
        0 5px 15px rgba(255, 105, 180, 0.2),
        0 0 0 1px rgba(255, 105, 180, 0.1);
}

.time-slot.stevenuniverse:hover {
    box-shadow: 
        0 15px 35px rgba(255, 105, 180, 0.3),
        0 0 25px rgba(255, 105, 180, 0.2);
}

.time-slot.teentitans {
    border-left-color: #4169e1;
    background: linear-gradient(135deg, #e6f3ff, rgba(230, 243, 255, 0.7));
    box-shadow: 
        0 5px 15px rgba(65, 105, 225, 0.2),
        0 0 0 1px rgba(65, 105, 225, 0.1);
}

.time-slot.teentitans:hover {
    box-shadow: 
        0 15px 35px rgba(65, 105, 225, 0.3),
        0 0 25px rgba(65, 105, 225, 0.2);
}

.time-slot.disabled {
    border-left-color: #ccc;
    background: linear-gradient(135deg, #f5f5f5, #fff);
    opacity: 0.6;
}

.time-slot.rickandmorty {
    border-left-color: #00d4ff;
    background: linear-gradient(135deg, #e0f7ff, rgba(224, 247, 255, 0.7));
    box-shadow: 
        0 5px 15px rgba(0, 212, 255, 0.2),
        0 0 0 1px rgba(0, 212, 255, 0.1);
}

.time-slot.rickandmorty:hover {
    box-shadow: 
        0 15px 35px rgba(0, 212, 255, 0.3),
        0 0 25px rgba(0, 212, 255, 0.2);
}

.time-slot.scoobydoo {
    border-left-color: #6B46C1;
    background: linear-gradient(135deg, #f3e8ff, rgba(243, 232, 255, 0.7));
    box-shadow: 
        0 5px 15px rgba(107, 70, 193, 0.2),
        0 0 0 1px rgba(107, 70, 193, 0.1);
}

.time-slot.scoobydoo:hover {
    box-shadow: 
        0 15px 35px rgba(107, 70, 193, 0.3),
        0 0 25px rgba(107, 70, 193, 0.2);
}

.time-slot.avatar {
    border-left-color: #55a2b3;
    background: linear-gradient(135deg, #e0f2f1, rgba(224, 242, 241, 0.7));
    box-shadow: 
        0 5px 15px rgba(85, 162, 179, 0.2),
        0 0 0 1px rgba(85, 162, 179, 0.1);
}

.time-slot.avatar:hover {
    box-shadow: 
        0 15px 35px rgba(85, 162, 179, 0.3),
        0 0 25px rgba(85, 162, 179, 0.2);
}

.time-slot.southpark {
    border-left-color: #a0522d;
    background: linear-gradient(135deg, #efebe9, rgba(239, 235, 233, 0.7));
    box-shadow: 
        0 5px 15px rgba(160, 82, 45, 0.2),
        0 0 0 1px rgba(160, 82, 45, 0.1);
}

.time-slot.southpark:hover {
    box-shadow: 
        0 15px 35px rgba(160, 82, 45, 0.3),
        0 0 25px rgba(160, 82, 45, 0.2);
}

.time-slot.animaniacs {
    border-left-color: #808080;
    background: linear-gradient(135deg, #f5f5f5, rgba(245, 245, 245, 0.7));
    box-shadow: 
        0 5px 15px rgba(128, 128, 128, 0.2),
        0 0 0 1px rgba(128, 128, 128, 0.1);
}

.time-slot.animaniacs:hover {
    box-shadow: 
        0 15px 35px rgba(128, 128, 128, 0.3),
        0 0 25px rgba(128, 128, 128, 0.2);
}

.time-slot.gravityfalls {
    border-left-color: #8B5CF6;
    background: linear-gradient(135deg, #f3e8ff, rgba(243, 232, 255, 0.7));
    box-shadow: 
        0 5px 15px rgba(139, 92, 246, 0.2),
        0 0 0 1px rgba(139, 92, 246, 0.1);
}

.time-slot.gravityfalls:hover {
    box-shadow: 
        0 15px 35px rgba(139, 92, 246, 0.3),
        0 0 25px rgba(139, 92, 246, 0.2);
}

.time-slot.samuraijack {
    border-left-color: #DC2626;
    background: linear-gradient(135deg, #fef2f2, rgba(254, 242, 242, 0.7));
    box-shadow: 
        0 5px 15px rgba(220, 38, 38, 0.2),
        0 0 0 1px rgba(220, 38, 38, 0.1);
}

.time-slot.samuraijack:hover {
    box-shadow: 
        0 15px 35px rgba(220, 38, 38, 0.3),
        0 0 25px rgba(220, 38, 38, 0.2);
}

.time-slot.regularshow {
    border-left-color: #059669;
    background: linear-gradient(135deg, #ecfdf5, rgba(236, 253, 245, 0.7));
    box-shadow: 
        0 5px 15px rgba(5, 150, 105, 0.2),
        0 0 0 1px rgba(5, 150, 105, 0.1);
}

.time-slot.regularshow:hover {
    box-shadow: 
        0 15px 35px rgba(5, 150, 105, 0.3),
        0 0 25px rgba(5, 150, 105, 0.2);
}

.time-slot.americandad {
    border-left-color: #EAB308;
    background: linear-gradient(135deg, #fefce8, rgba(254, 252, 232, 0.7));
    box-shadow: 
        0 5px 15px rgba(234, 179, 8, 0.2),
        0 0 0 1px rgba(234, 179, 8, 0.1);
}

.time-slot.americandad:hover {
    box-shadow: 
        0 15px 35px rgba(234, 179, 8, 0.3),
        0 0 25px rgba(234, 179, 8, 0.2);
}

.time-slot.kingofthehill {
    border-left-color: #7C2D12;
    background: linear-gradient(135deg, #fef7f0, rgba(254, 247, 240, 0.7));
    box-shadow: 
        0 5px 15px rgba(124, 45, 18, 0.2),
        0 0 0 1px rgba(124, 45, 18, 0.1);
}

.time-slot.kingofthehill:hover {
    box-shadow: 
        0 15px 35px rgba(124, 45, 18, 0.3),
        0 0 25px rgba(124, 45, 18, 0.2);
}

.time-slot.totaldrama {
    border-left-color: #F97316;
    background: linear-gradient(135deg, #fff7ed, rgba(255, 247, 237, 0.7));
    box-shadow: 
        0 5px 15px rgba(249, 115, 22, 0.2),
        0 0 0 1px rgba(249, 115, 22, 0.1);
}

.time-slot.totaldrama:hover {
    box-shadow: 
        0 15px 35px rgba(249, 115, 22, 0.3),
        0 0 25px rgba(249, 115, 22, 0.2);
}

.time-slot.mysteryinc {
    border-left-color: #6366F1;
    background: linear-gradient(135deg, #e0e7ff, rgba(224, 231, 255, 0.7));
    box-shadow: 
        0 5px 15px rgba(99, 102, 241, 0.2),
        0 0 0 1px rgba(99, 102, 241, 0.1);
}

.time-slot.mysteryinc:hover {
    box-shadow: 
        0 15px 35px rgba(99, 102, 241, 0.3),
        0 0 25px rgba(99, 102, 241, 0.2);
}

/* Add Futurama color scheme */
.time-slot.futurama {
    border-left-color: #00d4ff;
    background: linear-gradient(135deg, #e0f7ff, rgba(224, 247, 255, 0.7));
    box-shadow: 
        0 5px 15px rgba(0, 212, 255, 0.2),
        0 0 0 1px rgba(0, 212, 255, 0.1);
}

.time-slot.futurama:hover {
    box-shadow: 
        0 15px 35px rgba(0, 212, 255, 0.3),
        0 0 25px rgba(0, 212, 255, 0.2);
}

/* Add Teenage Mutant Ninja Turtles color scheme */
.time-slot.teentmnt {
    border-left-color: #00a651;
    background: linear-gradient(135deg, #e6f7e9, rgba(230, 247, 233, 0.7));
    box-shadow: 
        0 5px 15px rgba(0, 166, 81, 0.2),
        0 0 0 1px rgba(0, 166, 81, 0.1);
}

.time-slot.teentmnt:hover {
    box-shadow: 
        0 15px 35px rgba(0, 166, 81, 0.3),
        0 0 25px rgba(0, 166, 81, 0.2);
}

.time-display {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.schedule-grid.list-view .time-display {
    font-size: 1rem;
    margin-bottom: 5px;
}

.show-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schedule-grid.list-view .show-name {
    font-size: 0.8rem;
    margin-bottom: 2px;
}

.episode-title {
    font-family: 'Mont Bold', 'Inter', sans-serif;
    font-size: 1rem;
    color: #333;
    line-height: 1.4;
    font-weight: bold;
}

.schedule-grid.list-view .episode-title {
    font-size: 0.9rem;
}

.slot-image {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(102, 126, 234, 0.1);
    flex-shrink: 0;
    transition: all 0.3s ease;
    filter: brightness(1.1) saturate(1.1);
}

.slot-image:hover {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 0 2px rgba(102, 126, 234, 0.3);
}

.schedule-grid.list-view .slot-image {
    width: 50px;
    height: 50px;
}

.slot-content {
    flex: 1;
}

.show-toggles {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-bottom: 18px;
    align-items: center;
    justify-items: start;
    padding: 6px;
}

.toggle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    width: 100%;
    padding: 10px;
    border-radius: 12px;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.12s ease;
    border: 1px solid transparent;
    background: #fafbfe;
}

.toggle-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 18px 40px rgba(12, 24, 60, 0.08);
    border-color: rgba(102,126,234,0.12);
}

.toggle-thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 8px 20px rgba(12,24,60,0.06);
}

.toggle-text {
    text-align: center;
    font-weight: 700;
    font-size: 0.92rem;
    color: #1f2a44;
    margin-top: 6px;
}

.toggle-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #667eea;
}

/* responsive: reduce columns and enlarge thumbs on touch devices */
@media (max-width: 900px) {
    .show-toggles {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .show-toggles {
        grid-template-columns: repeat(2, 1fr);
    }
    .toggle-thumb { width: 64px; height: 64px; }
    .toggle-search { max-width: 220px; }
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* New toggle menu styles */
.toggle-menu-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 28px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 20px;
    box-shadow: 
        0 6px 20px rgba(102, 126, 234, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.toggle-menu-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3), transparent);
    transition: width 0.6s, height 0.6s;
    transform: translate(-50%, -50%);
}

.toggle-menu-btn:hover::before {
    width: 200px;
    height: 200px;
}

.toggle-menu-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 12px 30px rgba(102, 126, 234, 0.4),
        0 0 20px rgba(102, 126, 234, 0.3);
}

.toggle-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.toggle-menu-overlay.active {
    display: flex;
}

.toggle-menu {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

.toggle-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: white;
    z-index: 2;
    padding-top: 12px;
}

/* search input in menu */
.toggle-search {
    margin-left: 16px;
    flex: 1;
    max-width: 360px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e6e9ee;
    font-size: 0.95rem;
    color: #2d3748;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.close-menu-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.close-menu-btn:hover {
    color: #ff6b6b;
}

.toggle-menu-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.select-all-btn {
    background: linear-gradient(135deg, #4A5568, #2D3748);
    color: #fff;
    border: none;
    padding: 8px 12px;
    font-size: 0.95rem;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.12s ease, opacity 0.12s ease;
}

.select-all-btn:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Update toggle switch styling for menu */
.toggle-menu .toggle-switch {
    flex-direction: row;
    justify-content: space-between;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.toggle-menu .toggle-switch:hover {
    background: #f8f9fa;
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

#synopsisModal .modal {
    background: white;
    border-radius: 15px;
    padding: 25px;
    max-width: 1000px;
    width: 95%;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #ff6b6b;
}

.modal-body label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2d3748;
}

#synopsisModal .modal-body .info-layout {
    display: flex;
    gap: 24px;
}

.info-box {
    flex: 1;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 16px;
}

#synopsisModal .info-box h4 {
    margin-bottom: 8px;
    font-weight: 700;
    color: #2d3748;
    font-size: 1.1rem;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 8px;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.modal-body select,
.modal-body input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.modal-body select:focus,
.modal-body input:focus {
    outline: none;
    border-color: #667eea;
}

.confirm-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.synopsis-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.synopsis-content {
    line-height: 1.6;
    color: #333;
    font-size: 1rem;
}

.random-episode-result {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 15px;
}

.random-episode-show {
    font-size: 1.1rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 10px;
}

.random-episode-title {
    font-size: 1rem;
    color: #333;
    margin-bottom: 15px;
}

.synopsis-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(102, 126, 234, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
}

.time-slot:hover .synopsis-btn {
    opacity: 1;
}

.synopsis-btn:hover {
    background: rgba(102, 126, 234, 1);
    transform: scale(1.1);
}

.change-episode-btn {
    position: absolute;
    top: 10px;
    right: 46px;
    background: rgba(0, 0, 0, 0.06);
    color: #333;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 14px;
    cursor: pointer;
    transition: all .3s ease;
    opacity: 0;
}

.time-slot:hover .change-episode-btn {
    opacity: 1;
}

.change-episode-btn:hover {
    background: rgba(0, 0, 0, 0.12);
    transform: scale(1.1);
}

.feature-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.feature-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 12px 22px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 5px 15px rgba(76, 175, 80, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.feature-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.feature-btn:hover::after {
    width: 300px;
    height: 300px;
}

.feature-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 10px 25px rgba(76, 175, 80, 0.4),
        0 0 20px rgba(76, 175, 80, 0.3);
}

.theme-options {
    margin: 15px 0;
}

.theme-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    cursor: pointer;
}

.theme-options input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.theme-progress {
    margin: 15px 0;
    text-align: center;
}

.progress-text {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
    animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .characters {
        gap: 15px;
    }
    
    .character-img {
        width: 60px;
        height: 60px;
    }
    
    .schedule-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .time-slot {
        padding: 15px;
    }
    
    .toggle-menu {
        padding: 20px;
    }
    
    .toggle-menu-header h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .randomize-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .show-toggles {
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .toggle-switch {
        gap: 8px;
    }
    
    .toggle-label {
        font-size: 0.9rem;
    }
    
    .toggle-menu {
        width: 95%;
        padding: 15px;
    }
}

/* Responsive tweak: smaller devices use 2 columns */
@media (max-width: 900px) {
    .show-toggles {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .show-toggles {
        grid-template-columns: repeat(2, 1fr);
    }
    .toggle-thumb { width: 64px; height: 64px; }
    .toggle-search { max-width: 220px; }
}

@keyframes scroll-horizontal {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Add floating decoration elements */
.container::before,
.container::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    animation: floatAround 15s linear infinite;
    pointer-events: none;
}

.container::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.container::after {
    top: 60%;
    right: 15%;
    animation-delay: -7.5s;
    width: 80px;
    height: 80px;
}

@keyframes floatAround {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.5;
    }
    25% {
        transform: translate(30px, -30px) rotate(90deg);
        opacity: 0.8;
    }
    50% {
        transform: translate(-20px, -60px) rotate(180deg);
        opacity: 0.3;
    }
    75% {
        transform: translate(-40px, -20px) rotate(270deg);
        opacity: 0.7;
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
        opacity: 0.5;
    }
}