:root {
    --orange: #f97316;
    --orange-dark: #ea580c;
    --cyan: #06b6d4;
    --blue: #2563eb;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #fff7ed;
    --card: #ffffff;
    --shadow: 0 16px 40px rgba(17, 24, 39, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 46%, #ecfeff 100%);
}

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

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

button,
input {
    font: inherit;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

.header-inner {
    max-width: 1280px;
    height: 68px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.brand {
    flex-shrink: 0;
    font-size: 26px;
    background: linear-gradient(90deg, var(--orange), var(--cyan));
    -webkit-background-clip: text;
    color: transparent;
}

.brand-mark,
.footer-brand span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--orange), var(--cyan));
    color: #ffffff;
    font-size: 15px;
    box-shadow: 0 12px 26px rgba(249, 115, 22, 0.28);
}

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

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

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-menu a:hover,
.mobile-menu a.is-active {
    color: var(--orange);
}

.top-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    background: #f3f4f6;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
}

.top-search input,
.mobile-search input,
.filter-bar input {
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
}

.top-search input {
    width: 240px;
    padding: 9px 12px;
}

.top-search button,
.mobile-search button,
.filter-buttons button,
.scroll-controls button {
    border: 0;
    cursor: pointer;
}

.top-search button,
.mobile-search button {
    padding: 9px 16px;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--orange), var(--orange-dark));
    font-weight: 800;
}

.nav-toggle {
    display: none;
    border: 0;
    border-radius: 14px;
    padding: 10px 14px;
    background: #f3f4f6;
    color: #374151;
    font-weight: 800;
}

.mobile-menu {
    display: none;
    padding: 16px 24px 22px;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

.mobile-menu.is-open {
    display: grid;
    gap: 14px;
}

.mobile-search {
    display: flex;
    gap: 8px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f9fafb;
}

.mobile-search input {
    width: 100%;
    padding: 10px 12px;
}

main {
    flex: 1;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    background-position: center;
    background-size: cover;
    transition: opacity 0.8s ease, transform 1.2s ease;
    transform: scale(1.02);
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 720px;
    color: #ffffff;
    animation: fadeInUp 0.8s ease both;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--orange);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 14px 0 0;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero-copy h2 {
    font-size: clamp(38px, 6vw, 68px);
}

.hero-copy p {
    max-width: 660px;
    margin: 22px 0 0;
    color: #e5e7eb;
    font-size: 19px;
    line-height: 1.85;
}

.hero-tags,
.detail-meta,
.movie-meta,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

.hero-tags span,
.detail-meta span,
.tag-cloud span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 13px;
    border-radius: 999px;
    font-weight: 800;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
}

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

.primary-button,
.ghost-button,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    min-height: 50px;
    padding: 0 28px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--orange-dark));
    box-shadow: 0 16px 28px rgba(249, 115, 22, 0.28);
}

.primary-button:hover,
.ghost-button:hover,
.movie-card:hover,
.rank-item:hover,
.rank-row:hover,
.mini-card:hover {
    transform: translateY(-3px);
}

.ghost-button {
    min-height: 50px;
    padding: 0 28px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.26);
}

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

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

.hero-dots button.is-active {
    width: 34px;
    background: var(--orange);
}

.content-section,
.quick-categories,
.detail-hero,
.player-section {
    max-width: 1280px;
    width: calc(100% - 48px);
    margin: 0 auto;
}

.quick-categories,
.content-section,
.player-section {
    padding-top: 64px;
}

.section-heading {
    margin-bottom: 28px;
}

.section-heading h2,
.page-hero h1,
.detail-info h1,
.article-card h2,
.rank-card h2 {
    margin: 8px 0 0;
    color: #1f2937;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.centered {
    text-align: center;
}

.row-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.text-link {
    color: var(--orange);
}

.category-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.category-chips a,
.filter-buttons button {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: #ffffff;
    color: #374151;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.category-chips a:hover,
.filter-buttons button:hover,
.filter-buttons button.is-active {
    transform: translateY(-2px);
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--orange-dark));
}

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

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

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

.movie-card {
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    box-shadow: var(--shadow);
}

.poster-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #cffafe);
}

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

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

.movie-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    border-radius: 999px;
    padding: 6px 10px;
    color: #ffffff;
    background: var(--orange);
    font-size: 13px;
    font-weight: 900;
}

.play-hover {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.94);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-body {
    padding: 18px;
}

.movie-body h3 {
    margin: 0;
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    color: #1f2937;
    font-size: 18px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.movie-card:hover h3 {
    color: var(--orange);
}

.movie-body p {
    display: -webkit-box;
    min-height: 44px;
    margin: 10px 0 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    margin-top: 14px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 800;
}

.movie-meta span {
    padding-right: 10px;
    border-right: 1px solid #d1d5db;
}

.movie-meta span:last-child {
    border-right: 0;
}

.horizontal-scroller {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 250px;
    gap: 22px;
    overflow-x: auto;
    padding: 4px 0 20px;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.horizontal-scroller::-webkit-scrollbar {
    display: none;
}

.scroll-controls {
    display: flex;
    gap: 10px;
}

.scroll-controls button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #374151;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.1);
    font-size: 24px;
}

.scroll-controls button:hover {
    color: #ffffff;
    background: var(--orange);
}

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

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

.category-panel,
.rank-card,
.article-card,
.player-card {
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

.category-panel {
    padding: 20px;
}

.category-panel-title {
    display: inline-flex;
    margin-bottom: 14px;
    color: #1f2937;
    font-size: 20px;
    font-weight: 900;
}

.category-panel-title:hover {
    color: var(--orange);
}

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

.mini-card {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 16px;
    background: #f9fafb;
    transition: transform 0.2s ease, background 0.2s ease;
}

.mini-card:hover {
    background: #fff7ed;
}

.mini-card img {
    width: 64px;
    height: 82px;
    border-radius: 12px;
    object-fit: cover;
}

.mini-card strong,
.mini-card em {
    display: block;
}

.mini-card strong {
    color: #1f2937;
    line-height: 1.35;
}

.mini-card em {
    margin-top: 5px;
    color: #6b7280;
    font-size: 13px;
    font-style: normal;
}

.rank-card {
    position: sticky;
    top: 92px;
    padding: 24px;
}

.rank-row {
    display: grid;
    grid-template-columns: 34px 58px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin-top: 16px;
    padding: 10px;
    border-radius: 18px;
    background: #f9fafb;
    transition: transform 0.2s ease, background 0.2s ease;
}

.rank-row:hover {
    background: #fff7ed;
}

.rank-row img {
    width: 58px;
    height: 78px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--cyan));
    font-weight: 900;
}

.rank-title strong,
.rank-title em {
    display: block;
}

.rank-title strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-title em {
    margin-top: 4px;
    overflow: hidden;
    color: #6b7280;
    font-size: 12px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-score {
    color: var(--orange);
    font-weight: 900;
}

.primary-button.full {
    width: 100%;
    margin-top: 22px;
}

.page-hero,
.detail-hero {
    border-radius: 0 0 34px 34px;
    background: radial-gradient(circle at 20% 10%, rgba(249, 115, 22, 0.20), transparent 36%), radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.20), transparent 35%), #ffffff;
    box-shadow: 0 18px 42px rgba(17, 24, 39, 0.08);
}

.compact-hero {
    margin-top: 28px;
    padding: 56px;
}

.compact-hero p {
    max-width: 820px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.8;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 14px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

.filter-bar input {
    flex: 1;
    min-width: 220px;
    padding: 14px 18px;
    border-radius: 999px;
    background: #f3f4f6;
}

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

.result-line {
    margin: 0 0 22px;
    color: #6b7280;
    font-weight: 800;
}

.is-hidden-by-filter {
    display: none;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 60px 120px minmax(0, 1fr) 80px;
    gap: 22px;
    align-items: center;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    box-shadow: var(--shadow);
}

.rank-item img {
    width: 120px;
    height: 160px;
    border-radius: 18px;
    object-fit: cover;
}

.rank-number.big {
    width: 46px;
    height: 46px;
    font-size: 20px;
}

.rank-detail strong,
.rank-detail em,
.rank-detail small {
    display: block;
}

.rank-detail strong {
    color: #1f2937;
    font-size: 24px;
}

.rank-detail em {
    display: -webkit-box;
    margin-top: 10px;
    overflow: hidden;
    color: #4b5563;
    font-style: normal;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-detail small {
    margin-top: 10px;
    color: #6b7280;
    font-weight: 800;
}

.big-score {
    font-size: 26px;
}

.detail-hero {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    margin-top: 28px;
    padding: 44px;
}

.detail-cover {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

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

.detail-line {
    max-width: 880px;
    color: #4b5563;
    font-size: 20px;
    line-height: 1.8;
}

.detail-meta span,
.tag-cloud span {
    color: #374151;
    background: #f3f4f6;
}

.tag-cloud {
    margin-top: 22px;
}

.detail-info .primary-button {
    margin-top: 28px;
}

.player-section .section-heading {
    margin-bottom: 18px;
}

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

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-start {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.58));
    cursor: pointer;
}

.player-start span {
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    box-shadow: 0 18px 34px rgba(249, 115, 22, 0.35);
    font-size: 34px;
}

.player-start strong {
    font-size: 22px;
}

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

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

.article-card {
    padding: 30px;
}

.article-card p {
    margin: 18px 0 0;
    color: #374151;
    font-size: 17px;
    line-height: 2;
}

.site-footer {
    margin-top: 80px;
    padding: 56px 24px;
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937 55%, #111827);
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
}

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

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

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

.site-footer a {
    display: block;
    margin-top: 10px;
    color: #d1d5db;
}

.site-footer a:hover {
    color: var(--orange);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .top-search {
        margin-left: auto;
    }

    .nav-toggle {
        display: inline-flex;
    }

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

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

    .rank-card {
        position: static;
    }
}

@media (max-width: 820px) {
    .header-inner {
        height: auto;
        min-height: 66px;
        padding: 12px 16px;
        flex-wrap: wrap;
    }

    .brand {
        font-size: 22px;
    }

    .top-search {
        order: 3;
        width: 100%;
        margin-left: 0;
    }

    .top-search input {
        width: 100%;
    }

    .hero {
        height: 620px;
    }

    .hero-inner {
        padding: 0 18px;
    }

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

    .content-section,
    .quick-categories,
    .detail-hero,
    .player-section {
        width: calc(100% - 32px);
    }

    .movie-grid,
    .large-grid,
    .small-grid,
    .category-panels,
    .two-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .filter-bar,
    .row-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .compact-hero,
    .detail-hero {
        padding: 28px;
    }

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

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

    .rank-item .rank-score {
        grid-column: 3;
    }

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

@media (max-width: 560px) {
    .movie-grid,
    .large-grid,
    .small-grid,
    .category-panels,
    .two-column,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

    .primary-button,
    .ghost-button {
        width: 100%;
    }

    .detail-cover {
        max-width: 260px;
        margin: 0 auto;
    }

    .rank-item {
        grid-template-columns: 42px 74px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .rank-detail strong {
        font-size: 18px;
    }
}
