* {
    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: #1f2937;
    background: #f9fafb;
    line-height: 1.6;
}

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

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

.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.94);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

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

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

.brand-name {
    font-size: 24px;
    background: linear-gradient(135deg, #ea580c, #d97706);
    -webkit-background-clip: text;
    color: transparent;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(249, 115, 22, 0.35);
}

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

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

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: #ea580c;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #fff7ed;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #9a3412;
    border-radius: 2px;
}

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

.mobile-nav a {
    display: block;
    padding: 12px 0;
    color: #4b5563;
    font-weight: 700;
}

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

.hero-section {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, #ea580c 0%, #d97706 46%, #facc15 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.35), transparent 24%),
        radial-gradient(circle at 82% 18%, rgba(30, 64, 175, 0.22), transparent 28%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.18));
}

.hero-container {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.1fr) 380px;
    align-items: center;
    gap: 52px;
    width: 100%;
    color: #ffffff;
}

.hero-slide.active {
    display: grid;
    animation: heroFade 0.6s ease;
}

@keyframes heroFade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: inherit;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(36px, 6vw, 66px);
    line-height: 1.1;
    font-weight: 900;
}

.hero-lead,
.page-hero p,
.detail-copy p {
    max-width: 760px;
    margin: 0 0 22px;
    font-size: 20px;
    opacity: 0.92;
}

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

.hero-meta span,
.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: inherit;
    font-size: 14px;
    font-weight: 700;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span,
.footer-tags a {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: inherit;
    font-size: 12px;
    font-weight: 700;
}

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

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

.primary-btn {
    background: #ffffff;
    color: #ea580c;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
}

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

.primary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.hero-poster {
    position: relative;
    height: 490px;
    overflow: hidden;
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(255, 237, 213, 0.5), rgba(251, 191, 36, 0.5));
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.35);
}

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

.hero-poster:hover img {
    transform: scale(1.05);
}

.hero-poster span,
.poster-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 74px;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #ea580c;
    font-size: 28px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
}

.hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 34px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.hero-dots button.active {
    width: 36px;
    border-radius: 999px;
    background: #ffffff;
}

.section-block {
    padding: 72px 0;
}

.section-block.white {
    background: #ffffff;
}

.section-block.soft {
    background: linear-gradient(135deg, #eff6ff, #eef2ff);
}

.section-heading,
.category-overview-head,
.rank-panel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.section-heading h2,
.category-overview-head h2,
.rank-panel-head h2,
.side-card h2,
.content-card h2 {
    margin: 0;
    color: #111827;
    font-size: 32px;
    line-height: 1.2;
}

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

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2563eb;
    font-weight: 800;
    white-space: nowrap;
}

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

.category-card,
.category-overview-card,
.rank-panel,
.content-card,
.side-card {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.category-card {
    min-height: 220px;
    padding: 26px;
    background: linear-gradient(135deg, #ecfeff, #f0fdfa);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.movie-card:hover,
.rank-card:hover,
.ranking-row:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

.category-glow {
    position: absolute;
    right: -40px;
    top: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(20, 184, 166, 0.18);
}

.category-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    color: #ffffff;
    background: linear-gradient(135deg, #14b8a6, #0891b2);
    box-shadow: 0 14px 30px rgba(20, 184, 166, 0.28);
}

.category-card h3 {
    margin: 22px 0 8px;
    color: #111827;
    font-size: 22px;
}

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

.category-card span {
    color: #0f766e;
    font-weight: 800;
}

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

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

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

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

.movie-card.compact .poster-frame {
    height: 176px;
}

.card-link {
    display: block;
    height: 100%;
}

.poster-frame {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffedd5, #fde68a);
}

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

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

.poster-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent 58%);
}

.poster-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 2;
    padding: 6px 11px;
    border-radius: 999px;
    background: #2563eb;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.poster-play {
    z-index: 3;
    width: 58px;
    height: 58px;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: scale(1.05);
}

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

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

.movie-card-body p {
    min-height: 48px;
    margin: 0 0 14px;
    color: #6b7280;
    font-size: 14px;
}

.meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    color: #6b7280;
    font-size: 13px;
}

.tag-row span {
    background: #f3f4f6;
    color: #4b5563;
}

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

.rank-panel {
    padding: 26px;
    position: sticky;
    top: 96px;
}

.rank-list {
    display: grid;
    gap: 12px;
}

.rank-card {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    background: #f9fafb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-no {
    grid-row: span 2;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #f43f5e, #ea580c);
    color: #ffffff;
    font-weight: 900;
}

.rank-card strong {
    color: #111827;
}

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

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 82px 0;
    color: #ffffff;
    background: linear-gradient(135deg, #ea580c, #d97706 55%, #f59e0b);
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.24), transparent 28%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.08));
}

.page-hero .container {
    position: relative;
}

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

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

.filter-bar {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 22px;
    background: #fff7ed;
}

.filter-bar label {
    color: #9a3412;
    font-weight: 900;
    white-space: nowrap;
}

.filter-bar input,
.search-box-large input {
    width: 100%;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: 14px 18px;
    outline: none;
    font: inherit;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.search-box-large {
    max-width: 680px;
    margin-top: 28px;
}

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

.ranking-row {
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-row a {
    display: grid;
    grid-template-columns: 78px 84px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
}

.ranking-number {
    color: #ea580c;
    font-size: 24px;
    font-weight: 900;
    text-align: center;
}

.ranking-row img {
    width: 84px;
    height: 62px;
    object-fit: cover;
    border-radius: 14px;
    background: #ffedd5;
}

.ranking-main strong,
.ranking-main em {
    display: block;
}

.ranking-main strong {
    color: #111827;
    font-size: 18px;
}

.ranking-main em,
.ranking-meta {
    color: #6b7280;
    font-style: normal;
    font-size: 14px;
}

.detail-hero {
    min-height: 560px;
    display: flex;
    align-items: center;
    background: #111827;
}

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

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(6px);
    transform: scale(1.04);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.55), rgba(17, 24, 39, 0.88));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    background: #ffedd5;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.detail-poster img {
    width: 100%;
    height: 460px;
    object-fit: cover;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.74);
    font-weight: 700;
}

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

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

.video-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.25);
    aspect-ratio: 16 / 9;
    margin-bottom: 28px;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.18));
    color: #ffffff;
    cursor: pointer;
}

.play-overlay span {
    width: 84px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #ea580c;
    font-size: 34px;
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.35);
}

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

.movie-player.is-ready .play-overlay,
.movie-player.is-playing .play-overlay {
    display: none;
}

.content-card {
    padding: 30px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 30px;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, #eff6ff, #eef2ff);
}

.info-grid div {
    text-align: center;
}

.info-grid span,
.info-grid strong {
    display: block;
}

.info-grid span {
    color: #6b7280;
    font-size: 13px;
}

.info-grid strong {
    margin-top: 4px;
    color: #111827;
}

.content-card p {
    color: #374151;
    font-size: 16px;
}

.content-card blockquote {
    margin: 0;
    padding: 22px;
    border-left: 5px solid #f97316;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
    color: #374151;
    font-style: italic;
}

.detail-side {
    position: sticky;
    top: 96px;
}

.side-card {
    padding: 24px;
}

.side-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 18px;
}

.side-grid .movie-card .poster-frame {
    height: 150px;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding: 54px 0 38px;
}

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

.site-footer p {
    color: #9ca3af;
}

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

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

.site-footer li {
    margin: 8px 0;
}

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

.footer-tags a {
    background: rgba(255, 255, 255, 0.08);
    color: #d1d5db;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    font-size: 14px;
}

.footer-bottom .container {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

[data-search-card].hidden {
    display: none;
}

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

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

    .hero-slide,
    .detail-hero-inner,
    .detail-layout,
    .split-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        height: 360px;
    }

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

    .detail-side,
    .rank-panel {
        position: static;
    }
}

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

    .brand-name {
        font-size: 20px;
    }

    .hero-section,
    .hero-container {
        min-height: 760px;
    }

    .hero-slide.active {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        padding: 46px 0 86px;
    }

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

    .hero-lead,
    .page-hero p,
    .detail-copy p {
        font-size: 17px;
    }

    .hero-poster {
        width: 100%;
        height: 320px;
    }

    .section-block {
        padding: 48px 0;
    }

    .section-heading,
    .category-overview-head,
    .rank-panel-head,
    .filter-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .category-grid,
    .movie-grid,
    .small-grid,
    .mini-grid,
    .category-movie-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .ranking-row a {
        grid-template-columns: 52px 72px minmax(0, 1fr);
    }

    .ranking-meta {
        grid-column: 3;
    }

    .detail-poster img {
        height: 360px;
    }

    .footer-bottom .container {
        flex-direction: column;
        justify-content: center;
        padding: 16px 0;
    }
}
