:root {
    --bg: #f8f3ed;
    --surface: #fffaf4;
    --surface-strong: #ffffff;
    --ink: #2a211c;
    --muted: #74665c;
    --line: rgba(109, 63, 47, 0.14);
    --primary: #a05f3d;
    --primary-dark: #6d3f2f;
    --primary-soft: #ead4bd;
    --secondary: #c99660;
    --accent: #b8794a;
    --shadow: 0 18px 60px rgba(58, 34, 24, 0.14);
    --shadow-soft: 0 12px 32px rgba(58, 34, 24, 0.10);
    --radius: 22px;
    --radius-small: 14px;
    --max: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(232, 208, 179, 0.72), transparent 34rem),
        linear-gradient(180deg, #fffaf4 0%, var(--bg) 42%, #f4ecdf 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 250, 244, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 14px 22px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-dark);
    font-weight: 900;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 10px 24px rgba(160, 95, 61, 0.28);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text strong {
    font-size: 20px;
}

.logo-text span {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}

.site-nav {
    display: flex;
    justify-content: center;
    gap: 26px;
    align-items: center;
}

.site-nav a {
    font-size: 15px;
    font-weight: 700;
    color: #4b3a31;
    transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--primary);
}

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

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 5px 6px 5px 14px;
    box-shadow: 0 6px 18px rgba(58, 34, 24, 0.06);
}

.header-search input {
    border: 0;
    outline: 0;
    width: 180px;
    background: transparent;
    color: var(--ink);
}

.header-search button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #fff;
    background: var(--primary);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: var(--primary-dark);
    background: #fff;
    border: 1px solid var(--line);
}

main {
    flex: 1;
}

.section {
    max-width: var(--max);
    margin: 0 auto;
    padding: 54px 22px;
}

.section-tight {
    padding-top: 28px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
    margin-bottom: 26px;
}

.section-title h2,
.section-title h1 {
    margin: 0;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.section-title p {
    margin: 8px 0 0;
    color: var(--muted);
    max-width: 720px;
}

.link-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    color: var(--primary-dark);
    background: rgba(232, 208, 179, 0.52);
    font-weight: 800;
}

.hero {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    min-height: 620px;
    color: #fff;
    background: #211711;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 1.2s ease;
    background-size: cover;
    background-position: center;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(32, 22, 17, 0.96) 0%, rgba(32, 22, 17, 0.80) 40%, rgba(32, 22, 17, 0.18) 100%),
        linear-gradient(0deg, rgba(32, 22, 17, 0.86) 0%, rgba(32, 22, 17, 0.12) 60%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--max);
    min-height: 620px;
    margin: 0 auto;
    padding: 90px 22px 54px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    gap: 42px;
    align-items: center;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f8dfc4;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 800;
    margin: 0 0 18px;
}

.hero h1,
.hero-site-title {
    margin: 0;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.05em;
    font-weight: 900;
}

.hero-movie-title {
    margin: 18px 0 10px;
    font-size: clamp(24px, 3.6vw, 42px);
    line-height: 1.1;
}

.hero-copy p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.84);
    max-width: 680px;
}

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

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

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

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 18px 36px rgba(184, 121, 74, 0.28);
}

.btn-ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
}

.hero-panel {
    background: rgba(255, 250, 244, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

.hero-panel img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.hero-panel-meta {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.hero-panel-meta span {
    display: inline-flex;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffe9d0;
    font-weight: 800;
    font-size: 13px;
}

.hero-controls {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    width: min(100% - 44px, var(--max));
}

.hero-dot {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    overflow: hidden;
}

.hero-dot span {
    display: block;
    width: 0;
    height: 100%;
    background: #fff;
    transition: width 0.4s ease;
}

.hero-dot.is-active span {
    width: 100%;
}

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

.category-card {
    min-height: 148px;
    padding: 22px;
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(250, 245, 240, 0.84)),
        radial-gradient(circle at top right, rgba(232, 208, 179, 0.7), transparent 70%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.category-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.category-card .card-link {
    display: inline-flex;
    margin-top: 18px;
    color: var(--primary);
    font-weight: 900;
}

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

.movie-card {
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #2b1f19;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.poster-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    background: rgba(32, 22, 17, 0.72);
    backdrop-filter: blur(10px);
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.movie-meta span,
.movie-meta a {
    display: inline-flex;
    align-items: center;
}

.movie-card h3 {
    margin: 9px 0 8px;
    font-size: 19px;
    line-height: 1.26;
}

.movie-card h3 a:hover,
.rank-content h3 a:hover,
.sitemap-list a:hover {
    color: var(--primary);
}

.movie-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.tag-list span,
.info-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(232, 208, 179, 0.52);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 800;
}

.feature-band {
    background: linear-gradient(135deg, #fffaf4, #efe1d1);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
}

.rank-poster {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #2b1f19;
}

.rank-poster img {
    width: 112px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.rank-poster span {
    position: absolute;
    top: 8px;
    left: 8px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    font-weight: 900;
}

.rank-content h3 {
    margin: 6px 0;
    font-size: 22px;
}

.rank-content p {
    margin: 0;
    color: var(--muted);
}

.rank-link {
    padding: 10px 16px;
    border-radius: 999px;
    color: #fff;
    background: var(--primary);
    font-weight: 900;
}

.page-hero {
    max-width: var(--max);
    margin: 30px auto 0;
    padding: 48px 22px;
}

.page-hero-card {
    border-radius: calc(var(--radius) + 8px);
    padding: clamp(28px, 6vw, 58px);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(250, 245, 240, 0.82)),
        radial-gradient(circle at top right, rgba(232, 208, 179, 0.86), transparent 58%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.page-hero-card h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.page-hero-card p {
    max-width: 820px;
    color: var(--muted);
    font-size: 18px;
}

.filter-panel {
    margin-bottom: 24px;
    padding: 18px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 13px 14px;
    color: var(--ink);
    background: #fff;
    outline: 0;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(160, 95, 61, 0.48);
    box-shadow: 0 0 0 4px rgba(184, 121, 74, 0.12);
}

.empty-state {
    display: none;
    padding: 28px;
    border-radius: var(--radius);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
}

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

.breadcrumb {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 18px;
}

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

.player-card,
.detail-card,
.side-card {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.player-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #160f0c;
}

.player-wrap video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background-size: cover;
    background-position: center;
}

.player-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(22, 15, 12, 0.78), rgba(22, 15, 12, 0.28));
}

.player-overlay.hidden {
    display: none;
}

.play-button {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
    font-size: 30px;
}

.player-caption {
    padding: 18px 20px 20px;
}

.player-caption h1 {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.player-caption p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

.detail-card {
    padding: 24px;
    margin-top: 22px;
}

.detail-card h2,
.side-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.detail-card p {
    margin: 0 0 16px;
    color: #4d3d34;
}

.detail-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.detail-info div {
    padding: 12px;
    border-radius: 16px;
    background: rgba(250, 245, 240, 0.96);
    border: 1px solid var(--line);
}

.detail-info strong {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 4px;
}

.side-card {
    padding: 18px;
}

.side-card .movie-card {
    margin-bottom: 14px;
    box-shadow: none;
}

.side-card .poster-link img {
    aspect-ratio: 16 / 10;
}

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

.side-card .movie-card h3 {
    font-size: 16px;
}

.sitemap-list {
    columns: 4 220px;
    column-gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sitemap-list li {
    break-inside: avoid;
    margin-bottom: 10px;
}

.sitemap-list a {
    display: inline-flex;
    color: #4b3a31;
    font-weight: 700;
}

.site-footer {
    margin-top: 42px;
    background: #211711;
    color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 42px 22px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
}

.footer-inner p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.62);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links a:hover {
    color: #fff;
}

@media (max-width: 1024px) {
    .header-inner {
        grid-template-columns: auto auto;
    }

    .site-nav,
    .header-search {
        display: none;
    }

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .site-nav.is-open {
        grid-column: 1 / -1;
        display: grid;
        justify-content: stretch;
        gap: 10px;
        padding-top: 12px;
    }

    .site-nav.is-open a {
        padding: 11px 12px;
        border-radius: 14px;
        background: #fff;
        border: 1px solid var(--line);
    }

    .header-actions {
        justify-content: end;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding-top: 76px;
    }

    .hero-panel {
        max-width: 320px;
    }

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

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

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

@media (max-width: 720px) {
    .section {
        padding: 40px 16px;
    }

    .header-inner {
        padding: 12px 16px;
    }

    .logo-text span {
        display: none;
    }

    .hero,
    .hero-content {
        min-height: 560px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero-copy p {
        font-size: 16px;
    }

    .hero-panel {
        display: none;
    }

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

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

    .movie-card h3 {
        font-size: 16px;
    }

    .movie-card p {
        font-size: 13px;
    }

    .section-title {
        display: block;
    }

    .link-more {
        margin-top: 14px;
    }

    .rank-item {
        grid-template-columns: 84px minmax(0, 1fr);
    }

    .rank-poster img {
        width: 84px;
    }

    .rank-link {
        grid-column: 1 / -1;
        text-align: center;
    }

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

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

    .play-button {
        width: 68px;
        height: 68px;
    }
}

@media (max-width: 430px) {
    .category-strip,
    .movie-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        display: grid;
    }

    .btn {
        width: 100%;
    }
}
