@import url("https://fonts.googleapis.com/css2?family=Patrick+Hand&display=swap");

:root {
    --blackboard-dark: #0f1a0f;
    --blackboard: #1a2e1a;
    --blackboard-light: #2d4a2d;
    --chalk-white: #f5f5dc;
    --chalk-yellow: #fffacd;
    --chalk-blue: #add8e6;
    --chalk-green: #90ee90;
    --chalk-pink: #ffb6c1;
    --vintage-gold: #ffd700;
    --vintage-beige: #d4c5aa;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.28);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--chalk-white);
    background:
        radial-gradient(circle at 20% 0%, rgba(255, 250, 205, 0.07), transparent 32rem),
        radial-gradient(circle at 80% 15%, rgba(173, 216, 230, 0.08), transparent 30rem),
        linear-gradient(180deg, var(--blackboard-dark), var(--blackboard));
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
    line-height: 1.65;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    opacity: 0.16;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 32px 32px;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(26, 46, 26, 0.94);
    border-bottom: 2px solid rgba(255, 250, 205, 0.28);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--chalk-white);
    font-family: "Patrick Hand", cursive, system-ui;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 700;
    white-space: nowrap;
}

.brand-mark {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: var(--blackboard);
    background: var(--chalk-yellow);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 250, 205, 0.12);
    font-size: 16px;
}

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

.nav-link {
    color: rgba(245, 245, 220, 0.88);
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--chalk-yellow);
    transform: translateY(-1px);
}

.top-search,
.mobile-search,
.large-search {
    display: flex;
    gap: 8px;
}

.top-search input,
.mobile-search input,
.large-search input,
.search-page-form input {
    width: 190px;
    color: var(--chalk-white);
    background: rgba(45, 74, 45, 0.9);
    border: 1px solid rgba(255, 250, 205, 0.32);
    border-radius: 12px;
    outline: none;
    padding: 10px 12px;
}

.top-search input:focus,
.mobile-search input:focus,
.large-search input:focus,
.search-page-form input:focus {
    border-color: var(--chalk-yellow);
    box-shadow: 0 0 0 4px rgba(255, 250, 205, 0.08);
}

.top-search button,
.mobile-search button,
.large-search button,
.btn.primary {
    color: var(--blackboard);
    background: var(--chalk-yellow);
    border: 0;
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.top-search button:hover,
.mobile-search button:hover,
.large-search button:hover,
.btn.primary:hover {
    background: var(--chalk-white);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: var(--chalk-yellow);
    border-radius: 999px;
}

.mobile-panel {
    border-top: 1px solid rgba(255, 250, 205, 0.2);
    padding: 16px 20px 22px;
    background: var(--blackboard);
}

.mobile-nav {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.mobile-nav a {
    color: var(--chalk-white);
    font-weight: 700;
}

.hero {
    position: relative;
    min-height: min(740px, 72vh);
    overflow: hidden;
    background: var(--blackboard-dark);
}

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

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

.hero-slide > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.04);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 26, 15, 0.96) 0%, rgba(26, 46, 26, 0.76) 42%, rgba(26, 46, 26, 0.34) 100%),
        linear-gradient(0deg, var(--blackboard) 0%, transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: end;
    min-height: min(740px, 72vh);
    gap: 42px;
    padding-top: 96px;
    padding-bottom: 64px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    color: var(--chalk-yellow);
    margin-bottom: 14px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.hero h1,
.page-title h1,
.detail-panel h1,
.section-heading h2,
.site-footer h2,
.content-section h2,
.side-info h2 {
    font-family: "Patrick Hand", cursive, system-ui;
    letter-spacing: 0.02em;
}

.hero h1 {
    margin: 0 0 18px;
    color: var(--chalk-white);
    font-size: clamp(42px, 8vw, 82px);
    line-height: 0.98;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
}

.hero p {
    max-width: 680px;
    margin: 0 0 22px;
    color: rgba(245, 245, 220, 0.92);
    font-size: clamp(17px, 2vw, 21px);
}

.hero-tags,
.detail-meta-row,
.movie-card-meta,
.movie-card-foot,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hero-tags span,
.detail-meta-row span,
.detail-meta-row a,
.meta-tag {
    color: var(--chalk-yellow);
    background: rgba(15, 26, 15, 0.72);
    border: 1px solid rgba(255, 250, 205, 0.25);
    border-radius: 999px;
    padding: 5px 11px;
    font-weight: 800;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 900;
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.btn.ghost,
.btn.line {
    color: var(--chalk-white);
    border: 1px solid rgba(255, 250, 205, 0.34);
    background: rgba(45, 74, 45, 0.72);
}

.btn.ghost:hover,
.btn.line:hover {
    color: var(--chalk-yellow);
    border-color: var(--chalk-yellow);
    transform: translateY(-1px);
}

.hero-card {
    align-self: center;
    overflow: hidden;
    border: 2px solid rgba(255, 250, 205, 0.32);
    border-radius: 24px;
    background: rgba(45, 74, 45, 0.72);
    box-shadow: var(--shadow-soft);
    transform: rotate(1.5deg);
}

.hero-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

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

.hero-card-body strong {
    display: block;
    color: var(--chalk-white);
    font-size: 22px;
    margin-bottom: 6px;
}

.hero-card-body span {
    color: rgba(245, 245, 220, 0.74);
}

.hero-card .tag-row {
    margin-top: 12px;
}

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

.hero-dot {
    width: 38px;
    height: 5px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(245, 245, 220, 0.36);
    cursor: pointer;
}

.hero-dot.active {
    background: var(--chalk-yellow);
}

.page-stack,
.page-shell {
    padding-top: 56px;
    padding-bottom: 72px;
}

.page-stack {
    display: grid;
    gap: 64px;
}

.search-band,
.panel,
.detail-panel,
.side-card,
.search-page-box {
    border: 2px solid rgba(255, 250, 205, 0.28);
    border-radius: var(--radius);
    background: rgba(45, 74, 45, 0.78);
    box-shadow: var(--shadow-soft);
}

.search-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
    gap: 24px;
    align-items: center;
    padding: 28px;
}

.search-band h2 {
    margin: 0 0 8px;
    color: var(--chalk-white);
    font-size: clamp(24px, 3vw, 36px);
}

.search-band p,
.page-title p,
.section-heading p,
.overview-card p,
.category-tile small,
.index-tile small,
.site-footer p,
.content-section p,
.one-line {
    color: rgba(245, 245, 220, 0.82);
}

.large-search input {
    flex: 1;
    width: 100%;
}

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

.section-heading h2 {
    display: inline;
    margin: 0;
    color: var(--chalk-white);
    font-size: clamp(30px, 4vw, 42px);
}

.section-heading p {
    margin: 8px 0 0;
}

.section-icon {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-right: 10px;
    color: var(--blackboard);
    background: var(--chalk-yellow);
    border-radius: 12px;
    font-weight: 900;
}

.section-more,
.text-link {
    color: var(--chalk-yellow);
    font-weight: 900;
}

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

.panel {
    padding: clamp(22px, 3vw, 34px);
}

.yellow-panel {
    border-color: rgba(255, 250, 205, 0.28);
}

.green-panel {
    border-color: rgba(144, 238, 144, 0.32);
    background: linear-gradient(120deg, rgba(45, 74, 45, 0.9), rgba(15, 26, 15, 0.76));
}

.blue-panel {
    border-color: rgba(173, 216, 230, 0.32);
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 250, 205, 0.2);
    border-radius: 18px;
    background: rgba(45, 74, 45, 0.72);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    border-color: rgba(255, 250, 205, 0.72);
    transform: translateY(-5px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: rgba(15, 26, 15, 0.8);
}

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

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

.poster-glow {
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    background: linear-gradient(0deg, rgba(15, 26, 15, 0.88), transparent);
}

.rank-badge,
.list-rank {
    display: inline-grid;
    place-items: center;
    color: var(--blackboard);
    background: var(--chalk-yellow);
    font-weight: 900;
}

.rank-badge {
    position: absolute;
    z-index: 4;
    top: 10px;
    left: 10px;
    min-width: 34px;
    height: 34px;
    border-radius: 10px;
}

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

.movie-card-meta {
    color: rgba(245, 245, 220, 0.65);
    font-size: 13px;
    margin-bottom: 8px;
}

.movie-card h3 {
    margin: 0 0 8px;
    color: var(--chalk-white);
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--chalk-yellow);
}

.movie-card p {
    display: -webkit-box;
    min-height: 3.2em;
    margin: 0 0 14px;
    overflow: hidden;
    color: rgba(245, 245, 220, 0.72);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-card-foot {
    justify-content: space-between;
    color: rgba(245, 245, 220, 0.75);
    font-size: 14px;
}

.movie-card-foot a,
.score {
    color: var(--chalk-yellow);
    font-weight: 900;
}

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

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

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

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

.category-tile,
.index-tile,
.overview-card {
    overflow: hidden;
    border: 2px solid rgba(255, 250, 205, 0.22);
    border-radius: 18px;
    background: rgba(45, 74, 45, 0.72);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover,
.index-tile:hover,
.overview-card:hover {
    border-color: var(--chalk-yellow);
    transform: translateY(-4px);
}

.category-tile img,
.index-tile img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.category-tile span,
.index-tile span {
    display: block;
    color: var(--chalk-white);
    font-size: 20px;
    font-weight: 900;
    padding: 14px 16px 2px;
}

.category-tile small,
.index-tile small {
    display: block;
    padding: 0 16px 16px;
}

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

.overview-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 18px;
    padding: 16px;
}

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

.overview-thumb-grid img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    object-fit: cover;
}

.overview-card h2 {
    margin: 0 0 8px;
    color: var(--chalk-white);
}

.link-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.link-cloud a {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: var(--chalk-white);
    background: rgba(15, 26, 15, 0.5);
    border: 1px solid rgba(255, 250, 205, 0.22);
    border-radius: 999px;
    padding: 9px 14px;
    font-weight: 800;
}

.link-cloud a:hover {
    color: var(--chalk-yellow);
    border-color: var(--chalk-yellow);
}

.link-cloud span {
    color: var(--chalk-blue);
}

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

.page-title {
    margin-bottom: 32px;
}

.page-title h1 {
    margin: 0;
    color: var(--chalk-white);
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1;
}

.page-title p {
    max-width: 760px;
    margin: 14px 0 0;
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: rgba(245, 245, 220, 0.72);
    margin-bottom: 22px;
}

.breadcrumb a {
    color: var(--chalk-yellow);
}

.catalog-grid {
    align-items: start;
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: auto 62px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(255, 250, 205, 0.18);
    border-radius: 14px;
    background: rgba(15, 26, 15, 0.5);
    padding: 10px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
    border-color: var(--chalk-yellow);
    transform: translateX(3px);
}

.rank-row img {
    width: 62px;
    height: 62px;
    border-radius: 12px;
    object-fit: cover;
}

.list-rank {
    width: 30px;
    height: 30px;
    border-radius: 9px;
}

.rank-row-text strong {
    display: block;
    color: var(--chalk-white);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-row-text em {
    display: block;
    color: rgba(245, 245, 220, 0.66);
    font-style: normal;
    font-size: 13px;
}

.rank-row-score {
    color: var(--chalk-yellow);
    font-weight: 900;
}

.pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 42px;
}

.pager a {
    min-width: 42px;
    color: var(--chalk-white);
    background: rgba(45, 74, 45, 0.8);
    border: 1px solid rgba(255, 250, 205, 0.24);
    border-radius: 12px;
    padding: 9px 12px;
    text-align: center;
    font-weight: 800;
}

.pager a.current,
.pager a:hover {
    color: var(--blackboard);
    background: var(--chalk-yellow);
}

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

.detail-panel {
    padding: clamp(18px, 3vw, 30px);
}

.detail-panel h1 {
    margin: 0 0 22px;
    color: var(--chalk-white);
    font-size: clamp(38px, 5vw, 60px);
    line-height: 1.05;
}

.player-box {
    position: relative;
    overflow: hidden;
    background: #000;
    border-radius: 18px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.38);
}

.player-box video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    cursor: pointer;
    background: #000;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.76;
}

.play-ring {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

.play-ring span {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    color: var(--blackboard);
    background: var(--chalk-yellow);
    border-radius: 50%;
    box-shadow: 0 0 0 12px rgba(255, 250, 205, 0.15);
    font-size: 34px;
    transform: translateX(3px);
}

.player-box.is-playing .player-cover {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.detail-meta-row {
    margin: 18px 0;
}

.one-line {
    margin: 18px 0 22px;
    font-size: 18px;
}

.content-section {
    margin-top: 28px;
}

.content-section h2,
.side-info h2 {
    color: var(--chalk-yellow);
    margin: 0 0 12px;
    font-size: 32px;
}

.content-section p {
    margin: 0;
    white-space: pre-line;
}

.side-card {
    position: sticky;
    top: 100px;
    overflow: hidden;
}

.side-card > img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.side-info {
    padding: 18px;
}

.side-info dl {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 10px 12px;
    margin: 0;
}

.side-info dt {
    color: rgba(245, 245, 220, 0.6);
}

.side-info dd {
    margin: 0;
    color: var(--chalk-white);
}

.side-info a {
    color: var(--chalk-yellow);
}

.detail-tags {
    margin-top: 16px;
}

.related-panel {
    margin-top: 42px;
}

.search-page-box {
    padding: 22px;
    margin-bottom: 34px;
}

.search-page-form input {
    flex: 1;
}

.search-summary {
    min-height: 24px;
    margin-bottom: 18px;
    color: rgba(245, 245, 220, 0.78);
}

.site-footer {
    border-top: 2px solid rgba(255, 250, 205, 0.18);
    background: rgba(15, 26, 15, 0.8);
    padding: 42px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 34px;
}

.footer-brand {
    margin-bottom: 10px;
}

.site-footer h2 {
    margin: 0 0 12px;
    color: var(--chalk-yellow);
    font-size: 28px;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links a {
    color: rgba(245, 245, 220, 0.82);
}

.footer-links a:hover {
    color: var(--chalk-yellow);
}

@media (max-width: 1060px) {
    .desktop-nav,
    .top-search {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

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

    .hero-card {
        display: none;
    }

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

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

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

    .side-card {
        position: static;
    }
}

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

    .brand {
        font-size: 26px;
    }

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

    .hero-content {
        padding-top: 72px;
        padding-bottom: 70px;
    }

    .hero-shade {
        background:
            linear-gradient(0deg, var(--blackboard) 0%, rgba(26, 46, 26, 0.84) 44%, rgba(15, 26, 15, 0.5) 100%);
    }

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

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

    .search-band,
    .large-search,
    .overview-card {
        grid-template-columns: 1fr;
    }

    .large-search,
    .mobile-search {
        flex-direction: column;
    }

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

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

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

    .movie-card p {
        display: none;
    }

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

    .rank-row {
        grid-template-columns: auto 52px minmax(0, 1fr);
    }

    .rank-row-score {
        display: none;
    }

    .page-stack,
    .page-shell {
        padding-top: 34px;
    }

    .detail-panel {
        padding: 14px;
    }
}
