:root {
    --orange: #f97316;
    --orange-dark: #ea580c;
    --amber: #f59e0b;
    --yellow: #eab308;
    --ink: #1f2937;
    --muted: #6b7280;
    --soft: #f8fafc;
    --line: #e5e7eb;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f9fafb;
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--amber), var(--yellow));
    box-shadow: 0 12px 28px rgba(234, 88, 12, 0.25);
}

.header-inner {
    min-height: 68px;
    display: grid;
    grid-template-columns: auto 1fr minmax(220px, 310px);
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.brand-name {
    font-size: 22px;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    font-weight: 700;
}

.main-nav a {
    opacity: 0.94;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.header-search {
    position: relative;
}

.header-search input {
    width: 100%;
    height: 42px;
    border: 0;
    outline: 0;
    color: #78350f;
    border-radius: 999px;
    padding: 0 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.search-results {
    position: absolute;
    right: 0;
    top: 50px;
    width: min(420px, 86vw);
    display: none;
    max-height: 420px;
    overflow: auto;
    color: var(--ink);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(229, 231, 235, 0.9);
}

.search-results.is-open {
    display: block;
}

.search-result-item {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid #f3f4f6;
}

.search-result-item:hover {
    background: #fff7ed;
}

.search-result-item img {
    width: 54px;
    height: 74px;
    border-radius: 10px;
    object-fit: cover;
}

.search-result-item strong {
    display: block;
    font-size: 14px;
    color: #111827;
}

.search-result-item span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
}

.search-empty {
    padding: 18px;
    color: var(--muted);
    text-align: center;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
    border-radius: 999px;
}

.hero-slider {
    position: relative;
    height: clamp(500px, 68vw, 700px);
    overflow: hidden;
    background: #111827;
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 5s ease;
}

.hero-slide.is-active img {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.76));
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding-top: 30px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    font-weight: 700;
}

.hero-content h1 {
    max-width: 980px;
    margin: 18px auto 14px;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.05;
    text-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.hero-content p {
    max-width: 820px;
    margin: 0 auto 22px;
    font-size: clamp(17px, 2vw, 23px);
    color: rgba(255, 255, 255, 0.92);
}

.hero-tags,
.tag-row,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    justify-content: center;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.tag-row span {
    color: #c2410c;
    background: #ffedd5;
}

.hero-actions,
.page-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
}

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

.btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--amber));
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.32);
}

.btn-light {
    color: #78350f;
    background: rgba(255, 255, 255, 0.92);
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.2s ease, background 0.2s ease;
}

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

.home-search-panel {
    margin-top: -44px;
    position: relative;
    z-index: 20;
}

.search-panel-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 26px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.search-panel-inner h2 {
    margin: 0 0 6px;
    font-size: 30px;
}

.search-panel-inner p {
    margin: 0;
    color: var(--muted);
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.quick-links a {
    padding: 9px 14px;
    color: #c2410c;
    border-radius: 999px;
    background: #ffedd5;
    font-weight: 800;
}

.section-block {
    padding: 64px 0;
}

.warm-block {
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.muted-block {
    background: #f3f4f6;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.15;
}

.section-heading a,
.section-heading span {
    color: var(--orange-dark);
    font-weight: 800;
}

.slim-heading h2 {
    font-size: 28px;
}

.movie-grid {
    display: grid;
    gap: 22px;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.09);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-cover {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: #111827;
}

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

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

.movie-cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.64));
}

.movie-year {
    position: absolute;
    right: 10px;
    top: 10px;
    padding: 3px 8px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.62);
}

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

.movie-card h3 {
    min-height: 44px;
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.35;
}

.movie-meta-line,
.movie-one-line {
    margin: 0 0 9px;
    color: var(--muted);
    font-size: 13px;
}

.movie-one-line {
    min-height: 42px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.category-card {
    position: relative;
    min-height: 238px;
    overflow: hidden;
    border-radius: 22px;
    color: #ffffff;
    background: #111827;
    box-shadow: var(--shadow);
}

.category-card img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
    opacity: 0.62;
    transition: transform 0.45s ease, opacity 0.45s ease;
}

.category-card:hover img {
    transform: scale(1.08);
    opacity: 0.74;
}

.category-card div {
    position: absolute;
    inset: auto 0 0;
    padding: 20px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

.category-card h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.category-card p {
    margin: 0 0 10px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.category-card span {
    font-weight: 800;
    color: #fed7aa;
}

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

.ranking-panel {
    position: sticky;
    top: 88px;
    padding: 22px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 42px 52px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 9px;
    border-radius: 14px;
    background: #f9fafb;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
    background: #fff7ed;
    transform: translateX(2px);
}

.rank-no {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #ffffff;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    font-weight: 900;
}

.rank-item img {
    width: 52px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
}

.rank-title {
    font-weight: 800;
}

.rank-meta {
    color: var(--muted);
    font-size: 12px;
}

.rank-score {
    color: #c2410c;
    font-weight: 900;
}

.compact-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.compact-card {
    position: relative;
    overflow: hidden;
    min-height: 178px;
    border-radius: 18px;
    background: #111827;
}

.compact-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: transform 0.35s ease;
}

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

.compact-card span {
    position: absolute;
    inset: auto 0 0;
    padding: 34px 12px 12px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

.page-hero {
    color: #ffffff;
    padding: 76px 0;
}

.gradient-hero {
    background: radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.25), transparent 32%), linear-gradient(90deg, var(--orange), var(--amber), var(--yellow));
}

.page-hero p {
    margin: 0 0 8px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.page-hero h1 {
    max-width: 900px;
    margin: 0 0 12px;
    font-size: clamp(36px, 6vw, 60px);
    line-height: 1.08;
}

.page-hero span {
    display: block;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 18px;
}

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

.category-overview-card {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.overview-cover {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 156px;
    overflow: hidden;
    background: #111827;
}

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

.overview-body {
    padding: 22px;
}

.overview-body h2 {
    margin: 0 0 10px;
}

.overview-body p {
    color: var(--muted);
}

.overview-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #c2410c;
    font-weight: 800;
}

.category-list .movie-card {
    scroll-margin-top: 90px;
}

.ranking-wide {
    max-width: 960px;
}

.wide-rank-list .rank-item {
    grid-template-columns: 56px 62px 1fr 130px 70px;
}

.detail-player-section {
    padding: 30px 0 42px;
    background: #030712;
}

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

.breadcrumb a:hover {
    color: #ffffff;
}

.player-box {
    overflow: hidden;
    max-width: 1060px;
    margin: 0 auto;
    border-radius: 22px;
    background: #000000;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

.movie-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

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

.detail-content,
.detail-side {
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.detail-content {
    padding: 28px;
}

.detail-title-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 26px;
}

.detail-title-row img {
    width: 180px;
    height: 252px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
}

.detail-title-row h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
}

.detail-one-line {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 18px;
}

.detail-meta span {
    padding: 7px 11px;
    color: #7c2d12;
    border-radius: 999px;
    background: #ffedd5;
    font-weight: 800;
}

.detail-tags {
    justify-content: flex-start;
    margin-top: 16px;
}

.detail-tags span {
    color: #c2410c;
    background: #fff7ed;
}

.detail-content h2 {
    margin: 24px 0 10px;
    font-size: 24px;
}

.detail-content p {
    color: #374151;
    font-size: 16px;
}

.detail-side {
    position: sticky;
    top: 88px;
    padding: 22px;
}

.detail-side h2 {
    margin: 0 0 18px;
}

.side-list {
    display: grid;
    gap: 12px;
}

.side-list .compact-card {
    min-height: 118px;
}

.side-btn {
    width: 100%;
    margin-top: 18px;
}

.site-footer {
    color: #d1d5db;
    background: #111827;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 28px;
    padding: 44px 0;
}

.footer-brand {
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 12px;
}

.site-footer h3 {
    margin: 0 0 12px;
    color: #ffffff;
}

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

.site-footer a:hover {
    color: #fdba74;
}

@media (max-width: 1100px) {
    .six-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

    .ranking-panel,
    .detail-side {
        position: static;
    }
}

@media (max-width: 860px) {
    .header-inner {
        grid-template-columns: auto auto;
        gap: 14px;
        padding: 12px 0;
    }

    .menu-toggle {
        display: block;
        justify-self: end;
    }

    .main-nav {
        grid-column: 1 / -1;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.12);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 10px 12px;
    }

    .header-search {
        grid-column: 1 / -1;
        width: 100%;
    }

    .hero-slider {
        height: 560px;
    }

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

    .quick-links {
        justify-content: flex-start;
    }

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

    .detail-title-row {
        grid-template-columns: 1fr;
    }

    .detail-title-row img {
        width: 160px;
        height: 224px;
    }

    .wide-rank-list .rank-item,
    .rank-item {
        grid-template-columns: 42px 52px 1fr;
    }

    .rank-meta,
    .rank-score {
        display: none;
    }
}

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

    .brand-name {
        font-size: 18px;
    }

    .hero-content {
        align-items: flex-start;
        text-align: left;
    }

    .hero-tags,
    .hero-actions {
        justify-content: flex-start;
    }

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

    .six-grid,
    .four-grid,
    .category-grid,
    .compact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .movie-cover {
        height: 190px;
    }

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

    .movie-one-line {
        display: none;
    }

    .overview-cover {
        height: 120px;
    }

    .section-block {
        padding: 44px 0;
    }
}
