* {
    box-sizing: border-box;
}

:root {
    --bg: #fff7ed;
    --bg-soft: #fffbeb;
    --surface: #ffffff;
    --surface-strong: #fff4dc;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #fed7aa;
    --primary: #d97706;
    --primary-dark: #92400e;
    --primary-soft: #f59e0b;
    --accent: #ea580c;
    --shadow: 0 20px 45px rgba(120, 53, 15, 0.14);
    --radius: 22px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 48%, #fff7ed 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(251, 191, 36, 0.45);
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.94), rgba(255, 237, 213, 0.94));
    box-shadow: 0 10px 30px rgba(146, 64, 14, 0.08);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

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

.site-logo__mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 12px 26px rgba(217, 119, 6, 0.25);
}

.site-logo__text,
.footer-logo {
    font-size: 24px;
    line-height: 1;
    color: transparent;
    background: linear-gradient(90deg, #b45309, #ea580c);
    -webkit-background-clip: text;
    background-clip: text;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: #4b5563;
    font-weight: 600;
}

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

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

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: #fff7ed;
    box-shadow: inset 0 0 0 1px var(--line);
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--primary-dark);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 0 0 16px;
    color: #4b5563;
    font-weight: 600;
}

.mobile-nav a {
    padding: 11px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.66);
}

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

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

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

.hero-slide__image,
.hero-slide__shade,
.detail-hero__bg,
.detail-hero__shade {
    position: absolute;
    inset: 0;
}

.hero-slide__image,
.detail-hero__bg,
.movie-card__poster,
.ranking-thumb,
.detail-poster {
    background: radial-gradient(circle at 30% 20%, #fed7aa, #b45309 52%, #431407 100%);
}

.hero-slide__image img,
.detail-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
    transform: scale(1.05);
}

.hero-slide__shade {
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(67, 20, 7, 0.68) 48%, rgba(15, 23, 42, 0.26) 100%), radial-gradient(circle at 78% 20%, rgba(245, 158, 11, 0.5), transparent 32%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 340px;
    align-items: center;
    min-height: 680px;
    gap: 44px;
    padding: 70px 0;
}

.hero-copy {
    max-width: 780px;
    color: #ffffff;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--primary-soft);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-copy h1 {
    max-width: 880px;
    font-size: clamp(36px, 6vw, 76px);
    line-height: 1.04;
}

.hero-copy h2 {
    margin-top: 18px;
    color: #fde68a;
    font-size: clamp(24px, 3vw, 42px);
    line-height: 1.16;
}

.hero-copy p {
    max-width: 720px;
    margin: 22px 0 0;
    color: #ffedd5;
    font-size: 18px;
    line-height: 1.8;
}

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

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

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

.button--primary {
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 18px 36px rgba(234, 88, 12, 0.32);
}

.button--ghost {
    color: #fffbeb;
    box-shadow: inset 0 0 0 1px rgba(254, 215, 170, 0.6);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.button--soft {
    color: #78350f;
    background: #fffbeb;
}

.hero-card {
    align-self: center;
    overflow: hidden;
    border: 1px solid rgba(254, 215, 170, 0.36);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(18px);
}

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

.hero-card div {
    padding: 20px;
    color: #ffffff;
}

.hero-card strong,
.hero-card span {
    display: block;
}

.hero-card strong {
    font-size: 22px;
}

.hero-card span {
    margin-top: 8px;
    color: #fed7aa;
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
}

.hero-dots button.is-active {
    width: 38px;
    background: #f59e0b;
}

.quick-search {
    position: relative;
    z-index: 6;
    margin-top: -46px;
}

.quick-search__inner,
.toolbar {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 520px);
    gap: 22px;
    align-items: center;
    padding: 24px;
    border: 1px solid rgba(251, 191, 36, 0.42);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.quick-search h2,
.section-heading h2,
.content-card h2,
.detail-sidebar h2 {
    margin: 0;
    color: #111827;
    font-size: 30px;
    line-height: 1.2;
}

.quick-search p {
    margin: 8px 0 0;
    color: var(--muted);
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input,
.toolbar input,
.toolbar select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0 16px;
    color: var(--text);
    background: #ffffff;
    outline: none;
}

.search-box input:focus,
.toolbar input:focus,
.toolbar select:focus {
    border-color: var(--primary-soft);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.search-box button {
    min-width: 98px;
    border: 0;
    border-radius: 16px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.section {
    padding: 74px 0;
}

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

.section--white {
    background: rgba(255, 255, 255, 0.72);
}

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

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

.section-heading--small {
    align-items: center;
    margin-bottom: 18px;
}

.section-heading--small h2 {
    font-size: 22px;
}

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

.movie-grid--dense {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(251, 191, 36, 0.42);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(120, 53, 15, 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: rgba(245, 158, 11, 0.76);
    box-shadow: 0 24px 54px rgba(120, 53, 15, 0.16);
}

.movie-card__poster {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
}

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

.movie-card:hover .movie-card__poster img {
    transform: scale(1.07);
}

.movie-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.92);
}

.movie-card__body {
    padding: 17px;
}

.movie-card h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a:hover,
.ranking-item h2 a:hover,
.compact-link:hover span {
    color: var(--primary);
}

.movie-card__meta,
.movie-card__desc {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.movie-card__desc {
    min-height: 44px;
}

.movie-card--compact .movie-card__body {
    padding: 14px;
}

.movie-card--compact .movie-card__desc {
    display: none;
}

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

.tag-list span {
    padding: 4px 9px;
    color: #92400e;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    background: #ffedd5;
}

.tag-list--large span {
    padding: 7px 12px;
    font-size: 13px;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 30px;
}

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

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

.category-card {
    min-height: 150px;
    padding: 24px;
    border: 1px solid rgba(251, 191, 36, 0.48);
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    box-shadow: 0 16px 34px rgba(120, 53, 15, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(120, 53, 15, 0.14);
}

.category-card span {
    display: block;
    color: #111827;
    font-size: 22px;
    font-weight: 900;
}

.category-card p {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.hot-panel,
.content-card {
    border: 1px solid rgba(251, 191, 36, 0.42);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(120, 53, 15, 0.1);
}

.hot-panel {
    align-self: start;
    padding: 24px;
    position: sticky;
    top: 92px;
}

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

.compact-link {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #ffedd5;
}

.compact-link:last-child {
    border-bottom: 0;
}

.compact-link span {
    color: #111827;
    font-weight: 800;
}

.compact-link small {
    flex: 0 0 auto;
    color: var(--muted);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.chip-row a {
    padding: 8px 12px;
    color: #92400e;
    font-size: 13px;
    font-weight: 800;
    border-radius: 999px;
    background: #ffedd5;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 84px 0;
    color: #ffffff;
    background: radial-gradient(circle at 14% 20%, rgba(245, 158, 11, 0.56), transparent 30%), linear-gradient(135deg, #431407, #92400e 54%, #111827);
}

.page-hero--compact {
    padding: 72px 0;
}

.page-hero h1 {
    max-width: 760px;
    font-size: clamp(34px, 5vw, 62px);
}

.page-hero p {
    max-width: 780px;
    color: #ffedd5;
    font-size: 18px;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    color: #fed7aa;
    font-size: 14px;
    font-weight: 700;
}

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

.toolbar {
    grid-template-columns: minmax(220px, 1fr) 180px 180px;
    margin-bottom: 28px;
    padding: 18px;
}

.toolbar--sticky {
    position: sticky;
    top: 86px;
    z-index: 10;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 58px 110px 1fr;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(251, 191, 36, 0.42);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(120, 53, 15, 0.08);
}

.ranking-number {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
    border-radius: 16px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.ranking-thumb {
    overflow: hidden;
    width: 110px;
    border-radius: 16px;
    aspect-ratio: 3 / 4;
}

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

.ranking-item h2 {
    margin: 0;
    font-size: 22px;
}

.ranking-item p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.detail-hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #ffffff;
}

.detail-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.52;
    filter: blur(2px);
    transform: scale(1.05);
}

.detail-hero__shade {
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(67, 20, 7, 0.74) 55%, rgba(17, 24, 39, 0.38));
}

.detail-hero__content {
    position: relative;
    z-index: 2;
    padding: 54px 0 70px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(254, 215, 170, 0.42);
    border-radius: 30px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

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

.detail-copy h1 {
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.04;
}

.detail-meta,
.detail-one-line {
    max-width: 820px;
    color: #ffedd5;
    line-height: 1.8;
}

.detail-meta {
    margin: 18px 0 0;
    font-weight: 800;
}

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

.detail-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
}

.detail-main__primary {
    display: grid;
    gap: 24px;
}

.detail-sidebar {
    display: grid;
    align-self: start;
    gap: 24px;
    position: sticky;
    top: 92px;
}

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: 0 26px 60px rgba(2, 6, 23, 0.26);
    aspect-ratio: 16 / 9;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background: radial-gradient(circle at center, rgba(245, 158, 11, 0.42), rgba(2, 6, 23, 0.68) 55%, rgba(2, 6, 23, 0.9));
}

.player-overlay span {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    padding-left: 5px;
    border-radius: 50%;
    font-size: 30px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 18px 38px rgba(234, 88, 12, 0.34);
}

.player-overlay strong {
    font-size: 20px;
}

.player-frame.is-playing .player-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.content-card {
    padding: 26px;
}

.content-card p {
    color: #4b5563;
    font-size: 17px;
    line-height: 1.9;
}

.info-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.info-list div {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ffedd5;
}

.info-list div:last-child {
    border-bottom: 0;
}

.info-list dt {
    color: var(--muted);
    font-weight: 800;
}

.info-list dd {
    margin: 0;
}

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

.prev-next a {
    padding: 18px;
    border: 1px solid rgba(251, 191, 36, 0.42);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(120, 53, 15, 0.08);
}

.prev-next small,
.prev-next span {
    display: block;
}

.prev-next small {
    color: var(--muted);
    font-weight: 800;
}

.prev-next span {
    margin-top: 5px;
    color: #111827;
    font-weight: 900;
}

.site-footer {
    color: #fffbeb;
    background: linear-gradient(90deg, #78350f, #9a3412);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 44px;
    padding: 52px 0 30px;
}

.footer-logo {
    display: inline-block;
    color: #ffffff;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

.site-footer p,
.site-footer a,
.footer-bottom {
    color: #fed7aa;
}

.site-footer p {
    max-width: 430px;
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 15px;
    color: #ffffff;
    font-size: 18px;
}

.site-footer a {
    display: block;
    margin: 9px 0;
}

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

.footer-bottom {
    padding: 18px 0 28px;
    border-top: 1px solid rgba(254, 215, 170, 0.24);
    font-size: 14px;
}

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

@media (max-width: 1100px) {
    .movie-grid,
    .movie-grid--dense,
    .movie-grid--related {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .hero-card,
    .hot-panel,
    .detail-sidebar {
        position: static;
    }

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

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

    .menu-button {
        display: block;
    }

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

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

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

    .hero-card {
        display: none;
    }

    .quick-search__inner,
    .toolbar,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .search-box {
        flex-direction: column;
    }

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

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

    .ranking-item {
        grid-template-columns: 44px 82px 1fr;
        gap: 12px;
        padding: 14px;
    }

    .ranking-number {
        width: 38px;
        height: 38px;
        border-radius: 13px;
        font-size: 16px;
    }

    .ranking-thumb {
        width: 82px;
    }

    .prev-next {
        grid-template-columns: 1fr;
    }
}

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

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

    .hero-copy h2,
    .quick-search h2,
    .section-heading h2 {
        font-size: 24px;
    }

    .section {
        padding: 50px 0;
    }

    .section-heading,
    .chip-row {
        align-items: flex-start;
        justify-content: flex-start;
        flex-direction: column;
    }

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

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

    .movie-card__poster {
        height: 100%;
        aspect-ratio: auto;
    }

    .movie-card__desc {
        min-height: auto;
    }

    .detail-copy h1 {
        font-size: 34px;
    }

    .ranking-item {
        grid-template-columns: 38px 1fr;
    }

    .ranking-thumb {
        display: none;
    }
}
