/* ========================================
   CineFreak Clone - Exact Design Match
   ======================================== */

:root {
    --bg: #121212;
    --bg2: #0a0a0a;
    --bg-card: #1a1a1a;
    --bg-hover: #222;
    --orange: #f5a623;
    --orange2: #ff8c00;
    --pink: #e91e63;
    --text: #ffffff;
    --text2: #b0b0b0;
    --text3: #777;
    --border: #2a2a2a;
    --radius: 16px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ========== HEADER ========== */
.header {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    height: 56px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: baseline;
    font-weight: 800;
    font-size: 1.45rem;
    letter-spacing: -0.5px;
    white-space: nowrap;
    position: relative;
}

.logo .cine {
    color: var(--orange);
    font-style: italic;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
}

.logo .freak {
    color: #fff;
    font-weight: 900;
    letter-spacing: 1px;
}

.logo .net {
    color: var(--orange);
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 1px;
    position: relative;
    top: -6px;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 70%;
    height: 2px;
    background: linear-gradient(90deg, var(--orange), transparent);
    border-radius: 2px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav a {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text2);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.nav a:hover, .nav a.active {
    color: #fff;
    background: rgba(255,255,255,0.06);
}

.nav a i { font-size: 0.85rem; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--text2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    font-size: 1rem;
    transition: all 0.2s;
}

.icon-btn:hover { color: #fff; background: rgba(255,255,255,0.08); }

.notify-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--pink);
    color: #fff;
    font-size: 0.65rem;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid var(--bg2);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px;
}

.search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 2000;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
}

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

.search-box {
    width: 90%;
    max-width: 560px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 16px 56px 16px 20px;
    background: #1a1a1a;
    border: 2px solid var(--orange);
    border-radius: 50px;
    color: #fff;
    font-size: 1rem;
    outline: none;
}

.search-box button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--orange);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #000;
    cursor: pointer;
    font-size: 1rem;
}

/* ========== TOP ACTION BUTTONS ========== */
.top-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 16px 0 8px;
    flex-wrap: wrap;
}

.top-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
}

.top-btn-pink {
    background: linear-gradient(135deg, #e91e63, #c2185b);
    color: #fff;
    box-shadow: 0 0 20px rgba(233, 30, 99, 0.35);
}

.top-btn-pink:hover {
    box-shadow: 0 0 28px rgba(233, 30, 99, 0.55);
    transform: translateY(-1px);
}

.top-btn-dark {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.12);
}

.top-btn-dark:hover {
    background: rgba(255,255,255,0.14);
}

.top-btn .badge-18 {
    background: var(--pink);
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
}

/* ========== HERO SLIDER ========== */
.hero {
    padding: 8px 0 24px;
}

.hero-slider {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1.5px solid rgba(245, 166, 35, 0.45);
    box-shadow: 0 0 40px rgba(245, 166, 35, 0.12), 0 0 80px rgba(245, 166, 35, 0.06);
    background: #000;
}

.hero-slide {
    display: none;
    position: relative;
    min-height: 380px;
    background-size: cover;
    background-position: center top;
}

.hero-slide.active { display: block; }

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.35) 45%, transparent 70%);
    z-index: 1;
}

.hero-slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 36px;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 380px;
}

.hero-badges-top {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    display: flex;
    gap: 8px;
}

.badge {
    padding: 4px 11px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-featured {
    background: var(--orange);
    color: #000;
}

.badge-cat {
    background: rgba(0,0,0,0.65);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.15;
    text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--text2);
    background: rgba(0,0,0,0.45);
    padding: 4px 10px;
    border-radius: 6px;
    backdrop-filter: blur(6px);
}

.btn-watch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    background: transparent;
    border: 1.5px solid rgba(245, 166, 35, 0.6);
    color: #fff;
    cursor: pointer;
    transition: all 0.25s;
    width: fit-content;
}

.btn-watch:hover {
    background: rgba(245, 166, 35, 0.15);
    border-color: var(--orange);
    box-shadow: 0 0 20px rgba(245, 166, 35, 0.25);
}

.slider-nav {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 5;
    background: rgba(0,0,0,0.5);
    padding: 6px 10px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
}

.slider-arrow {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 2px 4px;
    opacity: 0.7;
}

.slider-arrow:hover { opacity: 1; }

.slider-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.25s;
    border: none;
    padding: 0;
}

.slider-dot.active {
    background: var(--orange);
    width: 20px;
    border-radius: 4px;
}

/* ========== SECTIONS ========== */
.section {
    padding: 20px 0 10px;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title .bar {
    width: 3.5px;
    height: 20px;
    background: var(--orange);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ========== PLATFORMS ========== */
.platforms-grid {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 4px 0 12px;
    scrollbar-width: none;
}

.platforms-grid::-webkit-scrollbar { display: none; }

.platform-item {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
    transition: transform 0.2s;
}

.platform-item:hover { transform: scale(1.08); }

.platform-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    margin: 0 auto 8px;
    border: 2px solid;
    background: transparent;
}

.platform-name {
    font-size: 0.7rem;
    color: var(--text2);
    line-height: 1.25;
}

/* ========== MOVIE GRID ========== */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.movie-card {
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.movie-card:hover { transform: translateY(-4px); }

.movie-poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    border-radius: 12px;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.06);
}

.movie-card:hover .movie-poster {
    border-color: rgba(245, 166, 35, 0.35);
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.movie-card:hover .movie-poster img { transform: scale(1.06); }

.movie-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--pink);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    z-index: 2;
}

.movie-quality {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 4px;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.movie-trending {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--orange), transparent);
    z-index: 2;
}

.movie-info { padding: 10px 4px 4px; }

.movie-title {
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.movie-meta {
    font-size: 0.7rem;
    color: var(--text3);
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.movie-time {
    font-size: 0.65rem;
    color: var(--text3);
    margin-top: 3px;
}

/* ========== SINGLE MOVIE ========== */
.movie-detail { padding: 32px 0; }

.movie-detail-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 36px;
}

.detail-poster {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(245,166,35,0.2);
}

.detail-poster img { width: 100%; }

.detail-info h1 {
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.2;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.meta-tag {
    background: rgba(255,255,255,0.06);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text2);
    border: 1px solid rgba(255,255,255,0.08);
}

.meta-tag.cat {
    background: rgba(245,166,35,0.12);
    color: var(--orange);
    border-color: rgba(245,166,35,0.25);
}

.detail-desc {
    color: var(--text2);
    margin-bottom: 28px;
    line-height: 1.7;
    font-size: 0.95rem;
}

.download-section h3 {
    margin-bottom: 14px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-links { display: flex; flex-direction: column; gap: 10px; }

.download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.04);
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.2s;
}

.download-item:hover {
    border-color: rgba(245,166,35,0.4);
    background: rgba(245,166,35,0.05);
}

.download-quality { font-weight: 700; font-size: 0.95rem; }
.download-size { color: var(--text3); font-size: 0.8rem; margin-left: 8px; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--orange);
    color: #000;
}

.btn-primary:hover {
    background: var(--orange2);
    box-shadow: 0 4px 16px rgba(245,166,35,0.35);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
}

.btn-outline:hover { background: rgba(255,255,255,0.08); }
.btn-sm { padding: 7px 14px; font-size: 0.78rem; }
.btn-danger { background: #c0392b; color: #fff; }
.btn-danger:hover { background: #e74c3c; }

/* ========== FLOATING TELEGRAM ========== */
.float-telegram {
    position: fixed;
    bottom: 24px;
    left: 20px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #0088cc;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,136,204,0.45);
    z-index: 999;
    transition: all 0.25s;
}

.float-telegram:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(0,136,204,0.6);
}

/* ========== FOOTER ========== */
.footer {
    background: #0a0a0a;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 40px 0 20px;
    margin-top: 48px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 28px;
}

.footer h4 {
    margin-bottom: 14px;
    color: var(--orange);
    font-size: 0.95rem;
}

.footer p, .footer a {
    color: var(--text3);
    font-size: 0.85rem;
    line-height: 1.8;
}

.footer a:hover { color: var(--orange); }

.footer-bottom {
    text-align: center;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text3);
    font-size: 0.8rem;
}

/* ========== ADMIN ========== */
.admin-body { background: #0f0f13; }

.admin-sidebar {
    width: 240px;
    background: #16161d;
    min-height: 100vh;
    position: fixed;
    left: 0; top: 0;
    padding: 20px 0;
    border-right: 1px solid var(--border);
}

.admin-logo {
    padding: 0 20px 28px;
    font-size: 1.3rem;
    font-weight: 800;
}

.admin-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 22px;
    color: var(--text2);
    font-size: 0.9rem;
}

.admin-menu a:hover,
.admin-menu a.active {
    background: rgba(245,166,35,0.1);
    color: var(--orange);
    border-right: 3px solid var(--orange);
}

.admin-main { margin-left: 240px; padding: 28px; }

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    padding: 22px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.stat-card h3 { font-size: 1.8rem; color: var(--orange); }
.stat-card p { color: var(--text3); font-size: 0.85rem; margin-top: 4px; }

.admin-table {
    width: 100%;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.admin-table th, .admin-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    background: #111;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text3);
}

.admin-table tr:hover td { background: rgba(255,255,255,0.02); }

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text2);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    background: #111;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
}

.form-control:focus { border-color: var(--orange); }
textarea.form-control { min-height: 110px; resize: vertical; }

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at top, #1a1a2e 0%, #0a0a0a 70%);
}

.login-box {
    background: #16161d;
    padding: 36px;
    border-radius: 16px;
    width: 100%;
    max-width: 380px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.login-box h1 { text-align: center; margin-bottom: 8px; }
.login-box .sub { text-align: center; color: var(--text3); margin-bottom: 24px; font-size: 0.9rem; }

.alert {
    padding: 11px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.85rem;
}

.alert-success {
    background: rgba(46,213,115,0.12);
    color: #2ed573;
    border: 1px solid rgba(46,213,115,0.25);
}

.alert-error {
    background: rgba(233,69,96,0.12);
    color: #e94560;
    border: 1px solid rgba(233,69,96,0.25);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .movie-detail-grid { grid-template-columns: 1fr; }
    .detail-poster { max-width: 240px; margin: 0 auto; }
    .footer-content { grid-template-columns: 1fr; gap: 24px; }
    .admin-sidebar { width: 64px; }
    .admin-sidebar .admin-logo span,
    .admin-menu a span { display: none; }
    .admin-main { margin-left: 64px; }
}

@media (max-width: 768px) {
    .nav { display: none; }
    .nav.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 56px;
        left: 0; right: 0;
        background: #0a0a0a;
        padding: 12px;
        border-bottom: 1px solid var(--border);
        z-index: 999;
    }
    .menu-toggle { display: block; }
    .hero-title { font-size: 1.4rem; }
    .hero-content { padding: 24px 18px; min-height: 300px; }
    .hero-slide { min-height: 300px; }
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }
    .top-actions { gap: 8px; }
    .top-btn { padding: 8px 14px; font-size: 0.78rem; }
}

@media (max-width: 480px) {
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .platform-item { width: 70px; }
    .platform-logo { width: 56px; height: 56px; font-size: 0.85rem; }
}

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 28px 0 10px;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    color: var(--text2);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0 12px;
}

.page-btn:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.page-btn.active {
    background: var(--orange);
    color: #000;
    box-shadow: 0 4px 16px rgba(245,166,35,0.35);
}

.page-dots {
    background: transparent;
    cursor: default;
    color: var(--text3);
}

.page-dots:hover { background: transparent; color: var(--text3); }

/* ========== COLLECTIONS ========== */
.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-header-row .section-title { margin-bottom: 0; }

.section-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-all {
    font-size: 0.85rem;
    color: var(--text2);
    margin-right: 6px;
}

.scroll-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: none;
    color: var(--text2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.scroll-btn:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.collections-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.collections-track::-webkit-scrollbar { display: none; }

.collection-card {
    flex-shrink: 0;
    width: 260px;
    height: 150px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    border: 2px solid;
    transition: all 0.3s;
}

.collection-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.4);
}

.collection-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collection-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 20%, rgba(0,0,0,0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px;
}

.collection-count {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
}

.collection-overlay h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.collection-overlay p {
    font-size: 0.75rem;
    color: var(--text2);
}

/* ========== TAGS (Genre + Category) ========== */
.tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1.5px solid;
    background: transparent;
    transition: all 0.2s;
    cursor: pointer;
}

.tag-pill:hover {
    background: rgba(255,255,255,0.06);
    transform: translateY(-1px);
}

.tag-cat {
    border-color: rgba(255,255,255,0.15);
    color: var(--text2);
}

.tag-cat:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.tag-more {
    background: var(--orange);
    color: #000;
    border-color: var(--orange);
}

.tag-more:hover {
    background: var(--orange2);
    color: #000;
}

@media (max-width: 768px) {
    .collection-card { width: 200px; height: 120px; }
    .section-header-row { flex-wrap: wrap; gap: 10px; }
}
