* {
    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: linear-gradient(180deg, #fff7ed 0%, #f9fafb 28%, #ffffff 100%);
    line-height: 1.6;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: #ffffff;
    background: linear-gradient(90deg, #f97316 0%, #f59e0b 55%, #eab308 100%);
    box-shadow: 0 18px 40px rgba(120, 53, 15, 0.2);
}

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

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

.brand-name {
    font-size: clamp(20px, 3vw, 28px);
    letter-spacing: 0.02em;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #f97316;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(120, 53, 15, 0.25);
}

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

.nav-link,
.mobile-nav-link {
    font-weight: 700;
    opacity: 0.92;
    transition: color 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    opacity: 1;
    color: #fff7ed;
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.menu-button span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    padding: 0 16px 14px;
}

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

.mobile-nav-link {
    display: block;
    padding: 11px 14px;
    border-radius: 12px;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    background: rgba(255, 255, 255, 0.16);
}

.hero {
    position: relative;
    height: clamp(520px, 72vh, 740px);
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 18% 32%, rgba(249, 115, 22, 0.34), transparent 30%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.58) 48%, rgba(0, 0, 0, 0.8) 100%);
}

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

.hero-copy {
    width: min(760px, 100%);
    color: #ffffff;
    text-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

.hero-kicker,
.page-kicker {
    margin-bottom: 14px;
    color: #fed7aa;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 1.06;
    font-weight: 900;
}

.hero p {
    width: min(720px, 100%);
    margin: 24px 0 0;
    color: #fff7ed;
    font-size: clamp(18px, 2.2vw, 26px);
    font-weight: 600;
}

.hero-tags,
.detail-tags,
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.hero-tags span,
.detail-tags span,
.card-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

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

.primary-button,
.ghost-button,
.category-overview-card a,
.section-heading a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(90deg, #f97316 0%, #f59e0b 100%);
    box-shadow: 0 18px 35px rgba(249, 115, 22, 0.32);
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover,
.category-overview-card a:hover,
.section-heading a:hover {
    transform: translateY(-2px);
}

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

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

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

main {
    display: block;
}

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

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

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

.section-heading.compact {
    align-items: center;
}

.section-heading h2,
.category-overview-card h2,
.text-card h2 {
    margin: 0;
    color: #1f2937;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.18;
    font-weight: 900;
}

.section-heading p,
.category-overview-card p {
    margin: 7px 0 0;
    color: #6b7280;
}

.section-heading a,
.category-overview-card a {
    color: #f97316;
    background: #ffedd5;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #7c2d12);
}

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

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

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), transparent);
}

.poster-play {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.9);
    transform: translate(-50%, -50%) scale(0.88);
    opacity: 0;
    transition: transform 0.24s ease, opacity 0.24s ease;
}

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

.poster-meta {
    position: absolute;
    z-index: 2;
    left: 12px;
    bottom: 12px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

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

.movie-card h2 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 900;
}

.movie-card h2 a:hover {
    color: #f97316;
}

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

.card-tags span {
    color: #c2410c;
    background: #ffedd5;
}

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

.ranking-panel,
.filter-panel,
.text-card,
.page-hero,
.detail-hero,
.category-overview-card {
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.ranking-panel {
    position: sticky;
    top: 86px;
    padding: 24px;
}

.ranking-panel.wide {
    position: static;
}

.rank-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-list a {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 58px;
    padding: 10px 12px;
    border-radius: 16px;
    background: #fff7ed;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-list.large a {
    grid-template-columns: 58px minmax(0, 1fr);
}

.rank-list a:hover {
    background: #ffedd5;
    transform: translateX(4px);
}

.rank-list b {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #f59e0b);
}

.rank-list span,
.rank-list em {
    grid-column: 2;
}

.rank-list span {
    overflow: hidden;
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-list em {
    color: #6b7280;
    font-size: 13px;
    font-style: normal;
}

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

.category-card,
.category-overview-card {
    display: block;
    min-height: 144px;
    padding: 22px;
    border-radius: 24px;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.36), transparent 35%),
        linear-gradient(135deg, #f97316, #f59e0b);
    box-shadow: 0 18px 45px rgba(249, 115, 22, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 60px rgba(249, 115, 22, 0.3);
}

.category-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 900;
}

.category-card span {
    color: #fff7ed;
    font-size: 14px;
}

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

.category-overview-card {
    color: #1f2937;
    background: #ffffff;
}

.category-overview-card a {
    margin-top: 18px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(34px, 7vw, 72px);
    color: #ffffff;
    background:
        radial-gradient(circle at right top, rgba(254, 215, 170, 0.38), transparent 32%),
        linear-gradient(135deg, #7c2d12, #f97316 58%, #f59e0b);
}

.page-hero h1 {
    max-width: 920px;
    margin: 0;
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.08;
    font-weight: 900;
}

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

.filter-panel {
    margin-bottom: 28px;
    padding: 20px;
}

.filter-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 14px;
}

.filter-grid label {
    display: grid;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 800;
}

.filter-grid input,
.filter-grid select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #fed7aa;
    border-radius: 16px;
    padding: 0 14px;
    color: #1f2937;
    background: #fffaf5;
    outline: none;
}

.filter-grid input:focus,
.filter-grid select:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: #6b7280;
    font-size: 14px;
}

.breadcrumb a {
    color: #ea580c;
    font-weight: 800;
}

.detail-hero {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 34px;
    padding: 28px;
    background:
        linear-gradient(135deg, rgba(255, 237, 213, 0.85), rgba(255, 255, 255, 0.95)),
        #ffffff;
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.16);
}

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

.detail-copy h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(36px, 6vw, 62px);
    line-height: 1.08;
    font-weight: 900;
}

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

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

.detail-tags span {
    color: #c2410c;
    background: #ffedd5;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 28px 0 0;
}

.detail-meta div {
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
}

.detail-meta dt {
    color: #9ca3af;
    font-size: 13px;
    font-weight: 800;
}

.detail-meta dd {
    margin: 4px 0 0;
    color: #1f2937;
    font-weight: 900;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.28);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.48));
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.play-overlay span {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    font-size: 34px;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    box-shadow: 0 18px 45px rgba(249, 115, 22, 0.38);
}

.player-shell.is-playing .play-overlay {
    opacity: 0;
    pointer-events: none;
}

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

.text-card {
    padding: 28px;
}

.text-card h2 {
    margin-bottom: 16px;
    font-size: 26px;
}

.text-card p {
    margin: 0;
    color: #4b5563;
    font-size: 16px;
}

.text-card .lead-text {
    margin-bottom: 14px;
    color: #ea580c;
    font-size: 18px;
    font-weight: 800;
}

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

.mini-card {
    display: block;
}

.mini-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
    transition: transform 0.3s ease;
}

.mini-card span {
    display: -webkit-box;
    margin-top: 10px;
    overflow: hidden;
    color: #1f2937;
    font-size: 14px;
    font-weight: 900;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mini-card em {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 12px;
    font-style: normal;
}

.site-footer {
    margin-top: 70px;
    color: #d1d5db;
    background: #111827;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1.2fr;
    gap: 32px;
    padding: 46px 0;
}

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

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

.site-footer p {
    margin: 12px 0 0;
    color: #d1d5db;
}

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

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

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

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

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

    .split-section,
    .ranking-layout {
        grid-template-columns: 1fr;
    }

    .ranking-panel {
        position: static;
    }

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

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

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

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

    .menu-button {
        display: block;
    }

    .hero {
        height: 620px;
    }

    .hero-content {
        align-items: flex-end;
        padding-bottom: 92px;
    }

    .hero-actions,
    .section-heading {
        align-items: stretch;
        flex-direction: column;
    }

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

    .filter-grid,
    .detail-hero {
        grid-template-columns: 1fr;
    }

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

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

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

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

    .movie-grid,
    .movie-grid-three,
    .category-grid,
    .category-overview-grid,
    .detail-text,
    .mini-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        height: 590px;
    }

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

    .page-hero,
    .detail-hero,
    .text-card,
    .ranking-panel {
        border-radius: 22px;
        padding: 22px;
    }

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

    .play-overlay span {
        width: 72px;
        height: 72px;
    }
}
