* {
    box-sizing: border-box;
}

:root {
    color-scheme: light;
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-500: #78716c;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
    --shadow-soft: 0 18px 40px rgba(68, 64, 60, 0.14);
    --shadow-card: 0 12px 32px rgba(68, 64, 60, 0.10);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--stone-800);
    background:
        radial-gradient(circle at top left, rgba(252, 211, 77, 0.32), transparent 32rem),
        linear-gradient(180deg, #fff7ed 0%, #fdfcf8 42%, #fafaf9 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 251, 235, 0.92);
    border-bottom: 1px solid rgba(245, 158, 11, 0.22);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--amber-900, #78350f);
}

.brand-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
    box-shadow: 0 10px 22px rgba(217, 119, 6, 0.28);
    font-size: 13px;
}

.brand-text {
    font-size: 21px;
}

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

.nav-link,
.mobile-link {
    border: 0;
    background: transparent;
    color: #7c4a03;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: #92400e;
    background: rgba(252, 211, 77, 0.28);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 170px;
    padding: 10px;
    display: none;
    background: #fff;
    border: 1px solid var(--amber-100);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

.dropdown-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--stone-700);
}

.dropdown-panel a:hover {
    background: var(--amber-50);
    color: var(--amber-700);
}

.nav-dropdown:hover .dropdown-panel {
    display: block;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: rgba(252, 211, 77, 0.24);
    border-radius: 14px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

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

.mobile-nav {
    display: none;
    padding: 0 18px 14px;
    background: rgba(255, 251, 235, 0.98);
    border-top: 1px solid var(--amber-100);
}

.mobile-nav.is-open {
    display: grid;
    gap: 6px;
}

.mobile-link {
    display: block;
}

.hero-carousel {
    position: relative;
    max-width: 1240px;
    margin: 28px auto 0;
    padding: 26px;
    color: #fff7ed;
    background:
        radial-gradient(circle at 12% 20%, rgba(252, 211, 77, 0.36), transparent 30rem),
        linear-gradient(135deg, #1c1917 0%, #3f2d17 54%, #92400e 100%);
    border-radius: 36px;
    box-shadow: 0 28px 70px rgba(41, 37, 36, 0.28);
    overflow: hidden;
}

.hero-heading {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 10px 8px 20px;
}

.hero-heading h1 {
    margin: 8px 0 12px;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-heading p:last-child {
    max-width: 640px;
    margin: 0;
    color: rgba(255, 251, 235, 0.82);
    font-size: 18px;
    line-height: 1.8;
}

.hero-stage {
    position: relative;
    z-index: 2;
    min-height: 420px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) 360px;
    gap: 32px;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.hero-backdrop {
    position: absolute;
    inset: -120px -80px -80px 35%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    filter: blur(26px) saturate(1.2);
    transform: scale(1.08);
}

.hero-copy {
    max-width: 650px;
    padding: 18px 10px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--amber-600);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-carousel .eyebrow,
.ranking-strip .eyebrow,
.ranking-hero .eyebrow {
    color: var(--amber-300);
}

.hero-copy h2 {
    margin: 0 0 16px;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.08;
}

.hero-summary {
    max-width: 620px;
    margin: 0 0 18px;
    color: rgba(255, 251, 235, 0.84);
    font-size: 17px;
    line-height: 1.8;
}

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

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

.hero-tags span {
    color: #fffbeb;
    background: rgba(255, 251, 235, 0.14);
    border: 1px solid rgba(255, 251, 235, 0.22);
}

.hero-actions,
.detail-info .btn-primary {
    margin-top: 24px;
}

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

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
    box-shadow: 0 16px 32px rgba(217, 119, 6, 0.26);
}

.btn-ghost {
    color: var(--amber-100);
    border: 1px solid rgba(255, 251, 235, 0.32);
    margin-left: 10px;
}

.btn-ghost.light {
    color: var(--amber-100);
}

.btn-primary:hover,
.btn-ghost:hover,
.section-more:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4.08;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 34px 70px rgba(0, 0, 0, 0.34);
    border: 1px solid rgba(255, 251, 235, 0.18);
}

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

.hero-control {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--amber-100);
    background: rgba(255, 251, 235, 0.13);
    font-size: 28px;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 251, 235, 0.36);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: var(--amber-300);
}

.search-panel,
.content-section,
.ranking-strip,
.page-shell,
.detail-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 44px 22px 0;
}

.search-card,
.filter-panel,
.page-hero,
.movie-article,
.player-section,
.ranking-table {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.search-card {
    padding: 26px;
}

.search-card h2,
.section-head h2,
.page-hero h1,
.movie-article h2,
.compact-head h2 {
    margin: 0;
    color: var(--stone-900);
    letter-spacing: -0.03em;
}

.search-card h2,
.section-head h2,
.page-hero h1 {
    font-size: clamp(28px, 4vw, 42px);
}

.filter-row,
.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px auto;
    gap: 12px;
    align-items: center;
    margin-top: 18px;
}

.filter-panel {
    grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, 0.3fr));
    padding: 20px;
    margin-bottom: 24px;
}

.filter-row input,
.filter-row select,
.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 46px;
    border: 1px solid var(--amber-200);
    background: #fff;
    border-radius: 999px;
    padding: 0 16px;
    outline: none;
    color: var(--stone-800);
}

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

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.section-more {
    color: var(--amber-700);
    background: var(--amber-50);
    border: 1px solid var(--amber-200);
}

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

.compact-grid {
    margin-top: 20px;
}

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

.movie-card {
    min-width: 0;
    background: #fff;
    border: 1px solid rgba(231, 229, 228, 0.86);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(68, 64, 60, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: var(--amber-200);
    box-shadow: var(--shadow-soft);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4.15;
    background: linear-gradient(135deg, var(--stone-100), var(--amber-50));
    overflow: hidden;
}

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

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

.poster-badge {
    position: absolute;
    left: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
    padding: 5px 9px;
    border-radius: 999px;
    color: #fff;
    background: rgba(41, 37, 36, 0.72);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-body {
    padding: 14px;
}

.card-meta {
    margin-bottom: 8px;
    color: var(--amber-700);
    font-size: 12px;
    font-weight: 800;
}

.card-title {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.35;
}

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

.card-body p {
    margin: 0 0 12px;
    min-height: 40px;
    color: var(--stone-500);
    font-size: 13px;
    line-height: 1.55;
}

.tag-row span {
    color: var(--amber-700);
    background: var(--amber-50);
    border: 1px solid var(--amber-100);
}

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

.category-card,
.category-overview-card {
    display: block;
    min-height: 180px;
    padding: 22px;
    color: var(--stone-800);
    background: linear-gradient(145deg, #fff, #fff7ed);
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 32px rgba(68, 64, 60, 0.09);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.category-overview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.category-card strong,
.category-overview-card h2 {
    display: block;
    margin: 0 0 10px;
    color: var(--stone-900);
    font-size: 23px;
}

.category-card p,
.category-overview-card p {
    color: var(--stone-500);
    line-height: 1.7;
}

.category-card div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.category-card div span {
    max-width: 100%;
    padding: 5px 9px;
    color: var(--amber-700);
    background: rgba(252, 211, 77, 0.2);
    border-radius: 999px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-strip {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 26px;
    margin-top: 42px;
    padding-top: 0;
}

.ranking-copy,
.ranking-list {
    border-radius: 32px;
    padding: 28px;
}

.ranking-copy {
    color: #fff7ed;
    background: linear-gradient(135deg, var(--stone-900), #5a3108);
    box-shadow: var(--shadow-soft);
}

.ranking-copy h2 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 44px);
}

.ranking-copy p {
    color: rgba(255, 251, 235, 0.78);
    line-height: 1.8;
}

.ranking-list {
    display: grid;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--amber-100);
    box-shadow: var(--shadow-card);
}

.rank-row {
    display: grid;
    grid-template-columns: 42px 54px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 18px;
    transition: background 0.2s ease;
}

.rank-row:hover,
.ranking-table-row:hover {
    background: var(--amber-50);
}

.rank-number,
.ranking-index {
    color: var(--amber-700);
    font-weight: 900;
}

.rank-row img,
.ranking-table-row img {
    width: 54px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
}

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

.rank-row em,
.ranking-table-row em,
.mini-card em {
    color: var(--stone-500);
    font-style: normal;
    font-size: 13px;
}

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

.page-hero {
    padding: 34px;
    margin-bottom: 24px;
    background:
        radial-gradient(circle at top right, rgba(252, 211, 77, 0.22), transparent 22rem),
        rgba(255, 255, 255, 0.82);
}

.compact-hero {
    margin-bottom: 22px;
}

.page-hero p:last-child {
    max-width: 760px;
    color: var(--stone-500);
    line-height: 1.8;
}

.category-overview-card {
    display: grid;
    gap: 16px;
}

.category-overview-card span {
    color: var(--amber-700);
    font-weight: 800;
}

.category-posters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.category-posters img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    object-fit: cover;
}

.ranking-table {
    padding: 22px;
    margin-bottom: 20px;
}

.ranking-table-row {
    display: grid;
    grid-template-columns: 44px 54px 1fr 160px 160px;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--stone-500);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--amber-700);
    font-weight: 700;
}

.detail-hero {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 30px;
    color: #fff7ed;
    background:
        radial-gradient(circle at 0% 0%, rgba(252, 211, 77, 0.26), transparent 28rem),
        linear-gradient(135deg, var(--stone-900), #5a3108 64%, #92400e);
    border-radius: 34px;
    box-shadow: var(--shadow-soft);
}

.detail-poster {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4.1;
    object-fit: cover;
}

.detail-info h1 {
    margin: 0 0 16px;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.08;
}

.detail-line {
    max-width: 780px;
    color: rgba(255, 251, 235, 0.84);
    font-size: 18px;
    line-height: 1.8;
}

.detail-meta span {
    color: #fffbeb;
    background: rgba(255, 251, 235, 0.13);
    border: 1px solid rgba(255, 251, 235, 0.2);
}

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

.player-section {
    margin-top: 28px;
    padding: 24px;
}

.compact-head {
    margin-bottom: 16px;
}

.player-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--stone-900);
    border-radius: 28px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 52px rgba(41, 37, 36, 0.22);
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #fff;
    border: 0;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(28, 25, 23, 0.1), rgba(28, 25, 23, 0.76));
    font-weight: 900;
    font-size: 18px;
}

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

.play-circle {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
    border-radius: 50%;
    box-shadow: 0 18px 36px rgba(217, 119, 6, 0.34);
}

.movie-article {
    margin-top: 28px;
    padding: 28px;
}

.movie-article h2 {
    font-size: 28px;
    margin-top: 8px;
    margin-bottom: 12px;
}

.movie-article p {
    color: var(--stone-700);
    line-height: 2;
    font-size: 17px;
}

.related-section {
    padding-left: 0;
    padding-right: 0;
}

.mini-card {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 10px;
    align-items: center;
}

.mini-card img {
    width: 58px;
    height: 76px;
    object-fit: cover;
    border-radius: 12px;
}

.mini-card span {
    display: block;
    font-weight: 800;
}

.is-hidden {
    display: none !important;
}

.site-footer {
    margin-top: 64px;
    color: #d6d3d1;
    background: linear-gradient(135deg, var(--stone-900), #292524 58%, #3f2d17);
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 44px 22px;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 32px;
}

.footer-brand p {
    max-width: 520px;
    color: #a8a29e;
    line-height: 1.8;
}

.footer-logo {
    color: #fffbeb;
    font-size: 22px;
}

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

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 9px;
}

.footer-column a {
    color: #d6d3d1;
}

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

.footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    padding: 18px 22px 28px;
    color: #a8a29e;
    border-top: 1px solid rgba(255, 251, 235, 0.1);
    font-size: 14px;
}

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

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

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

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

    .header-inner {
        height: 64px;
    }

    .hero-carousel {
        margin: 16px 14px 0;
        padding: 20px;
        border-radius: 28px;
    }

    .hero-stage {
        min-height: 700px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-poster {
        max-width: 320px;
        margin: 0 auto;
    }

    .filter-row,
    .filter-panel,
    .ranking-strip,
    .detail-hero,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .ranking-table-row {
        grid-template-columns: 36px 50px 1fr;
    }

    .ranking-table-row span:nth-of-type(2),
    .ranking-table-row em {
        display: none;
    }

    .detail-hero {
        padding: 22px;
    }

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

@media (max-width: 680px) {
    .brand-text {
        font-size: 18px;
    }

    .hero-heading h1 {
        font-size: 34px;
    }

    .hero-stage {
        min-height: 650px;
    }

    .search-panel,
    .content-section,
    .ranking-strip,
    .page-shell,
    .detail-shell {
        padding-left: 14px;
        padding-right: 14px;
    }

    .movie-grid,
    .all-grid,
    .rank-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

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

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

    .card-body {
        padding: 12px;
    }

    .card-title {
        font-size: 15px;
    }

    .card-body p {
        min-height: auto;
    }

    .player-section,
    .movie-article,
    .search-card,
    .page-hero,
    .ranking-table {
        padding: 18px;
        border-radius: 22px;
    }

    .player-box {
        border-radius: 18px;
    }
}
