* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: #1f2937;
    background: #fffaf2;
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.top-strip {
    background: #b45309;
    color: #fff7ed;
    font-size: 14px;
}

.top-strip-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    text-align: center;
}

.main-nav-wrap {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 30px rgba(146, 64, 14, 0.12);
    backdrop-filter: blur(16px);
}

.main-nav {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #b45309, #f59e0b);
    box-shadow: 0 14px 28px rgba(180, 83, 9, 0.22);
    font-size: 18px;
}

.brand-text strong {
    display: block;
    color: #78350f;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-text small {
    display: block;
    margin-top: -4px;
    color: #6b7280;
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a {
    color: #374151;
    font-weight: 700;
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover {
    color: #b45309;
}

.header-search {
    display: flex;
    align-items: center;
    height: 42px;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    background: #fff7ed;
    overflow: hidden;
}

.header-search input {
    width: 210px;
    border: 0;
    outline: 0;
    padding: 0 14px 0 18px;
    background: transparent;
    color: #431407;
}

.header-search button,
.quick-search button,
.search-page-form button {
    height: 100%;
    border: 0;
    padding: 0 18px;
    color: #fff;
    background: #b45309;
    cursor: pointer;
    font-weight: 800;
    transition: background 0.2s ease;
}

.header-search button:hover,
.quick-search button:hover,
.search-page-form button:hover {
    background: #92400e;
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: #fff7ed;
    cursor: pointer;
    margin-left: auto;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: #92400e;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-nav {
    display: none;
    padding: 8px 20px 20px;
    background: #ffffff;
    border-top: 1px solid #ffedd5;
}

.mobile-nav a {
    display: block;
    padding: 13px 4px;
    border-bottom: 1px solid #ffedd5;
}

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

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

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease;
}

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

.hero-slide img {
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 26%, rgba(245, 158, 11, 0.34), transparent 34%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.76) 38%, rgba(17, 24, 39, 0.18) 100%),
        linear-gradient(0deg, rgba(17, 24, 39, 0.94) 0%, rgba(17, 24, 39, 0.06) 42%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 680px;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 720px;
    color: #fff;
    padding: 70px 0;
}

.hero-kicker,
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f59e0b;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 14px 0 12px;
    font-size: clamp(38px, 7vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.hero h2 {
    margin: 0 0 18px;
    font-size: clamp(24px, 4vw, 44px);
    color: #fde68a;
}

.hero p {
    max-width: 660px;
    margin: 0;
    color: #ffedd5;
    font-size: 18px;
}

.hero-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.tag-list span {
    border-radius: 999px;
    padding: 6px 10px;
    color: #78350f;
    background: #fef3c7;
    font-size: 12px;
    font-weight: 800;
}

.detail-tags span {
    background: rgba(254, 243, 199, 0.94);
}

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

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

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

.button.primary {
    color: #fff;
    background: linear-gradient(135deg, #b45309, #f59e0b);
    box-shadow: 0 16px 34px rgba(180, 83, 9, 0.28);
}

.button.ghost {
    color: #fff7ed;
    border: 1px solid rgba(255, 237, 213, 0.45);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.button.ghost-dark {
    color: #92400e;
    border: 1px solid #fed7aa;
    background: #fff7ed;
}

.button.text {
    color: #fde68a;
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 237, 213, 0.36);
    border-radius: 999px;
    color: #fff;
    background: rgba(17, 24, 39, 0.4);
    cursor: pointer;
    font-size: 34px;
    line-height: 1;
    transform: translateY(-50%);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 34px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

.hero-dot.is-active {
    background: #f59e0b;
}

.quick-search-section {
    margin-top: -52px;
    position: relative;
    z-index: 8;
}

.quick-search-card {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 520px);
    gap: 28px;
    align-items: center;
    padding: 26px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(146, 64, 14, 0.16);
}

.quick-search-card h2 {
    margin: 6px 0 0;
    color: #78350f;
    font-size: clamp(22px, 4vw, 32px);
}

.quick-search,
.search-page-form {
    display: flex;
    min-height: 54px;
    border: 1px solid #fed7aa;
    border-radius: 18px;
    overflow: hidden;
    background: #fff7ed;
}

.quick-search input,
.search-page-form input {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 0 18px;
    background: transparent;
    color: #431407;
}

.quick-search button,
.search-page-form button {
    min-width: 110px;
}

.content-section {
    padding: 68px 0;
}

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

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

.section-heading h2 {
    margin: 6px 0 8px;
    color: #78350f;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-heading p {
    max-width: 660px;
    margin: 0;
    color: #6b7280;
}

.section-more {
    flex: 0 0 auto;
    color: #b45309;
    font-weight: 900;
}

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

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

.compact-grid,
.ranking-strip {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.ranking-strip {
    display: grid;
    gap: 18px;
}

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(120, 53, 15, 0.12);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 52px rgba(120, 53, 15, 0.2);
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #451a03, #f59e0b);
}

.poster-frame img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.82), transparent);
}

.rank-badge {
    position: absolute;
    z-index: 3;
    top: 12px;
    left: 12px;
    display: inline-grid;
    min-width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: #b45309;
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(67, 20, 7, 0.24);
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    color: #b45309;
    font-size: 12px;
    font-weight: 900;
}

.movie-card h3 {
    min-height: 48px;
    margin: 0 0 8px;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: #b45309;
}

.movie-card p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 14px;
    overflow: hidden;
    color: #6b7280;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.category-card {
    min-height: 184px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    padding: 22px;
    border: 1px solid #fed7aa;
    border-radius: 22px;
    background:
        radial-gradient(circle at 90% 10%, rgba(245, 158, 11, 0.22), transparent 36%),
        #fff;
    box-shadow: 0 18px 40px rgba(120, 53, 15, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: #f59e0b;
}

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

.category-card strong {
    color: #374151;
    font-size: 15px;
}

.category-card small {
    color: #9ca3af;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    background: #111827;
    color: #fff;
}

.page-hero {
    padding: 84px 0;
    background:
        radial-gradient(circle at 78% 16%, rgba(245, 158, 11, 0.26), transparent 34%),
        linear-gradient(135deg, #111827, #451a03);
}

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

.category-hero,
.ranking-hero {
    background:
        radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.22), transparent 34%),
        linear-gradient(135deg, #1f2937, #78350f);
}

.page-hero h1 {
    max-width: 760px;
    margin: 8px 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 720px;
    margin: 0;
    color: #ffedd5;
    font-size: 18px;
}

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

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

.filter-panel {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 24px;
    padding: 18px;
    border: 1px solid #fed7aa;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(120, 53, 15, 0.08);
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.filter-field label {
    color: #92400e;
    font-size: 13px;
    font-weight: 900;
}

.filter-field input,
.filter-field select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    outline: 0;
    padding: 0 13px;
    color: #431407;
    background: #fff7ed;
}

.empty-state {
    display: none;
    margin: 30px 0;
    padding: 22px;
    border-radius: 18px;
    color: #92400e;
    background: #fef3c7;
    font-weight: 900;
    text-align: center;
}

.empty-state.is-visible {
    display: block;
}

.category-overview-list {
    display: grid;
    gap: 28px;
}

.category-overview-card {
    padding: 24px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(120, 53, 15, 0.1);
}

.category-overview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 20px;
}

.category-overview-head h2 {
    margin: 6px 0 0;
    color: #78350f;
    font-size: 26px;
    line-height: 1.2;
}

.search-page-form {
    max-width: 760px;
    margin-bottom: 24px;
}

.search-result-title {
    margin-bottom: 20px;
    color: #78350f;
    font-size: 24px;
    font-weight: 900;
}

.detail-hero {
    min-height: 620px;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
}

.detail-backdrop img {
    height: 100%;
    object-fit: cover;
    filter: blur(16px) saturate(1.1);
    transform: scale(1.08);
    opacity: 0.42;
}

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 76% 24%, rgba(245, 158, 11, 0.28), transparent 36%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.7));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 62px 0 74px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 36px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border: 8px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

.detail-poster img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.detail-info h1 {
    max-width: 820px;
    margin: 10px 0 16px;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.detail-one-line {
    max-width: 820px;
    margin: 0 0 18px;
    color: #ffedd5;
    font-size: 20px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.detail-meta span {
    border-radius: 999px;
    padding: 8px 12px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 800;
}

.player-section {
    padding-top: 46px;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000;
    box-shadow: 0 26px 70px rgba(17, 24, 39, 0.24);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.22), rgba(17, 24, 39, 0.68));
    cursor: pointer;
}

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

.play-icon {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #b45309, #f59e0b);
    box-shadow: 0 18px 40px rgba(245, 158, 11, 0.26);
    font-size: 32px;
}

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

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

.detail-article,
.detail-side-card {
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(120, 53, 15, 0.1);
}

.detail-article {
    padding: 30px;
}

.detail-article h2,
.detail-side-card h2 {
    margin: 0 0 14px;
    color: #78350f;
    font-size: 26px;
}

.detail-article h2:not(:first-child) {
    margin-top: 28px;
}

.detail-article p {
    margin: 0;
    color: #374151;
    font-size: 17px;
}

.detail-side-card {
    padding: 24px;
    position: sticky;
    top: 118px;
}

.detail-side-card dl {
    margin: 0;
}

.detail-side-card dt {
    color: #b45309;
    font-size: 13px;
    font-weight: 900;
}

.detail-side-card dd {
    margin: 4px 0 16px;
    color: #374151;
}

.detail-side-card a {
    color: #b45309;
    font-weight: 900;
}

.site-footer {
    background: #111827;
    color: #d1d5db;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    padding: 42px 0;
}

.footer-brand {
    display: inline-block;
    margin-bottom: 10px;
    color: #fbbf24;
    font-size: 24px;
    font-weight: 900;
}

.site-footer p {
    max-width: 620px;
    margin: 0;
    color: #9ca3af;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
}

.footer-links a {
    color: #ffedd5;
}

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

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

    .mobile-toggle {
        display: block;
    }

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

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

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

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

    .quick-search-card,
    .detail-content-grid {
        grid-template-columns: 1fr;
    }

    .detail-side-card {
        position: static;
    }
}

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

    .top-strip-inner {
        gap: 12px;
        font-size: 12px;
    }

    .main-nav {
        min-height: 70px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

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

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

    .hero-copy {
        padding: 56px 0;
    }

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

    .hero h2 {
        font-size: 28px;
    }

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

    .hero-control {
        display: none;
    }

    .quick-search-section {
        margin-top: -28px;
    }

    .quick-search-card {
        padding: 20px;
    }

    .quick-search,
    .search-page-form {
        flex-direction: column;
    }

    .quick-search input,
    .search-page-form input {
        min-height: 52px;
    }

    .quick-search button,
    .search-page-form button {
        min-height: 48px;
    }

    .content-section {
        padding: 44px 0;
    }

    .section-heading,
    .category-overview-head,
    .footer-grid {
        display: block;
    }

    .section-more,
    .category-overview-head .button {
        margin-top: 16px;
    }

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

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

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

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

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

    .page-hero {
        padding: 56px 0;
    }

    .detail-hero-inner {
        padding: 42px 0 52px;
    }

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

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

    .detail-info h1 {
        font-size: 38px;
    }

    .detail-one-line {
        font-size: 17px;
    }

    .detail-article,
    .detail-side-card {
        padding: 22px;
    }
}

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

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

    .hero h2 {
        font-size: 24px;
    }

    .category-card {
        min-height: 150px;
    }
}
