/* Cartoons Section Styles - Only for cartoons page */

#cartoons-section .series-list {
    max-height: 200px;
    overflow-y: auto;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-action-btn {
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1rem;
    padding: 5px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-action-btn:hover {
    color: #ff8ba7;
    transform: rotate(30deg);
}

#cartoons-section .series-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

#cartoons-section .series-item:hover {
    background: #f0f0f0;
}

#cartoons-section .series-item.active {
    background: #e8f0fe;
    color: #667eea;
}

#cartoons-section .series-item i {
    margin-right: 8px;
    width: 16px;
    color: #888;
}

#cartoons-section .series-item.active i {
    color: #667eea;
}

#cartoons-section .series-count {
    margin-left: auto;
    font-size: 0.75rem;
    color: #999;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Video Title & Now Playing Integration */
.video-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.video-title-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

#videoTitle {
    margin-bottom: 0 !important;
    font-size: 1.5rem;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.like-btn {
    background: transparent;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 1.4rem;
    padding: 5px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.like-btn:hover {
    color: #ff8ba7;
    transform: scale(1.2);
}

.like-btn.liked {
    color: #ff4d6d;
    animation: heartBeat 0.4s ease-in-out;
}

.like-btn.liked i {
    color: #ff4d6d;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.video-item .video-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
}

.video-item .video-liked-indicator {
    color: #ff4d6d;
    font-size: 0.8rem;
    margin-left: 8px;
    opacity: 0.8;
}

.now-playing-inline-card {
    background: linear-gradient(135deg, #fff 0%, #fff0f3 100%);
    border-radius: 20px;
    padding: 6px 15px;
    border: 1px solid #ffccd5;
    border-left: 3px solid #ff8ba7;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    white-space: nowrap;
}

.now-playing-inline-card:hover {
    box-shadow: 0 4px 12px rgba(255, 139, 167, 0.2);
    transform: translateY(-1px);
    background: #fff;
}

.now-playing-label {
    font-size: 0.6rem;
    font-weight: 800;
    color: #ff8ba7;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.now-playing-title-static {
    font-size: 0.75rem;
    font-weight: 600;
    color: #555;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}



/* Page Header & Layout */
.list-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

#seasonInfo {
    margin-bottom: 0;
}


.now-playing-scroll {
    display: inline-block;
    animation: none;
    /* Default to none */
    text-overflow: ellipsis;
    overflow: hidden;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

/* Improved Marquee Logic */
.now-playing-content {
    display: flex;
}

.now-playing-scroll {
    padding-right: 50px;
    animation: marquee 10s linear infinite;
    flex-shrink: 0;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}


#cartoons-section .series-item.active .series-count {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

#cartoons-section .sidebar-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#cartoons-section .sidebar-section-title {
    flex-shrink: 0;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#cartoons-section .series-list {
    flex: 1;
    overflow-y: auto;
    min-height: 100px;
}

#cartoons-section .season-list {
    flex: 1;
    overflow-y: auto;
    min-height: 100px;
}

#cartoons-section .season-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 4px;
    font-size: 0.85rem;
    border-left: 2px solid transparent;
}

#cartoons-section .season-item:hover {
    background: #f0f0f0;
    border-left-color: #667eea;
}

#cartoons-section .season-item.current {
    background: linear-gradient(135deg, #ff8ba7 0%, #ffb3c1 100%);
    border-left-color: transparent;
    color: white;
}

#cartoons-section .season-number {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background: #667eea;
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    margin-right: 8px;
}

#cartoons-section .season-item.current .season-number {
    background: white;
    color: #ff8ba7;
}

#cartoons-section .coming-soon {
    color: #ccc;
    font-style: italic;
    font-size: 0.9rem;
}

/* Cartoons content area */
#cartoons-section .content {
    padding: 20px;
    overflow-y: auto;
    background: #f5f5f5;
}

/* Mobile Optimizations for Video Title area */
@media (max-width: 768px) {
    .video-title-container {
        gap: 10px;
        min-width: 0;
    }

    #videoTitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .now-playing-label span {
        display: none;
        /* Hide 'PLAYING' text on small phones to save space */
    }

    .now-playing-inline-card {
        padding: 6px 10px;
        gap: 0;
    }

    .now-playing-label i {
        font-size: 1.1rem;
        margin: 0;
    }

    #videoTitle {
        font-size: 1.1rem;
    }
}

/* Eye Protection Styles - Cartoon specific feature */
.eye-protection-banner {
    position: fixed;
    top: 60px;
    /* Below the top navigation bar */
    left: 0;
    right: 0;
    width: 100%;
    background: #fff3cd;
    border-bottom: 2px solid #ffeeba;
    padding: 10px 20px;
    z-index: 100;
    animation: slideDown 0.3s ease-out;
}

.eye-protection-banner .banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: #856404;
    font-weight: 500;
}

.eye-protection-banner .countdown {
    background: #ffeeba;
    padding: 2px 10px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: bold;
}

.eye-protection-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.mask-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.mask-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.mask-content h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 24px;
}

.mask-content p {
    color: #666;
    margin-bottom: 30px;
}

.mask-timer {
    font-size: 32px;
    font-weight: bold;
    color: #ff8ba7;
    margin-bottom: 40px;
    font-family: monospace;
}

.mask-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.mask-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.mask-btn.primary {
    background: linear-gradient(135deg, #ff8ba7 0%, #ffb3c1 100%);
    color: white;
}

.mask-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 139, 167, 0.4);
}

.mask-btn.secondary {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #e9ecef;
}

.mask-btn.secondary:hover {
    background: #e9ecef;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}