:root {
    --primary-50: #fef3e2;
    --primary-100: #fde6c5;
    --primary-300: #f9c052;
    --primary-500: #d89410;
    --primary-600: #b6790d;
    --accent-500: #f95c16;
    --accent-600: #ea420c;
    --secondary-50: #f5f7fa;
    --secondary-500: #5f729c;
    --secondary-800: #353d59;
    --secondary-900: #2f364f;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
    --shadow-soft: 0 18px 45px rgba(47, 54, 79, 0.12);
    --shadow-hover: 0 24px 70px rgba(216, 148, 16, 0.22);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--gray-50);
    color: var(--gray-900);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    line-height: 1.6;
}

body.nav-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    width: 100%;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(229, 231, 235, 0.88);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    min-height: 72px;
    margin: 0 auto;
    padding: 0 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
    box-shadow: 0 12px 30px rgba(249, 92, 22, 0.25);
}

.brand-name {
    font-size: 22px;
    background: linear-gradient(90deg, var(--primary-600), var(--accent-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    color: var(--gray-700);
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-600);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--primary-50);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 2px;
    background: var(--primary-600);
}

.mobile-nav {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 18px;
}

.mobile-nav .nav-link {
    display: block;
    padding: 11px 14px;
    border-radius: 12px;
}

.mobile-nav .nav-link:hover,
.mobile-nav .nav-link.active {
    background: var(--primary-50);
}

.hero-carousel {
    position: relative;
    height: 70vh;
    min-height: 560px;
    overflow: hidden;
    background: #000000;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.75s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-image,
.detail-backdrop {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.12));
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 72px;
    width: min(1200px, calc(100% - 48px));
    transform: translateX(-50%);
    color: #ffffff;
}

.hero-content h1 {
    max-width: 760px;
    margin: 16px 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 24px;
    color: var(--gray-200);
    font-size: 18px;
}

.hero-tags,
.hero-meta,
.hero-actions,
.movie-meta-line,
.movie-tags,
.detail-meta,
.detail-tags,
.quick-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.hero-tags a,
.detail-tags span,
.movie-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    background: var(--primary-500);
    color: #ffffff;
}

.hero-tags a,
.detail-tags span {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    backdrop-filter: blur(8px);
}

.hero-meta {
    margin-bottom: 28px;
    color: var(--gray-200);
    font-weight: 650;
}

.primary-button,
.glass-button,
.mini-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    padding: 0 24px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.mini-search button {
    color: #ffffff;
    border: 0;
    background: var(--primary-500);
    box-shadow: 0 16px 36px rgba(216, 148, 16, 0.26);
}

.primary-button:hover,
.mini-search button:hover {
    transform: translateY(-1px);
    background: var(--primary-600);
    box-shadow: var(--shadow-hover);
}

.glass-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.glass-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 6;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    font-size: 38px;
    line-height: 1;
    transform: translateY(-50%);
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 24px;
    z-index: 7;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
}

.hero-dot.is-active {
    width: 34px;
    background: #ffffff;
}

.section,
.page-hero {
    padding: 72px 0;
}

.section-soft,
.page-hero {
    background: linear-gradient(135deg, var(--secondary-50), var(--primary-50), #fff5ed);
}

.section-inner {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.section-heading.compact {
    margin-bottom: 18px;
}

.section-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--primary-600);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-heading h2,
.page-hero h1,
.search-card h2,
.story-card h2,
.detail-heading h1,
.horizontal-card h2,
.movie-info h2,
.footer-inner h2 {
    margin: 0;
}

.section-heading h2,
.page-hero h1 {
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
    font-weight: 900;
}

.page-hero p {
    max-width: 760px;
    margin: 14px 0 0;
    color: var(--gray-600);
    font-size: 18px;
}

.text-link {
    color: var(--primary-600);
    font-weight: 850;
}

.text-link:hover {
    color: var(--accent-600);
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.movie-grid-featured {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.movie-card,
.category-overview-card,
.story-card,
.search-card,
.horizontal-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
}

.movie-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--secondary-900);
}

.movie-card-large .movie-cover {
    aspect-ratio: 16 / 9;
}

.movie-cover img,
.horizontal-thumb img,
.category-overview-image img,
.detail-poster img,
.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover .movie-cover img,
.category-overview-card:hover .category-overview-image img,
.horizontal-card:hover .horizontal-thumb img {
    transform: scale(1.08);
}

.movie-cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.15), transparent);
}

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-weight: 900;
}

.play-chip {
    right: 14px;
    bottom: 14px;
    padding: 7px 12px;
    color: #ffffff;
    background: rgba(216, 148, 16, 0.92);
}

.rank-badge {
    top: 14px;
    left: 14px;
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
}

.movie-info {
    padding: 18px;
}

.movie-meta-line {
    justify-content: space-between;
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 750;
}

.movie-meta-line a {
    color: var(--primary-600);
}

.movie-info h2 {
    margin-top: 8px;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 900;
}

.movie-info h2 a:hover,
.horizontal-card h2 a:hover {
    color: var(--primary-600);
}

.movie-info p {
    min-height: 52px;
    margin: 10px 0 14px;
    color: var(--gray-600);
    font-size: 14px;
}

.movie-tags span {
    padding: 4px 9px;
    color: var(--gray-600);
    background: var(--gray-100);
}

.category-grid,
.category-overview-grid {
    display: grid;
    gap: 22px;
}

.category-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.category-tile {
    min-height: 170px;
    padding: 24px;
    border: 1px solid rgba(216, 148, 16, 0.18);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    background: #ffffff;
    box-shadow: var(--shadow-hover);
}

.category-tile span {
    font-size: 20px;
    font-weight: 900;
}

.category-tile p {
    margin: 12px 0 0;
    color: var(--gray-600);
    font-size: 14px;
}

.two-column-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: start;
}

.horizontal-list {
    display: grid;
    gap: 16px;
}

.horizontal-card {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 18px;
    padding: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.horizontal-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.horizontal-thumb {
    position: relative;
    overflow: hidden;
    min-height: 110px;
    border-radius: 18px;
    background: var(--secondary-900);
}

.horizontal-rank {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
    font-weight: 900;
}

.horizontal-content {
    padding: 6px 8px 6px 0;
}

.horizontal-card h2 {
    margin-top: 6px;
    font-size: 21px;
    line-height: 1.35;
    font-weight: 900;
}

.horizontal-card p {
    margin: 8px 0 12px;
    color: var(--gray-600);
}

.search-card {
    position: sticky;
    top: 96px;
    padding: 28px;
}

.search-card p {
    color: var(--gray-600);
}

.mini-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin: 22px 0;
}

.mini-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    padding: 0 16px;
    color: var(--gray-900);
    background: #ffffff;
    outline: none;
}

.mini-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(216, 148, 16, 0.12);
}

.quick-links a {
    display: inline-flex;
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--primary-600);
    background: var(--primary-50);
    font-weight: 750;
}

.filter-panel {
    padding: 30px 0 0;
    background: #ffffff;
}

.filter-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 190px 220px;
    gap: 18px;
    align-items: end;
    padding: 22px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.filter-grid label {
    display: grid;
    gap: 8px;
    color: var(--gray-600);
    font-weight: 800;
}

.no-results {
    grid-column: 1 / -1;
    padding: 24px;
    border-radius: var(--radius-lg);
    color: var(--gray-600);
    background: #ffffff;
    text-align: center;
}

.category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-overview-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 22px;
    padding: 16px;
}

.category-overview-image {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    border-radius: 18px;
}

.category-overview-image span {
    position: absolute;
    left: 14px;
    bottom: 14px;
    border-radius: 999px;
    padding: 8px 12px;
    color: #ffffff;
    background: rgba(216, 148, 16, 0.92);
    font-weight: 900;
}

.category-overview-card h2 {
    margin: 8px 0 8px;
    font-size: 24px;
    font-weight: 900;
}

.category-overview-card p {
    color: var(--gray-600);
}

.detail-hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: #000000;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    filter: blur(2px);
    transform: scale(1.02);
}

.detail-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.26));
}

.detail-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 42px;
    align-items: end;
    min-height: 620px;
    padding-top: 90px;
    padding-bottom: 72px;
    color: #ffffff;
}

.detail-poster {
    overflow: hidden;
    border: 6px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    aspect-ratio: 3 / 4;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--gray-300);
    font-weight: 800;
}

.breadcrumb a:hover {
    color: var(--primary-300);
}

.detail-heading h1 {
    max-width: 820px;
    font-size: clamp(38px, 6vw, 70px);
    line-height: 1.05;
    font-weight: 950;
}

.detail-heading p {
    max-width: 780px;
    color: var(--gray-200);
    font-size: 19px;
}

.detail-meta {
    margin: 18px 0;
    color: var(--gray-200);
    font-weight: 800;
}

.detail-tags {
    margin-bottom: 26px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #000000;
    box-shadow: var(--shadow-soft);
    aspect-ratio: 16 / 9;
}

.movie-video,
.player-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.movie-video {
    background: #000000;
}

.player-cover {
    z-index: 3;
    display: block;
    border: 0;
    padding: 0;
    overflow: hidden;
    background: #000000;
}

.player-cover.is-hidden {
    display: none;
}

.player-cover-shade {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.46);
}

.player-start {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
    font-size: 36px;
    box-shadow: 0 18px 50px rgba(249, 92, 22, 0.35);
    transform: translate(-50%, -50%);
}

.detail-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.story-card {
    padding: 28px;
}

.story-card h2 {
    font-size: 26px;
    font-weight: 900;
}

.story-card p {
    color: var(--gray-700);
    font-size: 17px;
}

.site-footer {
    color: #ffffff;
    background: linear-gradient(135deg, var(--secondary-900), var(--secondary-800), var(--secondary-900));
}

.footer-inner {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
    padding: 54px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-inner h2 {
    margin-bottom: 14px;
    color: var(--primary-300);
    font-size: 18px;
}

.footer-inner p,
.footer-inner a,
.footer-inner li {
    color: var(--gray-300);
}

.footer-inner ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-inner li + li {
    margin-top: 8px;
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 22px;
    color: var(--gray-400);
    font-size: 14px;
}

@media (max-width: 1024px) {
    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .mobile-nav.is-open {
        display: block;
    }

    .movie-grid,
    .movie-grid-featured {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .two-column-layout,
    .detail-content,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .search-card {
        position: static;
    }

    .category-overview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .header-inner,
    .section-inner,
    .footer-inner,
    .hero-content {
        width: calc(100% - 32px);
        padding-left: 0;
        padding-right: 0;
    }

    .hero-carousel {
        height: 78vh;
        min-height: 580px;
    }

    .hero-content {
        bottom: 70px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-arrow {
        display: none;
    }

    .section,
    .page-hero {
        padding: 48px 0;
    }

    .section-heading,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .movie-grid,
    .movie-grid-featured,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .horizontal-card,
    .category-overview-card,
    .detail-layout,
    .filter-grid {
        grid-template-columns: 1fr;
    }

    .horizontal-thumb {
        aspect-ratio: 16 / 9;
    }

    .detail-layout {
        min-height: auto;
        padding-top: 64px;
    }

    .detail-poster {
        max-width: 240px;
    }

    .detail-heading h1 {
        font-size: 40px;
    }

    .player-start {
        width: 68px;
        height: 68px;
        font-size: 28px;
    }

    .mini-search {
        grid-template-columns: 1fr;
    }
}
