/* ---------- HEADER ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
    transition: padding var(--transition-speed), background var(--transition-speed);
    padding: 1rem 0;
}

.site-header.shrink {
    padding: 0.5rem 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-family: var(--font-title);
    font-size: clamp(1.2rem, 2vw, 2rem);
    font-weight: bold;
    color: var(--primary-color);
}

.main-nav {
    position: relative;
    flex: 1;
    margin-left: 2rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-item {
    cursor: pointer;
    font-weight: 500;
    transition: color var(--transition-speed);
}

.nav-item { position: relative; }
.nav-item::after {
    content: "";
    position: absolute;
    left: 0; bottom: -6px; height: 2px; width: 0;
    background: var(--primary-color);
    transition: width 0.25s ease;
}
.nav-item:hover::after,
.nav-item:focus-visible::after {
    width: 100%;
}

.nav-item:hover {
    color: var(--primary-color);
}

.nav-indicator {
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: left 0.3s, width 0.3s;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.search-box input {
    width: clamp(100px, 25vw, 160px);
}

.profile img {
    border-radius: 50%;
    width: 36px;
    height: 36px;
    border: 2px solid var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--text-color);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

.main-nav {
    flex: 1;
    margin-left: 1rem;
}

.nav-list {
    display: flex;
    gap: 1rem;
}

.nav-item {
    font-size: 0.9rem;
    padding: 0.2rem 0.5rem;
    transition: color var(--transition-speed);
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    height: 70vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slider img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(55%);
    opacity: 0;
    will-change: opacity, transform;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.hero-slider img:hover {
    filter: brightness(70%); 
}
.hero-overlay {
    position: absolute;
    z-index: 2;
    text-align: left;
    background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.35) 40%, rgba(0,0,0,0) 75%);
    padding: clamp(16px, 4vw, 56px);
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;  
}

.hero-overlay h1,
.hero-overlay p,
.hero-overlay .hero-actions {
    width: min(92%, 980px);
}

.hero-overlay h1 {
    font-size: clamp(2rem, 4.2vw, 3.6rem);
    line-height: 1.08;
    margin-bottom: 0.75rem;
}

.hero-overlay p {
    font-size: clamp(0.95rem, 1.2vw, 1.2rem);
    color: #e5e5e5;
    margin-bottom: 1.25rem;
}


.hero-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
    text-align: center;
}

.hero-content h1 {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: clamp(0.9rem, 2vw, 1.25rem);
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    justify-content: flex-start;
    gap: clamp(0.6rem, 1.8vw, 1rem);
    flex-wrap: wrap;
}

.hero-actions .btn {
    padding: clamp(0.65rem, 1.4vw, 0.9rem) clamp(1rem, 2.2vw, 1.4rem);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

/* ---------- ROWS ---------- */
.rows {
    padding-top: 2rem;
}

.row {
    margin-bottom: 2rem;
}

.row h2 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.row-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-behavior: smooth;
}

.card {
    min-width: 140px;
    max-width: 250px;
    background-color: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    color: var(--text-color);
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    transform: perspective(1000px) rotateY(0deg) scale(1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card img {
    width: 100%;
    display: block;
    height: auto;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-bottom: 1px solid #333;
    transition: transform 0.4s ease;
}

.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.6);
    color: var(--text-color);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.card:hover {
    transform: perspective(1000px) rotateY(3deg) scale(1.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

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

.card:hover .card-info {
    transform: translateY(0);
    opacity: 1;
}

.staggered {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- MODAL ---------- */
.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
    pointer-events: all;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    transition: background 0.3s ease;
}

.modal-panel {
    position: relative;
    background: #141414;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 80%;
    overflow-y: auto;
    z-index: 1;
    padding: 45px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-panel {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-body {
    display: flex;
    gap: 1.5rem;
    flex: 1;
}

.modal-body img {
    width: 300px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

.modal-body-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.modal-body h2 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 1rem;
    text-align: center;
}

.modal-body p {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.5;
}

.modal-body .genres {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 0.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.modal-actions .btn {
    flex: 1;
    padding: 0.8rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
}

.modal-actions .btn.primary {
    background-color: var(--primary-color);
    color: #fff;
}

.modal-actions .btn.secondary {
    background-color: #333;
    color: #fff;
}



.site-footer {
    background: #141414;
    color: #ccc;
    font-size: 0.9rem;
}

.site-footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 1rem;
    border-bottom: 1px solid #222;
}

.footer-logo {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-bottom {
    text-align: center;
    padding: 1rem;
    font-size: 0.8rem;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .footer-links {
        justify-content: flex-start;
    }
    .modal-panel{
        padding: 1.5rem;
    }
}


/* ---------- BREAKPOINTS ---------- */

/* Mobile Small (≤480px) */
@media (max-width: 480px) {
    .header-inner {
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem;
    }

    .hamburger {
        display: flex;
    }

    .main-nav {
        position: fixed;
        inset: 0;
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        background: rgba(0,0,0,0.95);
        backdrop-filter: blur(6px);
        z-index: 999;
    }

    .main-nav.active {
        display: flex;
        animation: navDrop 0.25s ease;
    }

    .nav-item {
        font-size: 1.1rem;
        padding: 0.5rem 0;
    }

    .search-box input {
        width: 80px;
    }

    .hero {
        height: 50vh;
        min-height: 280px;
    }

    .hero-overlay {
        padding: 12px;
        background: linear-gradient(180deg, rgba(0,0,0,0.8) 20%, rgba(0,0,0,0.5) 60%, transparent 100%);
        justify-content: flex-end;
    }

    .hero-overlay h1 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .hero-overlay p {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }

    .hero-actions {
        gap: 0.5rem;
    }

    .card {
        min-width: 100px;
    }

    .modal-body {
        flex-direction: column;
        align-items: center;
    }

    .modal-body img {
        width: 90%;
        max-height: 200px;
    }

    .modal-body-content {
        text-align: center;
    }

    .modal-actions {
        flex-direction: column;
        gap: 0.6rem;
    }
}

/* Mobile Medium (481px – 600px) */
@media (max-width: 600px) {
    .search-box input {
        width: 100px;
    }

    .header-controls {
        gap: 0.6rem;
    }

    .hero-overlay h1 {
        font-size: 1.6rem;
    }

    .hero-overlay p {
        font-size: 1rem;
    }

    .card {
        min-width: 120px;
    }

    .modal-body img {
        width: 80%;
    }
}

/* Tablet (≤900px) */
@media (max-width: 900px) {

    /* Header */
    .header-inner {
        justify-content: space-between;
        gap: 0.8rem;
    }

    .logo {
        font-size: 2rem; 
    }

    .hamburger {
        display: flex;
        margin-left: auto; 
    }

    .main-nav {
        position: fixed;
        inset: 0;
        display: none;
        flex-direction: column;
        gap: 1.2rem;
        background: rgba(0,0,0,0.92);
        padding: 5rem 1.5rem 2rem;
        backdrop-filter: blur(6px);
        width: 100%;
        height: 100%;
        z-index: 999;
    }

    .main-nav.active {
        display: flex;
        animation: navDrop 0.25s ease;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
    }

    .nav-item {
        font-size: 1.1rem;
        text-align: center;
    }

    .header-controls {
        display: flex;
        gap: 0.6rem;
        flex: unset;
    }

    .search-box input {
        width: 100px;
    }

    .profile img {
        width: 32px;
        height: 32px;
    }

    .hero {
        height: 60vh;
    }

    .card {
        min-width: 140px;
    }

    .modal-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .modal-body img {
        width: 60%;
    }

    .modal-body-content {
        width: 100%;
    }

    .modal-actions {
        flex-direction: column;
    }
}



/* Desktop (901px – 1200px) */
@media (max-width: 1200px) {
    .card {
        min-width: 180px;
    }

    .hero-overlay h1 {
        font-size: 2.2rem;
    }

    .hero-overlay p {
        font-size: 1.1rem;
    }
}

/* Large Desktop (≥1600px) */
@media (min-width: 1600px) {
    .card {
        min-width: 280px;
    }

    .hero {
        height: 80vh;
    }

    .hero-overlay h1 {
        font-size: 3.2rem;
    }

    .hero-overlay p {
        font-size: 1.3rem;
    }
}

@keyframes navDrop {
    0% { opacity: 0; transform: translateY(-8px); }
    100% { opacity: 1; transform: translateY(0); }
}
