* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #111827;
    background: #f9fafb;
    line-height: 1.6;
}

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: 50;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(229, 231, 235, 0.95);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(16px);
}

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

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

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    background: linear-gradient(135deg, #f97316, #d97706);
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.22);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
}

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

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: #374151;
    font-weight: 650;
}

.nav-link {
    position: relative;
    padding: 26px 0;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #ea580c;
}

.nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 19px;
    height: 3px;
    border-radius: 999px;
    background: #ea580c;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #fff7ed;
    color: #c2410c;
    cursor: pointer;
}

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

.mobile-panel {
    display: none;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
}

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

.mobile-links {
    display: grid;
    gap: 14px;
    padding: 18px 0;
}

.mobile-links a {
    color: #374151;
    font-weight: 650;
}

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

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

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

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

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

.hero-shade {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.12));
}

.hero-content {
    position: relative;
    height: 76vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 84px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    color: #ffffff;
    background: #ea580c;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero h1,
.page-hero h1 {
    margin: 0;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.05;
    font-weight: 850;
    letter-spacing: -0.04em;
}

.hero p,
.page-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    font-size: clamp(17px, 2vw, 22px);
    color: rgba(255, 255, 255, 0.86);
}

.hero-tags,
.detail-meta,
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

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

.hero-tags span,
.detail-meta span {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 12px;
    font-weight: 750;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #ffffff;
    background: #ea580c;
    box-shadow: 0 16px 30px rgba(234, 88, 12, 0.25);
}

.btn-primary:hover {
    background: #c2410c;
}

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

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.22);
}

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

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

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

.section {
    padding: 62px 0;
}

.compact-top {
    padding-top: 34px;
}

.section-white {
    background: #ffffff;
}

.section-gray {
    background: #f9fafb;
}

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

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

.section-heading h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

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

.section-more {
    flex: 0 0 auto;
    color: #ea580c;
    font-weight: 750;
}

.home-search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
    gap: 24px;
    align-items: center;
    padding: 28px;
    border: 1px solid #fed7aa;
    border-radius: 24px;
    background: linear-gradient(135deg, #fff7ed, #ffffff);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.home-search-panel h2 {
    margin: 0;
    font-size: 28px;
}

.home-search-panel p {
    margin: 8px 0 0;
    color: #6b7280;
}

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

.search-box input {
    width: 100%;
    min-height: 48px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 0 16px;
    outline: none;
    background: #ffffff;
}

.search-box input:focus {
    border-color: #fb923c;
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.16);
}

.search-box button,
.filter-pills button {
    border: 0;
    cursor: pointer;
    font-weight: 750;
}

.search-box button {
    min-width: 88px;
    border-radius: 14px;
    color: #ffffff;
    background: #ea580c;
}

.category-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.category-tile,
.category-card {
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-tile {
    padding: 20px;
}

.category-tile:hover,
.category-card:hover {
    transform: translateY(-3px);
    border-color: #fdba74;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.category-tile strong,
.category-card strong {
    display: block;
    color: #111827;
    font-size: 18px;
}

.category-tile span,
.category-card em {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-style: normal;
    font-size: 14px;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    border-color: #fdba74;
    box-shadow: 0 24px 45px rgba(15, 23, 42, 0.12);
}

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #111827;
}

.movie-card-large .card-cover {
    aspect-ratio: 16 / 22;
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-badge,
.card-rank {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 750;
}

.card-badge {
    left: 12px;
    bottom: 12px;
    padding: 5px 10px;
    background: rgba(234, 88, 12, 0.95);
}

.card-rank {
    left: 12px;
    top: 12px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ea580c;
    box-shadow: 0 12px 24px rgba(234, 88, 12, 0.28);
}

.card-body {
    padding: 16px;
}

.card-meta {
    justify-content: space-between;
    color: #6b7280;
    font-size: 13px;
}

.card-body h3 {
    margin: 9px 0 8px;
    color: #111827;
    font-size: 17px;
    line-height: 1.3;
}

.card-body h3 a:hover {
    color: #ea580c;
}

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

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    color: #6b7280;
    background: #f3f4f6;
    font-size: 12px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 42px 72px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 96px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
    transform: translateY(-2px);
    border-color: #fdba74;
}

.rank-number {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: #ea580c;
    font-weight: 800;
}

.rank-item img {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-info strong {
    display: block;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-info small {
    display: block;
    margin-top: 6px;
    color: #6b7280;
}

.editor-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
}

.editor-feature {
    position: relative;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    overflow: hidden;
    border-radius: 26px;
    color: #ffffff;
    background: #111827;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.editor-feature img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.68;
    transition: transform 0.7s ease;
}

.editor-feature::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.2));
}

.editor-feature:hover img {
    transform: scale(1.05);
}

.editor-feature span,
.editor-feature strong,
.editor-feature em {
    position: relative;
    z-index: 2;
}

.editor-feature span {
    width: max-content;
    padding: 5px 11px;
    border-radius: 999px;
    background: #ea580c;
    font-size: 13px;
    font-style: normal;
}

.editor-feature strong {
    margin-top: 12px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
}

.editor-feature em {
    margin-top: 12px;
    max-width: 560px;
    color: rgba(255, 255, 255, 0.86);
    font-style: normal;
}

.page-hero {
    padding: 76px 0;
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #431407 56%, #9a3412);
}

.simple-hero,
.category-hero,
.ranking-hero {
    position: relative;
    overflow: hidden;
}

.simple-hero::after,
.category-hero::after,
.ranking-hero::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -120px;
    top: -140px;
    border-radius: 999px;
    background: rgba(251, 146, 60, 0.22);
    filter: blur(10px);
}

.toolbar {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 16px;
    max-width: 840px;
    margin-top: 28px;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-pills button {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    color: #7c2d12;
    background: #ffedd5;
}

.filter-pills button.is-active {
    color: #ffffff;
    background: #ea580c;
}

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

.category-card {
    display: block;
    overflow: hidden;
}

.category-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #111827;
}

.category-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-copy {
    display: block;
    padding: 18px;
}

.empty-state {
    display: none;
    margin: 32px 0 0;
    padding: 24px;
    border-radius: 18px;
    text-align: center;
    color: #6b7280;
    background: #f9fafb;
}

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

.detail-top {
    padding: 54px 0;
    color: #ffffff;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.24), transparent 36%), linear-gradient(135deg, #111827, #1f2937);
}

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

.poster-card {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    background: #111827;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 14px;
}

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

.detail-info h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.detail-info .lead {
    max-width: 780px;
    margin: 18px 0 22px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 19px;
}

.detail-meta {
    margin-bottom: 18px;
}

.tag-list-large span {
    min-height: 28px;
    color: #fed7aa;
    background: rgba(255, 255, 255, 0.12);
}

.detail-info .btn {
    margin-top: 26px;
}

.detail-player-section {
    padding-top: 42px;
}

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.24));
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.player-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.play-circle {
    width: 74px;
    height: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding-left: 5px;
    color: #ffffff;
    background: #ea580c;
    box-shadow: 0 20px 40px rgba(234, 88, 12, 0.32);
    font-size: 30px;
}

.player-overlay strong {
    max-width: min(80%, 680px);
    font-size: 24px;
    text-align: center;
}

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

.article-panel,
.side-panel {
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
}

.article-panel {
    padding: 30px;
}

.article-panel h2,
.side-panel h2 {
    margin: 0 0 16px;
    color: #111827;
    font-size: 24px;
}

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

.article-panel p {
    margin: 0;
    color: #374151;
    font-size: 17px;
    line-height: 1.9;
}

.side-panel {
    padding: 24px;
    position: sticky;
    top: 100px;
}

.side-panel dl {
    margin: 0;
}

.side-panel dt {
    margin-top: 14px;
    color: #6b7280;
    font-size: 13px;
}

.side-panel dd {
    margin: 3px 0 0;
    color: #111827;
    font-weight: 700;
}

.side-panel a {
    color: #ea580c;
}

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

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

.brand-footer .brand-text strong {
    color: #ffffff;
}

.brand-footer .brand-text small {
    color: #9ca3af;
}

.footer-brand p {
    max-width: 560px;
    margin: 18px 0 0;
    color: #9ca3af;
}

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

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

.site-footer li + li {
    margin-top: 10px;
}

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

.footer-bottom {
    border-top: 1px solid #1f2937;
    padding: 20px 0;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

@media (max-width: 1024px) {
    .main-nav {
        gap: 16px;
    }

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

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

    .detail-grid,
    .content-grid,
    .editor-grid {
        grid-template-columns: 1fr;
    }

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

    .side-panel {
        position: static;
    }
}

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

    .header-inner {
        height: 66px;
    }

    .brand-text small {
        display: none;
    }

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

    .main-nav {
        display: none;
    }

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

    .hero,
    .hero-content {
        min-height: 72vh;
        height: 72vh;
    }

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

    .hero-tags {
        gap: 8px;
    }

    .home-search-panel,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .search-box button {
        min-height: 46px;
    }

    .section-heading {
        display: block;
    }

    .section-more {
        display: inline-flex;
        margin-top: 12px;
    }

    .movie-grid,
    .movie-grid-three,
    .movie-grid-compact,
    .rank-list,
    .category-grid,
    .category-strip {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 38px 66px minmax(0, 1fr);
    }

    .rank-item img {
        width: 66px;
        height: 66px;
    }

    .page-hero,
    .detail-top {
        padding: 52px 0;
    }

    .detail-grid {
        gap: 24px;
    }

    .poster-card {
        max-width: 220px;
    }

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

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