:root {
    color-scheme: light;
    --brand: #ea580c;
    --brand-dark: #c2410c;
    --brand-soft: #ffedd5;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --page: #f9fafb;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #fff7ed 0, var(--page) 360px, #f3f4f6 100%);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: linear-gradient(90deg, #ea580c, #f97316);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(194, 65, 12, 0.28);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.logo-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 700;
}

.nav-links a {
    opacity: 0.96;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-links a:hover {
    color: #ffedd5;
    opacity: 1;
}

.header-search,
.hero-search,
.page-search {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search input,
.hero-search input,
.page-search input {
    width: 220px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    outline: none;
    padding: 10px 46px 10px 16px;
    font: inherit;
}

.header-search input::placeholder,
.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.header-search button,
.hero-search button,
.page-search button {
    position: absolute;
    right: 6px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: #ffffff;
    color: var(--brand);
    font-weight: 900;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(154, 52, 18, 0.32);
    font-size: 24px;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

.mobile-panel a {
    display: block;
    padding: 11px 0;
    font-weight: 700;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.site-main {
    min-height: 65vh;
}

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

.hero-slides {
    position: relative;
    min-height: 560px;
}

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

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

.hero-image {
    width: 100%;
    height: 100%;
    min-height: 560px;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.62) 44%, rgba(17, 24, 39, 0.2)), linear-gradient(0deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.1) 58%);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 76px;
}

.hero-copy {
    width: min(720px, 100%);
    color: #ffffff;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--brand);
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(234, 88, 12, 0.34);
}

.hero h1,
.hero h2 {
    margin: 18px 0 14px;
    max-width: 820px;
    font-size: clamp(34px, 7vw, 62px);
    line-height: 1.06;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 700px;
    margin: 0 0 24px;
    color: #e5e7eb;
    font-size: 18px;
    line-height: 1.82;
}

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

.primary-button,
.secondary-button,
.card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    background: var(--brand);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(234, 88, 12, 0.32);
}

.primary-button:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
}

.secondary-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(12px);
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-2px);
}

.hero-search {
    margin-top: 24px;
    width: min(430px, 100%);
}

.hero-search input {
    width: 100%;
    height: 48px;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.48);
    color: #ffffff;
    cursor: pointer;
    font-size: 24px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.72);
    transform: translateY(-50%) scale(1.06);
}

.hero-prev {
    left: 24px;
    transform: translateY(-50%);
}

.hero-next {
    right: 24px;
    transform: translateY(-50%);
}

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

.hero-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

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

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

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

.section-title,
.page-title {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-desc,
.page-desc {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    line-height: 1.82;
}

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

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

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

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.14);
}

.movie-cover-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #fed7aa, #f97316);
}

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

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

.movie-badge,
.movie-type {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.64);
    backdrop-filter: blur(10px);
}

.movie-badge {
    top: 12px;
    right: 12px;
}

.movie-type {
    left: 12px;
    bottom: 12px;
}

.movie-body {
    padding: 18px;
}

.movie-body h3 {
    min-height: 54px;
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 900;
}

.movie-body h3 a:hover {
    color: var(--brand);
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 13px;
}

.movie-summary {
    min-height: 66px;
    margin: 0 0 14px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.58;
}

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

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 12px;
    font-weight: 700;
}

.card-button {
    min-height: 36px;
    margin-top: 14px;
    padding: 0 16px;
    color: var(--brand);
    background: #fff7ed;
}

.card-button:hover {
    color: #ffffff;
    background: var(--brand);
}

.category-band {
    padding: 34px;
    border-radius: 24px;
    background: linear-gradient(90deg, #fff7ed, #fffbeb);
    box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.18);
}

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

.category-card {
    min-height: 168px;
    padding: 22px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}

.category-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 21px;
    color: var(--ink);
}

.category-card span {
    color: var(--muted);
    line-height: 1.68;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 56px 92px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ea580c);
    font-size: 18px;
    font-weight: 900;
}

.rank-cover {
    overflow: hidden;
    width: 92px;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    background: #fed7aa;
}

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

.rank-info h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 900;
}

.rank-info p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.page-hero {
    padding: 48px 0;
    background: linear-gradient(90deg, #ea580c, #f97316);
    color: #ffffff;
}

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

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.12;
    font-weight: 900;
}

.page-hero p {
    max-width: 800px;
    margin: 0;
    color: #ffedd5;
    font-size: 18px;
    line-height: 1.75;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 18px;
    margin-bottom: 26px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.page-search input {
    width: min(360px, 78vw);
    border-color: #d1d5db;
    background: #ffffff;
    color: var(--ink);
}

.page-search input::placeholder {
    color: #9ca3af;
}

.filter-chip {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    cursor: pointer;
    font-weight: 800;
}

.filter-chip.is-active,
.filter-chip:hover {
    color: #ffffff;
    background: var(--brand);
}

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

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumbs a:hover {
    color: var(--brand);
}

.player-card,
.detail-card,
.sidebar-card {
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.player-card {
    overflow: hidden;
    margin-bottom: 22px;
    background: #000000;
}

.player-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.45);
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
}

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

.play-button {
    position: relative;
    z-index: 6;
    width: 84px;
    height: 84px;
    border: 0;
    border-radius: 999px;
    background: var(--brand);
    color: #ffffff;
    cursor: pointer;
    font-size: 34px;
    box-shadow: 0 18px 44px rgba(234, 88, 12, 0.36);
    transition: transform 0.2s ease, background 0.2s ease;
}

.play-button:hover {
    transform: scale(1.08);
    background: var(--brand-dark);
}

.detail-card {
    padding: 26px;
}

.detail-card h1 {
    margin: 0 0 14px;
    font-size: clamp(28px, 5vw, 44px);
    line-height: 1.2;
    font-weight: 900;
}

.detail-card h2,
.sidebar-card h2 {
    margin: 28px 0 12px;
    font-size: 23px;
    font-weight: 900;
}

.detail-card p {
    color: #374151;
    line-height: 1.86;
}

.info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.info-item {
    padding: 12px 14px;
    border-radius: 14px;
    background: #f9fafb;
    color: #374151;
}

.info-item strong {
    color: var(--ink);
}

.sidebar-card {
    position: sticky;
    top: 86px;
    padding: 18px;
}

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

.side-item {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 12px;
    align-items: center;
}

.side-item img {
    width: 88px;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    object-fit: cover;
    background: #fed7aa;
}

.side-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.45;
}

.side-item span {
    color: var(--muted);
    font-size: 12px;
}

.side-item:hover strong {
    color: var(--brand);
}

.empty-result {
    display: none;
    padding: 24px;
    border-radius: 18px;
    background: #ffffff;
    color: var(--muted);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

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

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

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 38px 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 30px;
}

.footer-inner strong {
    display: block;
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 20px;
}

.footer-inner p,
.footer-inner a {
    color: #9ca3af;
    line-height: 1.75;
}

.footer-inner a:hover {
    color: #fed7aa;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 26px;
    border-top: 1px solid #1f2937;
    color: #9ca3af;
    text-align: center;
}

@media (max-width: 1024px) {
    .header-search,
    .nav-links {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .hero-arrow {
        display: none;
    }

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

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

    .sidebar-card {
        position: static;
    }
}

@media (max-width: 760px) {
    .header-inner {
        height: 60px;
    }

    .logo {
        font-size: 18px;
    }

    .hero,
    .hero-slides,
    .hero-image {
        min-height: 610px;
    }

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

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

    .section-header,
    .page-heading {
        display: block;
    }

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

    .movie-body {
        padding: 14px;
    }

    .movie-body h3 {
        min-height: auto;
        font-size: 16px;
    }

    .rank-row {
        grid-template-columns: 44px 76px 1fr;
    }

    .rank-row .primary-button {
        grid-column: 2 / -1;
        justify-self: start;
    }

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

    .info-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .movie-grid,
    .movie-grid.compact,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-band {
        padding: 22px;
    }

    .hero-actions {
        display: grid;
    }

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