:root {
    --color-primary: #f59e0b;
    --color-primary-dark: #ea580c;
    --color-secondary: #fbbf24;
    --color-bg: #fff7ed;
    --color-text: #1f2937;
    --color-muted: #6b7280;
    --color-border: #f1f5f9;
    --shadow-soft: 0 14px 35px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 10px 24px rgba(15, 23, 42, 0.10);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--color-text);
    background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 45%, #fef3c7 100%);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.96), rgba(234, 88, 12, 0.96));
    box-shadow: 0 10px 28px rgba(154, 52, 18, 0.25);
    backdrop-filter: blur(16px);
}

.nav-shell {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-weight: 800;
    flex-shrink: 0;
}

.logo-mark {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.logo-text {
    font-size: 22px;
    letter-spacing: 0.02em;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 650;
    margin-left: auto;
}

.desktop-nav a,
.mobile-nav a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: #fffbeb;
    transform: translateY(-1px);
}

.nav-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.nav-search input {
    width: 180px;
    border: 0;
    outline: 0;
    padding: 10px 14px;
    background: transparent;
}

.nav-search button {
    border: 0;
    background: #111827;
    color: #ffffff;
    padding: 10px 16px;
    cursor: pointer;
}

.mobile-menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    color: #ffffff;
    font-size: 28px;
    background: transparent;
}

.mobile-nav {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    padding: 0 0 16px;
    color: #ffffff;
}

.mobile-nav a {
    display: block;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.mobile-nav form {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.mobile-nav input {
    flex: 1;
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
}

.mobile-nav button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: #ffffff;
    background: #111827;
}

.hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #111827;
}

.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 900ms ease;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: radial-gradient(circle at 30% 20%, #f97316, #111827 68%);
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
    max-width: 720px;
}

.hero-kicker,
.page-hero p,
.section-heading span,
.detail-kicker {
    margin: 0 0 12px;
    color: #fbbf24;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 0 0 10px;
    font-size: clamp(46px, 8vw, 82px);
    line-height: 1;
    font-weight: 900;
    text-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.hero-content h2 {
    margin: 0 0 18px;
    font-size: clamp(24px, 4vw, 36px);
}

.hero-content p:last-of-type {
    max-width: 680px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

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

.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(--color-primary), var(--color-primary-dark));
    box-shadow: 0 12px 26px rgba(234, 88, 12, 0.35);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.06);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 28px;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

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

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

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

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

.warm-band {
    background: linear-gradient(90deg, #fef3c7, #ffedd5);
}

.white-band {
    background: #ffffff;
}

.rank-band {
    background: linear-gradient(135deg, #ffedd5, #fef3c7, #fef9c3);
}

.section-heading {
    margin-bottom: 34px;
}

.section-heading.centered {
    text-align: center;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
}

.section-heading p {
    max-width: 680px;
    margin: 12px auto 0;
    color: var(--color-muted);
}

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

.category-grid,
.movie-grid,
.review-grid,
.category-wide-grid {
    display: grid;
    gap: 24px;
}

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

.category-tile {
    display: flex;
    min-height: 210px;
    flex-direction: column;
    padding: 24px;
    border: 2px solid rgba(251, 191, 36, 0.35);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.75);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-soft);
    transform: translateY(-5px) scale(1.01);
}

.category-icon {
    font-size: 42px;
    margin-bottom: 14px;
}

.category-tile strong {
    font-size: 20px;
}

.category-tile em {
    margin-top: 4px;
    color: var(--color-primary-dark);
    font-style: normal;
    font-weight: 800;
}

.category-tile p {
    margin: 12px 0 0;
    color: var(--color-muted);
}

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

.dense-grid {
    gap: 20px;
}

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: radial-gradient(circle at 35% 20%, #fed7aa, #fb923c 45%, #111827 100%);
}

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

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

.movie-badge,
.movie-score {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.movie-badge {
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    background: rgba(17, 24, 39, 0.68);
}

.movie-score {
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
}

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

.movie-card-title {
    display: block;
    min-height: 30px;
    color: #111827;
    font-size: 18px;
    font-weight: 850;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.movie-card:hover .movie-card-title {
    color: var(--color-primary-dark);
}

.movie-card-desc {
    display: -webkit-box;
    min-height: 48px;
    margin: 8px 0 12px;
    overflow: hidden;
    color: var(--color-muted);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #9ca3af;
    font-size: 13px;
}

.movie-meta-row span:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
}

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

.movie-tags span,
.detail-tags span {
    border-radius: 999px;
    padding: 5px 10px;
    color: #b45309;
    background: #fef3c7;
    font-size: 12px;
    font-weight: 700;
}

.featured-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 24px;
}

.movie-card-large .movie-poster {
    aspect-ratio: 16 / 10;
}

.featured-side {
    display: grid;
    gap: 16px;
}

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

.movie-card-horizontal .movie-poster {
    aspect-ratio: auto;
    min-height: 150px;
}

.ranking-list {
    display: grid;
    gap: 14px;
    max-width: 920px;
    margin: 0 auto;
    padding: 22px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

.ranking-row {
    display: grid;
    grid-template-columns: 54px 76px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 16px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-row:hover {
    background: #fff7ed;
    transform: translateX(4px);
}

.ranking-number {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 20px;
    font-weight: 900;
}

.ranking-1 {
    color: #ffffff;
    background: #facc15;
}

.ranking-2 {
    color: #ffffff;
    background: #9ca3af;
}

.ranking-3 {
    color: #ffffff;
    background: #fb923c;
}

.ranking-row img {
    width: 76px;
    height: 76px;
    border-radius: 14px;
    object-fit: cover;
    background: radial-gradient(circle, #fed7aa, #111827);
}

.ranking-main strong,
.ranking-main em,
.ranking-main small {
    display: block;
}

.ranking-main strong {
    font-size: 17px;
}

.ranking-main em,
.ranking-main small {
    color: var(--color-muted);
    font-style: normal;
    font-size: 13px;
}

.ranking-meta {
    color: var(--color-muted);
    text-align: right;
    font-size: 13px;
    font-weight: 700;
}

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

.review-card {
    padding: 24px;
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.review-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.review-user > span {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    font-weight: 900;
}

.review-user strong,
.review-user em {
    display: block;
}

.review-user em {
    color: #eab308;
    font-style: normal;
    font-size: 13px;
}

.review-card p {
    color: #4b5563;
}

.review-card a {
    display: block;
    margin-top: 16px;
    color: var(--color-primary-dark);
    font-weight: 800;
}

.page-hero {
    padding: 92px 0;
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.78), rgba(124, 45, 18, 0.42)),
        radial-gradient(circle at 20% 20%, #f59e0b, #ea580c 40%, #111827 100%);
}

.small-hero {
    padding: 74px 0;
}

.page-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.1;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 24px;
    color: var(--color-muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--color-primary-dark);
    font-weight: 800;
}

.filter-panel,
.search-panel {
    margin-bottom: 28px;
    padding: 20px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.filter-panel {
    display: flex;
    align-items: center;
    gap: 16px;
}

.filter-panel input,
.search-fields input,
.search-fields select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    outline: none;
    padding: 0 16px;
    background: #fffaf0;
}

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

.filter-panel span {
    min-width: fit-content;
    color: var(--color-primary-dark);
    font-weight: 800;
}

.search-fields {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 12px;
}

.search-summary {
    margin-top: 16px;
    color: var(--color-muted);
    font-weight: 700;
}

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

.category-card-wide {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #111827;
    box-shadow: var(--shadow-card);
}

.category-card-wide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    background: radial-gradient(circle, #fed7aa, #111827);
    transition: transform 0.35s ease;
}

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

.category-card-wide div {
    position: relative;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.08));
}

.category-card-wide span {
    font-size: 42px;
}

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

.category-card-wide p {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.86);
}

.category-card-wide strong {
    color: #fbbf24;
}

.detail-shell {
    padding: 32px 0 70px;
    background: linear-gradient(135deg, #f9fafb, #fff7ed);
}

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

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #000000;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

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

.player-cover-button {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.36));
    cursor: pointer;
    transition: opacity 0.2s ease;
}

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

.player-cover-button span {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    box-shadow: 0 18px 40px rgba(234, 88, 12, 0.4);
    font-size: 30px;
    padding-left: 5px;
}

.detail-content,
.info-card {
    margin-top: 24px;
    padding: 26px;
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.detail-title-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

.detail-content h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
}

.detail-score {
    flex-shrink: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
}

.detail-one-line {
    margin: 18px 0;
    color: #4b5563;
    font-size: 18px;
    font-weight: 650;
}

.detail-content h2,
.info-card h2 {
    margin: 26px 0 12px;
    font-size: 24px;
}

.detail-content p {
    color: #374151;
}

.detail-side {
    position: sticky;
    top: 96px;
}

.poster-info-card {
    margin-top: 0;
    padding: 0;
    overflow: hidden;
    background: radial-gradient(circle, #fed7aa, #111827);
}

.poster-info-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.info-card dl {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 12px;
    margin: 0;
}

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

.info-card dd {
    margin: 0;
    font-weight: 800;
}

.info-card a {
    color: var(--color-primary-dark);
}

.watch-tip {
    background: linear-gradient(135deg, #fef3c7, #ffedd5);
}

.related-block {
    padding-bottom: 0;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937, #111827);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding: 54px 0 34px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 22px;
    margin-bottom: 14px;
}

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

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li {
    margin-bottom: 8px;
}

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

.footer-note {
    color: #9ca3af;
    font-size: 13px;
}

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

.footer-bottom p {
    margin: 0;
}

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

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

    .mobile-menu-toggle {
        display: block;
    }

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

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

    .detail-side {
        position: static;
    }

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

@media (max-width: 760px) {
    .hero-section {
        height: 560px;
    }

    .hero-content {
        padding-right: 56px;
    }

    .hero-arrow {
        width: 40px;
        height: 40px;
        font-size: 32px;
    }

    .hero-prev {
        left: 10px;
    }

    .hero-next {
        right: 10px;
    }

    .section-heading.row-heading,
    .detail-title-row,
    .filter-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .category-grid,
    .movie-grid,
    .review-grid,
    .category-wide-grid {
        grid-template-columns: 1fr;
    }

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

    .ranking-row {
        grid-template-columns: 42px 58px 1fr;
    }

    .ranking-meta {
        grid-column: 3;
        text-align: left;
    }

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