:root {
    --color-text: #111827;
    --color-muted: #6b7280;
    --color-soft: #f9fafb;
    --color-line: #e5e7eb;
    --color-orange: #ea580c;
    --color-orange-dark: #c2410c;
    --color-red: #dc2626;
    --color-dark: #111827;
    --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.10);
    --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-text);
    background: #ffffff;
    line-height: 1.6;
}

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

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

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

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

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

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

.brand-copy {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--color-orange), var(--color-red));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-subtitle {
    margin-top: 4px;
    font-size: 12px;
    color: var(--color-muted);
}

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

.nav-links a {
    position: relative;
    transition: color 0.2s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -8px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-orange), var(--color-red));
    transition: right 0.2s ease;
}

.nav-links a:hover {
    color: var(--color-orange);
}

.nav-links a:hover::after {
    right: 0;
}

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

.nav-toggle span {
    width: 20px;
    height: 2px;
    display: block;
    margin: 5px auto;
    border-radius: 999px;
    background: var(--color-orange);
}

.hero-slider {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: #020617;
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.12));
}

.hero-content-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 690px;
    color: #ffffff;
    padding: 70px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--color-orange);
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 14px 24px rgba(234, 88, 12, 0.28);
}

.hero-content h1 {
    margin: 22px 0 16px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-content p {
    margin: 0 0 22px;
    color: #e5e7eb;
    font-size: clamp(18px, 2vw, 23px);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 30px;
    color: #f9fafb;
}

.hero-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

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

.btn-primary,
.btn-secondary,
.search-panel button,
.footer-search button,
.player-cover button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary,
.search-panel button,
.footer-search button,
.player-cover button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-orange), var(--color-red));
    box-shadow: 0 18px 30px rgba(234, 88, 12, 0.28);
}

.btn-secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(12px);
}

.btn-primary:hover,
.btn-secondary:hover,
.search-panel button:hover,
.footer-search button:hover,
.player-cover button:hover {
    transform: translateY(-2px);
}

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

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

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

.section {
    padding: 76px 0;
}

.section-soft {
    padding: 76px 0;
    background: var(--color-soft);
}

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

.section-heading h1,
.section-heading h2 {
    margin: 0 0 6px;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 0;
    color: var(--color-muted);
}

.link-arrow {
    color: var(--color-orange);
    font-weight: 900;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    border-color: rgba(234, 88, 12, 0.34);
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
}

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

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

.movie-card:hover .poster-link img {
    transform: scale(1.06);
}

.poster-badge {
    position: absolute;
    left: 14px;
    top: 14px;
    padding: 5px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(234, 88, 12, 0.95);
    font-size: 13px;
    font-weight: 900;
}

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

.movie-card-body h2,
.movie-card-body h3 {
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.25;
}

.movie-card-body h2 a:hover,
.movie-card-body h3 a:hover {
    color: var(--color-orange);
}

.movie-meta {
    margin: 0 0 10px;
    color: var(--color-muted);
    font-size: 14px;
}

.movie-one-line {
    min-height: 48px;
    margin: 0 0 14px;
    color: #4b5563;
    font-size: 15px;
}

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

.tag-list span {
    padding: 4px 10px;
    border-radius: 999px;
    color: #9a3412;
    background: #fff7ed;
    font-size: 12px;
    font-weight: 800;
}

.card-category {
    display: inline-flex;
    margin-top: 14px;
    color: var(--color-orange);
    font-size: 14px;
    font-weight: 900;
}

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

.category-card {
    min-height: 186px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border-radius: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #ea580c, #dc2626);
    box-shadow: 0 20px 42px rgba(234, 88, 12, 0.22);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:nth-child(3n + 2) {
    background: linear-gradient(135deg, #111827, #374151);
    box-shadow: 0 20px 42px rgba(17, 24, 39, 0.18);
}

.category-card:nth-child(3n + 3) {
    background: linear-gradient(135deg, #7c2d12, #c2410c);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.category-card strong {
    font-size: 24px;
    line-height: 1.2;
}

.category-card p {
    margin: 12px 0 18px;
    color: rgba(255, 255, 255, 0.86);
}

.category-card span {
    font-weight: 900;
}

.search-panel {
    margin: 28px 0;
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    border: 1px solid var(--color-line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.search-panel input,
.footer-search input {
    width: 100%;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-panel input:focus,
.footer-search input:focus {
    border-color: var(--color-orange);
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
}

.filter-empty {
    display: none;
    padding: 26px;
    border-radius: 22px;
    color: var(--color-muted);
    background: #fff7ed;
    text-align: center;
    font-weight: 800;
}

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

.hidden-by-search {
    display: none;
}

.rank-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: start;
}

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

.compact-card a {
    position: relative;
    display: grid;
    grid-template-columns: 86px 1fr;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border: 1px solid var(--color-line);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.compact-card a:hover {
    border-color: rgba(234, 88, 12, 0.35);
    transform: translateX(4px);
}

.compact-card img {
    width: 86px;
    height: 58px;
    object-fit: cover;
    border-radius: 14px;
}

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

.compact-card strong {
    margin-bottom: 4px;
    font-size: 16px;
}

.compact-card em {
    color: var(--color-muted);
    font-style: normal;
    font-size: 13px;
}

.rank-number {
    position: absolute;
    left: 8px;
    top: 8px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: var(--color-orange);
    font-size: 13px;
    font-weight: 900;
    z-index: 2;
}

.page-hero {
    padding: 72px 0;
    color: #ffffff;
    background: radial-gradient(circle at top left, rgba(234, 88, 12, 0.78), transparent 34%), linear-gradient(135deg, #111827, #1f2937 58%, #7c2d12);
}

.page-hero h1 {
    margin: 0 0 14px;
    max-width: 920px;
    font-size: clamp(38px, 6vw, 62px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0;
    color: var(--color-muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--color-orange);
    font-weight: 800;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
    gap: 32px;
    align-items: start;
    margin-bottom: 76px;
}

.detail-main,
.detail-side {
    min-width: 0;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: 0 22px 55px rgba(2, 6, 23, 0.26);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: rgba(2, 6, 23, 0.18);
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-card {
    display: grid;
    place-items: center;
    gap: 16px;
    padding: 26px;
    color: #ffffff;
    text-align: center;
}

.play-icon {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-orange), var(--color-red));
    box-shadow: 0 16px 30px rgba(234, 88, 12, 0.35);
    font-size: 34px;
    transform: translateZ(0);
}

.detail-title {
    margin: 28px 0 12px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #9a3412;
    background: #fff7ed;
    font-weight: 800;
}

.detail-copy {
    padding: 28px;
    border: 1px solid var(--color-line);
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.detail-copy h2 {
    margin: 0 0 12px;
    font-size: 26px;
}

.detail-copy p {
    margin: 0 0 20px;
    color: #374151;
    font-size: 17px;
}

.detail-side-card {
    padding: 22px;
    border: 1px solid var(--color-line);
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.detail-side-card + .detail-side-card {
    margin-top: 20px;
}

.detail-side-card h2 {
    margin: 0 0 16px;
    font-size: 22px;
}

.cover-frame {
    overflow: hidden;
    border-radius: 22px;
    background: #111827;
}

.cover-frame img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.site-map-columns {
    columns: 4 220px;
    column-gap: 28px;
}

.site-map-columns a {
    display: block;
    margin: 0 0 10px;
    break-inside: avoid;
    color: #374151;
}

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

.site-footer {
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937, #111827);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr repeat(3, 1fr);
    gap: 32px;
    padding: 56px 0 36px;
}

.footer-brand {
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 26px;
    font-weight: 900;
}

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

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

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

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

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

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

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

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

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

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

@media (max-width: 760px) {
    .site-nav {
        min-height: 70px;
    }

    .brand-title {
        font-size: 22px;
    }

    .brand-subtitle {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border: 1px solid var(--color-line);
        border-radius: 18px;
        background: #ffffff;
        box-shadow: var(--shadow-card);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        padding: 12px;
    }

    .nav-links a::after {
        display: none;
    }

    .hero-slider {
        min-height: 620px;
    }

    .hero-layer {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.52));
    }

    .hero-content {
        padding: 96px 0 88px;
    }

    .section,
    .section-soft {
        padding: 54px 0;
    }

    .section-heading {
        display: block;
    }

    .section-heading .link-arrow {
        display: inline-flex;
        margin-top: 14px;
    }

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

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

    .movie-card-body h2,
    .movie-card-body h3 {
        font-size: 17px;
    }

    .movie-one-line {
        min-height: auto;
        font-size: 14px;
    }

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

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

    .detail-copy,
    .detail-side-card {
        padding: 20px;
        border-radius: 22px;
    }

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

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

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

    .hero-actions {
        display: grid;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}
