/* Featured Slider */
.featured-slider {
    max-width: 1320px;
    width: 100%;
    margin: 2rem auto;
    padding: 0 2rem;
    position: relative;
    box-sizing: border-box;
}

.slider-wrapper {
    overflow: hidden;
    border-radius: 18px;
    background: radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.2) 0%, rgba(15, 23, 42, 0.95) 90%);
    border: 1px solid rgba(99, 102, 241, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(20px);
}

.slider-container {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
    transform: translateZ(0);
}

.slide {
    min-width: 100%;
    max-width: 100%;
    flex-shrink: 0;
    display: flex;
    gap: 2.5rem;
    padding: 2.5rem;
    align-items: center;
    box-sizing: border-box;
    position: relative;
}

.slide-cover {
    width: 165px;
    height: 235px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
    transform: translateZ(0);
}

.slide-cover:hover {
    transform: scale(1.03);
}

.slide-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.slide-info h2 {
    font-size: 2.1rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.6rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.rating {
    color: #fbbf24;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.genre-tags {
    display: flex;
    gap: 0.5rem;
    margin: 0.75rem 0 1rem 0;
    flex-wrap: wrap;
}

.tag {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.slide-info p {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slide-info .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    padding: 0.7rem 1.6rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(99, 102, 241, 0.45);
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.slide-info .btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
}

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 0.5rem;
    pointer-events: none;
}

.slider-btn {
    pointer-events: auto;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.slider-btn:hover {
    background: rgba(99, 102, 241, 0.9);
    border-color: rgba(99, 102, 241, 0.5);
    transform: scale(1.1);
}

/* Grid & Cards */
.grid {
    max-width: 1320px !important;
    width: 100% !important;
    margin: 2rem auto !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) !important;
    gap: 1.5rem !important;
    padding: 0 2rem !important;
    box-sizing: border-box;
}

.card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    position: relative;
    box-sizing: border-box;
    transform: translateZ(0);
    will-change: transform;
}

.card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 20px rgba(99, 102, 241, 0.25);
}

.card-cover,
.card-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center top;
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: #090e17;
    will-change: transform;
    transform: translateZ(0);
}

.card:hover .card-cover,
.card:hover .card-image {
    transform: scale(1.05);
}

.card-body {
    padding: 0.9rem 1rem 1rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.5rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.55rem;
    max-height: 2.55rem;
    word-break: break-word;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
    margin-top: auto;
    padding-top: 0.4rem;
}

.type-badge {
    background: rgba(99, 102, 241, 0.18);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Card cover wrapper & overlay badges */
.card-cover-wrap {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.card-overlay-badges {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.8rem 0.6rem 0.6rem 0.6rem;
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    align-items: flex-end;
    background: linear-gradient(to top, rgba(5, 8, 20, 0.92) 0%, rgba(5, 8, 20, 0.5) 55%, transparent 100%);
    pointer-events: none;
}

.overlay-type-badge {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    background: rgba(99, 102, 241, 0.75);
    border: 1px solid rgba(99, 102, 241, 0.5);
    color: #e0e7ff;
    backdrop-filter: blur(4px);
}

.overlay-status-badge {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    backdrop-filter: blur(4px);
    background: rgba(30, 30, 50, 0.7);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.overlay-status-badge.status-ongoing {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

.overlay-status-badge.status-completed {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    color: #93c5fd;
}

.card-rating {
    color: #fbbf24;
    font-weight: 700;
    font-size: 0.8rem;
}

/* Card display */
.reveal-card {
    opacity: 1;
    transform: none;
}

/* Channels */
.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.channel-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    gap: 1rem;
    align-items: center;
    position: relative;
}

.channel-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    image-rendering: crisp-edges;
    image-rendering: -webkit-optimize-contrast;
}

.channel-info h3 {
    margin-bottom: 0.5rem;
}

.channel-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Skeleton Loader */
.skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-card) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    height: 400px;
    border-radius: 8px;
}

/* Top 10 List */
.top-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.top-item {
    display: flex;
    gap: 1rem;
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.top-item:hover {
    transform: translateX(5px);
}

.rank-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent);
    min-width: 50px;
}

.top-item-cover {
    width: 80px;
    height: 100px;
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
    image-rendering: crisp-edges;
    image-rendering: -webkit-optimize-contrast;
}

.top-item-info {
    flex: 1;
}

.top-item-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Unified Series Grid Styles */
.series-grid {
    max-width: 1280px !important;
    width: 100% !important;
    margin: 2rem auto !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 1.5rem !important;
    padding: 0 2rem !important;
}

.series-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.series-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.series-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 2/3;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
    image-rendering: crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    backface-visibility: hidden;
}

.series-info {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.series-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.series-type {
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.series-status {
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    background: var(--bg-secondary);
    margin-top: auto;
}

.filter-bar {
    max-width: 1280px;
    width: 100%;
    margin: 2rem auto;
    padding: 1rem 2rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-bar select {
    padding: 0.6rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
}

.no-series {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
    max-width: 1400px;
    margin: 2rem auto;
}

/* TikTok-style Follow Button */
.tiktok-follow-btn {
    position: absolute;
    bottom: 80px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.tiktok-follow-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.5);
}

.tiktok-follow-btn.following {
    background: #10b981;
}

.tiktok-follow-btn .follow-icon {
    color: white;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
}

/* Promoted Series Section */
.promoted-section {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 140, 0, 0.1) 100%);
    border-radius: 12px;
    padding: 30px 20px;
    margin: 40px auto;
    max-width: 1280px;
}

.promoted-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.promoted-badge {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.promoted-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 2rem auto;
    max-width: 1280px;
    padding: 0 2rem;
}

.promoted-grid .card {
    width: 100%;
    flex-shrink: 0;
}

.promoted-card {
    position: relative;
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.promoted-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.promoted-card .card-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 2/3;
    object-fit: cover;
    object-position: center;
}

.promoted-card .card-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.promoted-card .card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
}

.promoted-card .card-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    margin: 0.5rem 0 0 0;
}

.promoted-ribbon {
    position: absolute;
    top: 8px;
    right: -3px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    padding: 3px 10px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.promoted-ribbon::before {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid #CC8400;
    border-top: 3px solid #CC8400;
}

/* Light Black / Midnight Slate Theme Card Overrides */
[data-theme="light"] .card,
[data-theme="light"] .series-card-glass,
[data-theme="light"] .channel-card-glass,
[data-theme="light"] .promoted-card {
    background: #1c2638 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}

[data-theme="light"] .card:hover,
[data-theme="light"] .series-card-glass:hover,
[data-theme="light"] .channel-card-glass:hover,
[data-theme="light"] .promoted-card:hover {
    border-color: rgba(99, 102, 241, 0.5) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 20px rgba(99, 102, 241, 0.25) !important;
    transform: translateY(-6px) scale(1.01) !important;
}

[data-theme="light"] .card-title,
[data-theme="light"] .series-title-glass,
[data-theme="light"] .promoted-card .card-title {
    color: #ffffff !important;
}

[data-theme="light"] .card-meta,
[data-theme="light"] .series-meta-glass,
[data-theme="light"] .promoted-card .card-description {
    color: #94a3b8 !important;
}

[data-theme="light"] .slider-wrapper {
    background: radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.2) 0%, rgba(28, 38, 56, 0.95) 90%) !important;
    border: 1px solid rgba(99, 102, 241, 0.25) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(99, 102, 241, 0.1) !important;
}

[data-theme="light"] .slide-info h2 {
    color: #ffffff !important;
}

[data-theme="light"] .slide-info p {
    color: #cbd5e1 !important;
}

[data-theme="light"] .tag {
    background: rgba(99, 102, 241, 0.15) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
    color: #a5b4fc !important;
}

[data-theme="light"] .type-badge {
    background: rgba(99, 102, 241, 0.18) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
    color: #a5b4fc !important;
}

/* Buttons */
[data-theme="light"] .btn-read-more,
[data-theme="light"] .btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

[data-theme="light"] .btn-read-more:hover,
[data-theme="light"] .btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
    color: #ffffff !important;
}

[data-theme="light"] .btn-details,
[data-theme="light"] .btn-warning,
[data-theme="light"] .btn-amber {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
}



