:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-300: #fcd34d;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --blue-500: #3b82f6;
    --cyan-500: #06b6d4;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow: 0 16px 40px rgba(17, 24, 39, 0.12);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--gray-800);
    background: var(--gray-50);
    line-height: 1.6;
}

img,
video {
    display: block;
    max-width: 100%;
}

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: var(--gray-800);
    white-space: nowrap;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
    box-shadow: 0 10px 22px rgba(245, 158, 11, 0.28);
}

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

.nav-link,
.mobile-link {
    display: inline-flex;
    align-items: center;
    border-radius: 12px;
    padding: 10px 14px;
    color: var(--gray-600);
    font-weight: 650;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--amber-700);
    background: var(--amber-100);
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.search-panel input,
.search-panel select,
.toolbar input {
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    min-width: 210px;
    padding: 10px 16px;
    color: var(--gray-700);
    outline: none;
    background: #fff;
}

.header-search input:focus,
.mobile-search input:focus,
.search-panel input:focus,
.search-panel select:focus,
.toolbar input:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.header-search button,
.mobile-search button,
.btn-light {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: #fff;
    background: var(--amber-500);
    font-weight: 750;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    background: var(--amber-100);
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 8px;
    background: var(--amber-700);
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--gray-200);
    padding: 12px 16px 18px;
    background: #fff;
}

.mobile-panel.open {
    display: grid;
    gap: 8px;
}

.hero-section {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #fff;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 48px;
    align-items: center;
    min-height: 620px;
    padding: 48px 0;
}

.hero-copy {
    max-width: 680px;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--amber-500);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 18px 0 22px;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1.04;
    font-weight: 900;
}

.hero-copy p {
    margin: 0 0 26px;
    max-width: 640px;
    color: #e5e7eb;
    font-size: clamp(18px, 2.5vw, 22px);
}

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

.hero-meta a,
.hero-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    border-radius: 999px;
    padding: 8px 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.hero-meta a {
    background: var(--amber-500);
    font-weight: 800;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn-primary,
.btn-secondary,
.section-more,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    border: 0;
    padding: 14px 26px;
    color: #fff;
    background: var(--amber-500);
    box-shadow: 0 14px 28px rgba(245, 158, 11, 0.28);
}

.btn-primary:hover,
.header-search button:hover,
.mobile-search button:hover {
    background: var(--amber-600);
    transform: translateY(-1px);
}

.btn-secondary {
    padding: 14px 24px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-panel {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    padding: 26px;
    background: rgba(17, 24, 39, 0.48);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(16px);
}

.hero-panel h2 {
    margin: 0 0 10px;
    font-size: 26px;
}

.hero-panel p {
    margin: 0 0 20px;
    color: #d1d5db;
}

.hero-mini-list {
    display: grid;
    gap: 10px;
}

.hero-mini-list a {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.11);
    transition: 0.2s ease;
}

.hero-mini-list a:hover {
    background: rgba(245, 158, 11, 0.42);
}

.hero-mini-list em {
    color: var(--amber-300);
    font-style: normal;
}

.section {
    padding: 72px 0;
}

.bg-white {
    background: #fff;
}

.warm-section {
    background: linear-gradient(135deg, var(--amber-50), #fff7ed);
}

.alt-soft:nth-of-type(even) {
    background: #fff;
}

.alt-soft:nth-of-type(odd) {
    background: var(--gray-100);
}

.blue-strip {
    color: #fff;
    background: linear-gradient(120deg, #2563eb, var(--cyan-500));
}

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

.section-heading h2,
.page-hero h1,
.detail-side h1,
.detail-article h2,
.info-card h2 {
    margin: 8px 0 0;
    color: var(--gray-800);
    font-weight: 900;
    line-height: 1.15;
}

.section-heading h2,
.page-hero h1 {
    font-size: clamp(32px, 4vw, 46px);
}

.section-heading p,
.page-hero p {
    margin: 10px 0 0;
    max-width: 680px;
    color: var(--gray-600);
}

.section-heading.light h2,
.section-heading.light p {
    color: #fff;
}

.section-more,
.text-link {
    color: var(--amber-700);
    font-weight: 850;
}

.section-more:hover,
.text-link:hover {
    color: var(--amber-500);
}

.grid {
    display: grid;
    gap: 24px;
}

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

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

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

.mt-24 {
    margin-top: 24px;
}

.movie-card {
    overflow: hidden;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.48);
    box-shadow: var(--shadow);
}

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

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

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

.movie-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    max-width: calc(100% - 28px);
    border-radius: 999px;
    padding: 7px 12px;
    color: #fff;
    font-size: 13px;
    font-weight: 850;
    background: rgba(245, 158, 11, 0.9);
    backdrop-filter: blur(8px);
}

.movie-card-body {
    padding: 18px;
}

.movie-title {
    display: inline-block;
    color: var(--gray-800);
    font-size: 20px;
    font-weight: 850;
    line-height: 1.3;
}

.movie-title:hover {
    color: var(--amber-700);
}

.movie-meta {
    margin: 8px 0;
    color: var(--gray-500);
    font-size: 14px;
}

.movie-line {
    margin: 0;
    color: var(--gray-600);
}

.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.movie-tags span {
    border-radius: 999px;
    padding: 6px 10px;
    color: var(--amber-700);
    font-size: 13px;
    font-weight: 700;
    background: var(--amber-100);
}

.movie-tags.large span {
    padding: 8px 12px;
}

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 220px 1fr;
}

.movie-card-horizontal .movie-poster {
    aspect-ratio: auto;
    min-height: 100%;
}

.movie-card-compact .movie-title {
    font-size: 17px;
}

.scroll-row {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding: 4px 4px 20px;
    scroll-snap-type: x mandatory;
}

.scroll-row .movie-card {
    width: 320px;
    flex: 0 0 320px;
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.96);
}

.page-main {
    background: var(--gray-50);
}

.page-hero {
    padding: 80px 0;
    color: #fff;
    background: linear-gradient(135deg, var(--gray-900), var(--gray-700));
}

.page-hero h1,
.page-hero p {
    color: #fff;
}

.amber-hero {
    background: linear-gradient(135deg, var(--amber-700), var(--amber-500));
}

.blue-hero {
    background: linear-gradient(135deg, #1d4ed8, #0891b2);
}

.crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.78);
}

.crumb a:hover {
    color: #fff;
}

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

.category-card {
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(17, 24, 39, 0.09);
}

.category-main {
    display: block;
    padding: 28px;
    background: linear-gradient(135deg, var(--amber-50), #fff);
}

.category-main h2 {
    margin: 8px 0;
    font-size: 30px;
}

.category-main p {
    margin: 0 0 16px;
    color: var(--gray-600);
}

.category-main strong {
    color: var(--amber-700);
}

.category-samples {
    display: grid;
    gap: 1px;
    background: var(--gray-200);
}

.category-samples a {
    padding: 13px 18px;
    background: #fff;
}

.category-samples a:hover {
    color: var(--amber-700);
}

.toolbar,
.search-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    border-radius: 22px;
    padding: 18px;
    background: var(--gray-100);
}

.toolbar label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray-600);
    font-weight: 750;
}

.search-panel input {
    flex: 1;
    min-width: 220px;
}

.search-panel select {
    min-width: 180px;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 96px 132px 1fr;
    gap: 20px;
    align-items: center;
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    padding: 14px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
}

.rank-num {
    display: inline-flex;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 12px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
}

.rank-poster {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 14px;
    background: var(--gray-900);
}

.rank-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-main {
    background: var(--gray-50);
}

.detail-hero {
    padding: 34px 0 56px;
    color: #fff;
    background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.34), transparent 32%), linear-gradient(135deg, var(--gray-900), #020617);
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.72fr) minmax(280px, 0.8fr);
    gap: 28px;
    align-items: stretch;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    min-height: 320px;
    background: #000;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

.movie-video {
    width: 100%;
    height: 100%;
    min-height: 320px;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #fff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.48));
    transition: opacity 0.2s ease;
}

.player-card.is-playing .player-overlay {
    opacity: 0;
    pointer-events: none;
}

.play-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    padding-left: 6px;
    background: var(--amber-500);
    box-shadow: 0 18px 50px rgba(245, 158, 11, 0.45);
    font-size: 34px;
}

.detail-side {
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    color: var(--gray-800);
    box-shadow: var(--shadow);
}

.detail-side img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    background: var(--gray-900);
}

.detail-side-body {
    padding: 24px;
}

.detail-side h1 {
    margin-bottom: 14px;
    font-size: 34px;
}

.detail-side p {
    margin: 0 0 20px;
    color: var(--gray-600);
}

.wide {
    width: 100%;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}

.detail-article,
.info-card {
    border-radius: 24px;
    padding: 28px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.07);
}

.detail-article h2,
.info-card h2 {
    margin-top: 0;
    font-size: 28px;
}

.detail-article h2:not(:first-child) {
    margin-top: 30px;
}

.detail-article p {
    margin: 14px 0 0;
    color: var(--gray-700);
    font-size: 17px;
}

.info-card dl {
    display: grid;
    gap: 12px;
    margin: 20px 0;
}

.info-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 10px;
}

.info-card dt {
    color: var(--gray-500);
}

.info-card dd {
    margin: 0;
    color: var(--gray-800);
    font-weight: 750;
    text-align: right;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 34px;
    padding: 52px 0 36px;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 18px;
}

.site-footer p {
    margin: 12px 0 0;
}

.site-footer a {
    display: block;
    margin: 9px 0;
    color: #d1d5db;
}

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

.footer-logo {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px 16px;
    color: #9ca3af;
    text-align: center;
}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 40;
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--amber-500);
    box-shadow: var(--shadow);
}

.back-to-top.show {
    display: block;
}

.hidden-by-filter {
    display: none !important;
}

.empty-state {
    grid-column: 1 / -1;
    border-radius: 20px;
    padding: 32px;
    color: var(--gray-600);
    text-align: center;
    background: var(--gray-100);
}

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

    .card-grid,
    .compact-grid,
    .category-overview,
    .footer-grid,
    .detail-grid,
    .detail-content-grid,
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }

    .hero-panel,
    .detail-side {
        align-self: start;
    }
}

@media (max-width: 780px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .hero-section,
    .hero-content {
        min-height: auto;
    }

    .hero-content,
    .card-grid,
    .compact-grid,
    .two-grid,
    .category-overview,
    .footer-grid,
    .detail-grid,
    .detail-content-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 80px 0;
    }

    .section {
        padding: 48px 0;
    }

    .section-heading,
    .toolbar,
    .search-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .movie-card-horizontal {
        grid-template-columns: 1fr;
    }

    .ranking-item {
        grid-template-columns: 74px 1fr;
    }

    .ranking-item > div {
        grid-column: 1 / -1;
    }

    .rank-poster {
        height: 90px;
    }

    .detail-side img {
        height: 220px;
    }

    .site-logo {
        font-size: 20px;
    }
}

@media (max-width: 520px) {
    .hero-copy h1 {
        font-size: 38px;
    }

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

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .scroll-row .movie-card {
        width: 280px;
        flex-basis: 280px;
    }

    .movie-card-body,
    .detail-article,
    .info-card,
    .detail-side-body {
        padding: 20px;
    }
}
