/* Netflix-style layout CSS */
.category-container {
    width: 100%;
    margin-bottom: 2rem;
}

.category-section {
    margin-bottom: 2rem;
    position: relative;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    padding: 0 1rem;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    transition: color 0.3s ease;
}

.category-section:hover .category-title {
    color: var(--accent-color);
}

.scroll-row {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0 1rem 1rem 1rem;
    gap: 1rem;
    position: relative;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.scroll-row::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.scroll-nav-button {
    position: absolute;
    top: calc(50% - 20px);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s ease;
}

.scroll-prev {
    left: 10px;
}

.scroll-next {
    right: 10px;
}

.category-section:hover .scroll-nav-button {
    opacity: 0.8;
}

.scroll-nav-button:hover {
    opacity: 1 !important;
    background-color: var(--primary-color);
    transform: scale(1.1);
}

.row-card {
    flex: 0 0 auto;
    width: 220px;
    margin-right: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow);
    background-color: var(--card-background);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s ease forwards;
}

.row-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.7);
    z-index: 2;
}

.row-thumbnail {
    position: relative;
    width: 100%;
    height: 123px; /* 16:9 ratio for 220px width */
    overflow: hidden;
}

.row-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.row-card:hover .row-thumbnail img {
    transform: scale(1.1);
}

.row-card-content {
    padding: 0.8rem;
}

.row-card-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
    height: 2.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.featured-section {
    position: relative;
    height: 35vh;
    min-height: 250px;
    margin-bottom: 2rem;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.featured-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.5);
    transition: all 0.5s ease;
}

.featured-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0) 100%);
}

.featured-date {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.featured-description {
    font-size: 1rem;
    margin-bottom: 1rem;
    max-width: 600px;
}

.featured-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.featured-btn:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

.featured-btn i {
    font-size: 1.2rem;
}

/* Search results display when searching */
.search-results-container {
    padding: 1rem;
}

.search-results-header {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .row-card {
        width: 160px;
    }
    
    .row-thumbnail {
        height: 90px;
    }
    
    .row-card-title {
        font-size: 0.8rem;
    }
    
    .category-title {
        font-size: 1.2rem;
    }
    
    .featured-section {
        height: 30vh;
        min-height: 200px;
    }
    
    .featured-date {
        font-size: 0.8rem;
    }
    
    .featured-title {
        font-size: 1.8rem;
    }
    
    .featured-description {
        font-size: 0.9rem;
    }
}
/* ═══════════════════════════════════════════════════════════════════════════
   NETFLIX UPGRADE v2 — skeleton, badges, My List, progress, mode shortcuts,
   Top 10 numbers and genre chips
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Skeleton loading (shimmer) ── */
.skeleton-shimmer {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}
.skeleton-shimmer::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09), transparent);
    animation: eh-shimmer 1.4s infinite;
}
@keyframes eh-shimmer {
    100% { transform: translateX(100%); }
}
.skeleton-hero {
    height: 45vh;
    min-height: 300px;
    border-radius: var(--border-radius, 12px);
    margin-bottom: 2rem;
}
.skeleton-row { margin-bottom: 2rem; padding: 0 1rem; }
.skeleton-title {
    width: 180px;
    height: 22px;
    border-radius: 6px;
    margin-bottom: 14px;
}
.skeleton-cards { display: flex; gap: 1rem; overflow: hidden; }
.skeleton-card {
    flex: 0 0 auto;
    width: 210px;
    height: 150px;
    border-radius: 8px;
}

/* ── Card badges (NEW / 🔥 / level) ── */
.card-badges {
    position: absolute;
    top: 6px;
    left: 6px;
    display: flex;
    gap: 4px;
    z-index: 3;
    pointer-events: none;
}
.badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.4;
}
.badge-new { background: #e50914; }
.badge-hot { background: rgba(0, 0, 0, 0.65); }
.badge-level { background: #8a2be2; }
.badge-beginner { background: #2e7d32; }
.badge-intermediate { background: #f9a825; color: #222; }
.badge-advanced { background: #c62828; }

/* ── My List heart on cards ── */
.card-fav {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 4;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.row-card:hover .card-fav,
.card-fav.active { opacity: 1; }
.card-fav.active { color: #e50914; }
.card-fav:hover { transform: scale(1.15); }
@media (hover: none) {
    .card-fav { opacity: 1; }
}

/* ── Continue Studying progress bar ── */
.card-progress {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    z-index: 3;
}
.card-progress-fill {
    height: 100%;
    background: #e50914;
}

/* ── Hover mode shortcuts (desktop only) ── */
.row-card { overflow: visible; }
.row-card:hover { z-index: 6; }
.card-mode-buttons {
    display: flex;
    gap: 6px;
    justify-content: center;
    padding: 0 6px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.25s ease, padding 0.25s ease;
}
.row-card:hover .card-mode-buttons {
    max-height: 48px;
    opacity: 1;
    padding: 6px;
}
.card-mode-btn {
    flex: 1;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 6px 0;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s ease;
}
.card-mode-btn:hover { background: var(--accent-color, #8a2be2); }
@media (hover: none) {
    .card-mode-buttons { display: none; }
}

/* ── Top 10 row with giant ranking numbers ── */
.top10-card {
    display: flex;
    align-items: center;
    background: transparent;
    box-shadow: none;
}
.top10-number {
    flex: 0 0 auto;
    font-size: 120px;
    font-weight: 900;
    line-height: 0.8;
    margin-right: -22px;
    color: #0e0e0e;
    -webkit-text-stroke: 3px #8a8a8a;
    font-family: 'Arial Black', Arial, sans-serif;
    user-select: none;
    z-index: 1;
}
.top10-body {
    position: relative;
    z-index: 2;
    min-width: 0;
}
.top10-body .row-thumbnail { position: relative; }
@media (max-width: 768px) {
    .top10-number {
        font-size: 72px;
        -webkit-text-stroke: 2px #8a8a8a;
        margin-right: -14px;
    }
}

/* ── Genre chips + Surprise Me ── */
.genre-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 1rem 14px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.genre-chips::-webkit-scrollbar { display: none; }
.genre-chip {
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    color: var(--text-color, #fff);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}
.genre-chip.active,
.genre-chip:hover {
    background: var(--accent-color, #8a2be2);
    border-color: var(--accent-color, #8a2be2);
    color: #fff;
}
.genre-chip-surprise { border-style: dashed; }
