* {
    box-sizing: border-box;
}

:root {
    --amber: #d97706;
    --amber-dark: #b45309;
    --orange: #ea580c;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #f3d6a0;
    --soft: #fff7ed;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(146, 64, 14, 0.14);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 42%, #ffffff 100%);
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.96));
    border-bottom: 1px solid rgba(217, 119, 6, 0.22);
    box-shadow: 0 8px 24px rgba(146, 64, 14, 0.08);
    backdrop-filter: blur(14px);
}

.nav-wrap {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 14px 30px rgba(234, 88, 12, 0.24);
}

.brand strong {
    display: block;
    font-size: 21px;
    line-height: 1.1;
}

.brand small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-weight: 600;
}

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

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: var(--amber-dark);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: var(--amber-dark);
    background: #fff3df;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

.mobile-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 600;
}

.hero {
    position: relative;
    height: 620px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease, visibility 0.9s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.48) 52%, rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 76px;
}

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

.eyebrow {
    margin: 0 0 10px;
    color: #fbbf24;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 0;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero-copy p {
    max-width: 680px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.9;
}

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

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

.hero-tags span {
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

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

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

.primary-btn,
.search-box button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 18px 34px rgba(217, 119, 6, 0.28);
}

.ghost-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-link:hover,
.search-box button:hover {
    transform: translateY(-2px);
}

.hero-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.45);
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
}

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

.section {
    padding: 64px 0;
}

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

.section-heading h2,
.page-hero h1,
.story-card h2,
.ranking-card h2 {
    margin: 0;
    color: #1f2937;
}

.section-heading h2 {
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.04em;
}

.section-heading span,
.page-hero p,
.category-overview-head p,
.story-card p,
.search-hero p {
    color: var(--muted);
    line-height: 1.8;
}

.section-link {
    color: var(--amber-dark);
    background: #fff3df;
}

.feature-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 24px;
}

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

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

.movie-card,
.category-overview-card,
.story-card,
.search-panel {
    overflow: hidden;
    border-radius: 18px;
    background: var(--card);
    box-shadow: var(--shadow);
}

.movie-card {
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 52px rgba(146, 64, 14, 0.22);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #1f2937;
}

.poster-link img,
.rank-poster img,
.mini-poster img,
.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.play-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(217, 119, 6, 0.92);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .play-dot {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.type-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.62);
    font-size: 12px;
    font-weight: 700;
}

.card-body {
    padding: 18px;
}

.card-body h3 {
    min-height: 48px;
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.35;
}

.card-body h3 a:hover,
.ranking-card h2 a:hover {
    color: var(--amber-dark);
}

.card-body p {
    min-height: 48px;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
}

.tag-row {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.tag-row span {
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--amber-dark);
    background: #fff7ed;
    font-size: 12px;
}

.mini-list {
    display: grid;
    gap: 14px;
}

.mini-card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(146, 64, 14, 0.1);
    transition: transform 0.2s ease, background 0.2s ease;
}

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

.mini-poster {
    display: block;
    height: 84px;
    overflow: hidden;
    border-radius: 12px;
    background: #1f2937;
}

.mini-info {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.mini-info strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-info em,
.mini-info small {
    color: var(--muted);
    font-style: normal;
}

.mini-info small {
    line-height: 1.5;
}

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

.category-card {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: 20px;
    color: #ffffff;
    background: #111827;
    box-shadow: var(--shadow);
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.18));
}

.category-card span {
    position: absolute;
    z-index: 2;
    inset: auto 18px 18px;
}

.category-card strong {
    display: block;
    font-size: 24px;
}

.category-card em {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-style: normal;
    line-height: 1.6;
}

.ranking-strip {
    background: linear-gradient(135deg, #1f2937, #111827);
}

.ranking-strip .section-heading h2,
.ranking-strip .section-heading span {
    color: #ffffff;
}

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

.page-hero,
.detail-top {
    background: linear-gradient(90deg, #fff7ed, #ffedd5);
    border-bottom: 1px solid rgba(217, 119, 6, 0.18);
}

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

.page-hero h1 {
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -0.05em;
}

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

.category-overview-card {
    padding: 24px;
}

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

.category-overview-head h2 {
    margin: 0;
    font-size: 28px;
}

.compact-list .mini-card {
    box-shadow: none;
    border: 1px solid #f3f4f6;
}

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

.ranking-card {
    display: grid;
    grid-template-columns: 72px 132px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.rank-num {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    font-size: 18px;
    font-weight: 900;
}

.rank-poster {
    display: block;
    height: 86px;
    overflow: hidden;
    border-radius: 14px;
    background: #111827;
}

.ranking-card h2 {
    font-size: 20px;
}

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

.search-box {
    display: flex;
    width: min(720px, 100%);
    gap: 12px;
    margin-top: 28px;
}

.search-box input {
    flex: 1;
    min-height: 50px;
    border: 1px solid rgba(217, 119, 6, 0.28);
    border-radius: 14px;
    padding: 0 16px;
    outline: none;
    background: #ffffff;
}

.search-box input:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
}

.search-box button {
    border: 0;
    cursor: pointer;
}

.search-panel {
    padding: 24px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.filter-row button {
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    color: var(--amber-dark);
    background: #fff3df;
    font-weight: 700;
    cursor: pointer;
}

.detail-top {
    padding: 18px 0;
}

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

.breadcrumb a:hover {
    color: var(--amber-dark);
}

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

.player-card,
.detail-side {
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #050505;
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #050505;
}

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

.player-cover[hidden] {
    display: none;
}

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

.player-cover span {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(217, 119, 6, 0.94);
    font-size: 28px;
    transform: translate(-50%, -50%);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
}

.player-title {
    padding: 24px;
}

.player-title h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.15;
}

.player-title p {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.85;
}

.detail-side {
    padding: 18px;
}

.detail-poster {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 18px;
    background: #111827;
}

.meta-box {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.meta-box span {
    padding: 10px 12px;
    border-radius: 12px;
    color: #92400e;
    background: #fff7ed;
    font-weight: 700;
}

.detail-tags {
    border-top: 0;
}

.article-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
}

.story-card {
    padding: 28px;
}

.story-card h2 {
    font-size: 30px;
}

.story-card p {
    margin: 16px 0 0;
    font-size: 17px;
}

.accent-card {
    background: linear-gradient(135deg, #fff7ed, #ffffff);
}

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

.site-footer {
    margin-top: 30px;
    padding: 54px 0 0;
    color: #d1d5db;
    background: linear-gradient(180deg, #1f2937, #111827);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 36px;
}

.footer-brand {
    color: #ffffff;
    font-size: 24px;
}

.site-footer p {
    max-width: 520px;
    color: #9ca3af;
    line-height: 1.8;
}

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

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

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

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

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

    .feature-layout,
    .detail-grid,
    .article-section {
        grid-template-columns: 1fr;
    }
}

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

    .nav-toggle {
        display: grid;
        place-items: center;
    }

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

    .hero {
        height: 560px;
    }

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

    .hero-arrow {
        display: none;
    }

    .section-heading,
    .category-overview-head,
    .search-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .movie-grid,
    .category-movie-grid,
    .category-grid,
    .category-overview-grid,
    .rank-grid,
    .related-grid,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ranking-card {
        grid-template-columns: 54px 100px minmax(0, 1fr);
    }
}

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

    .brand small {
        display: none;
    }

    .hero {
        height: 520px;
    }

    .hero-copy p {
        font-size: 15px;
        line-height: 1.7;
    }

    .hero-actions {
        gap: 10px;
    }

    .primary-btn,
    .ghost-btn,
    .section-link,
    .search-box button {
        width: 100%;
    }

    .movie-grid,
    .category-movie-grid,
    .category-grid,
    .category-overview-grid,
    .rank-grid,
    .related-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .mini-card {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .ranking-card {
        grid-template-columns: 1fr;
    }

    .rank-poster {
        height: 180px;
    }

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

    .section {
        padding: 44px 0;
    }
}
