/* ========== SERIES SECTION (ซีรี่ย์เกาหลี) ========== */
#series {
    padding: 2rem 0;
}

.series-scroll-wrapper {
    position: relative;
    overflow: hidden;
}

.series-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 220, 90, 0.4) rgba(15, 23, 42, 0.5);
}

.series-scroll::-webkit-scrollbar {
    height: 8px;
}

.series-scroll::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 999px;
}

.series-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 220, 90, 0.4);
    border-radius: 999px;
}

.series-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 220, 90, 0.6);
}

.series-card {
    flex: 0 0 140px;
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.series-card:hover {
    transform: translateY(-5px);
}

.series-poster {
    position: relative;
    width: 140px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #1e293b;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(148, 163, 184, 0.3);
    margin-bottom: 0.5rem;
}

.series-poster::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
    z-index: 1;
}

.series-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 500;
    z-index: 2;
}

.series-badge.iqiyi {
    background: linear-gradient(135deg, #00dc5a 0%, #16a34a 100%);
    color: #022c22;
}

.series-badge.vip {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #422006;
}

.series-badge.top {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
}

.series-info {
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 2;
}

.series-tag {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 500;
}

.series-tag.new {
    background: rgba(0, 220, 90, 0.2);
    border: 1px solid rgba(0, 220, 90, 0.5);
    color: #bbf7d0;
}

.series-tag.episode {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    backdrop-filter: blur(4px);
}

.series-meta {
    padding: 0 0.25rem;
}

.series-title {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    min-height: 2.1em;
    margin-bottom: 0;
}

.series-sub {
    font-size: 0.65rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive */
@media (max-width: 720px) {
    .series-card {
        flex: 0 0 120px;
    }

    .series-poster {
        width: 120px;
        height: 172px;
    }

    .series-title {
        font-size: 0.7rem;
    }

    .series-badge,
    .series-tag {
        font-size: 0.55rem;
    }
}