:root {
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-soft: #fff7ed;
    --color-ink: #0f172a;
    --color-muted: #64748b;
    --color-line: #e2e8f0;
    --color-red: #dc2626;
    --color-orange: #ea580c;
    --shadow-soft: 0 18px 55px rgba(15, 23, 42, 0.10);
    --shadow-card: 0 14px 38px rgba(15, 23, 42, 0.08);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-ink);
    background: radial-gradient(circle at 8% 0%, rgba(254, 215, 170, 0.48), transparent 28rem), var(--color-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

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

img,
video {
    max-width: 100%;
}

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    backdrop-filter: blur(18px);
}

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

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

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-red), var(--color-orange));
    box-shadow: 0 12px 26px rgba(220, 38, 38, 0.28);
}

.brand-name {
    font-size: 21px;
    background: linear-gradient(135deg, var(--color-red), var(--color-orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link,
.mobile-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    color: #475569;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--color-red);
    background: #fff1f2;
}

.menu-button {
    width: 42px;
    height: 42px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border-radius: 12px;
    border: 1px solid var(--color-line);
    background: #ffffff;
    cursor: pointer;
}

.menu-button span {
    width: 20px;
    height: 2px;
    background: #334155;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    padding: 8px 24px 18px;
    border-top: 1px solid var(--color-line);
}

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

.mobile-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.mobile-cats a {
    padding: 7px 10px;
    border-radius: 999px;
    background: #f8fafc;
    color: #64748b;
    font-size: 13px;
}

.page-main {
    max-width: 1240px;
    margin: 0 auto;
    padding: 28px 24px 0;
}

.hero-carousel {
    position: relative;
    min-height: 590px;
    overflow: hidden;
    border-radius: 34px;
    padding: 56px;
    background:
        radial-gradient(circle at 78% 20%, rgba(251, 146, 60, 0.38), transparent 24rem),
        linear-gradient(135deg, #fff7ed 0%, #ffffff 45%, #fff1f2 100%);
    box-shadow: var(--shadow-soft);
}

.hero-halo {
    position: absolute;
    border-radius: 999px;
    filter: blur(5px);
    opacity: 0.62;
    pointer-events: none;
}

.hero-halo-one {
    right: 8%;
    top: 8%;
    width: 180px;
    height: 180px;
    background: rgba(251, 146, 60, 0.3);
}

.hero-halo-two {
    left: 4%;
    bottom: 10%;
    width: 140px;
    height: 140px;
    background: rgba(220, 38, 38, 0.18);
}

.hero-track {
    position: relative;
    z-index: 1;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.04fr) minmax(330px, 0.72fr);
    gap: 44px;
    align-items: center;
}

.hero-slide.is-active {
    display: grid;
    animation: fadeUp 0.55s ease both;
}

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

.eyebrow {
    margin: 0 0 12px;
    color: var(--color-red);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-copy h2 {
    margin: 18px 0 0;
    font-size: clamp(25px, 3.2vw, 42px);
    line-height: 1.16;
}

.hero-summary,
.page-hero p,
.lead-text {
    max-width: 720px;
    margin: 18px 0 0;
    color: #475569;
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

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

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-red), var(--color-orange));
    box-shadow: 0 12px 26px rgba(220, 38, 38, 0.22);
}

.btn-soft {
    color: var(--color-red);
    background: #fff1f2;
}

.btn-ghost {
    color: #334155;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

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

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

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

.hero-visual {
    position: relative;
    display: block;
    transform: rotate(2deg);
}

.hero-image-frame,
.poster-frame {
    position: relative;
    display: block;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(220, 38, 38, 0.16), rgba(251, 146, 60, 0.26)),
        linear-gradient(135deg, #f8fafc, #fff7ed);
}

.hero-image-frame {
    aspect-ratio: 3 / 4;
    border-radius: 30px;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.24);
}

.hero-image,
.poster-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.hero-glow,
.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(15, 23, 42, 0.72));
}

.hero-card-title {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 2;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    text-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.hero-control-row {
    position: absolute;
    z-index: 3;
    left: 52px;
    right: 52px;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-arrow {
    width: 40px;
    height: 40px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    border-radius: 999px;
    font-size: 28px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.2);
}

.hero-dot.is-active {
    width: 28px;
    background: linear-gradient(135deg, var(--color-red), var(--color-orange));
}

.hero-quick-links {
    position: absolute;
    right: 48px;
    bottom: 28px;
    z-index: 4;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 520px;
    gap: 8px;
}

.hero-quick-links a {
    padding: 8px 12px;
    color: #334155;
    background: rgba(255, 255, 255, 0.78);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.home-search-panel,
.filter-panel,
.page-hero,
.detail-hero,
.content-section {
    border: 1px solid rgba(226, 232, 240, 0.86);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
}

.home-search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(310px, 0.72fr);
    gap: 24px;
    align-items: center;
    margin-top: 24px;
    padding: 26px;
    border-radius: var(--radius-lg);
}

.home-search-panel h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.18;
}

.home-search-form {
    display: flex;
    gap: 10px;
    padding: 8px;
    background: #f8fafc;
    border: 1px solid var(--color-line);
    border-radius: 999px;
}

.home-search-form input {
    width: 100%;
    min-height: 46px;
    padding: 0 16px;
    border: 0;
    outline: 0;
    background: transparent;
}

.home-search-form button {
    min-width: 112px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-red), var(--color-orange));
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

.content-section {
    margin-top: 34px;
    padding: 30px;
    border-radius: var(--radius-lg);
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.18;
}

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

.section-action {
    flex: none;
    color: var(--color-red);
    font-weight: 900;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(248, 113, 113, 0.45);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
}

.poster-link {
    display: block;
}

.movie-card .poster-frame {
    aspect-ratio: 3 / 4;
    border-radius: 0;
}

.poster-year,
.rank-mark {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
}

.poster-year {
    top: 12px;
    right: 12px;
    min-width: 54px;
    height: 30px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    font-size: 13px;
}

.rank-mark {
    left: 12px;
    top: 12px;
    width: 36px;
    height: 36px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-red), var(--color-orange));
    box-shadow: 0 10px 22px rgba(220, 38, 38, 0.25);
}

.card-body {
    padding: 18px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #ef4444;
    font-size: 12px;
    font-weight: 800;
}

.card-meta span,
.card-meta a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    background: #fff7ed;
    border-radius: 999px;
}

.card-body h3 {
    margin: 12px 0 8px;
    font-size: 19px;
    line-height: 1.3;
}

.card-body h3 a:hover {
    color: var(--color-red);
}

.card-body p {
    min-height: 58px;
    margin: 0 0 14px;
    color: #64748b;
    font-size: 14px;
}

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

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

.category-tile {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 26px;
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.category-main-link {
    display: block;
    padding: 26px;
}

.category-kicker {
    color: var(--color-red);
    font-size: 13px;
    font-weight: 900;
}

.category-tile h2 {
    margin: 10px 0;
    font-size: 28px;
}

.category-tile p {
    margin: 0;
    color: var(--color-muted);
}

.category-tile strong {
    display: inline-flex;
    margin-top: 18px;
    color: var(--color-red);
}

.category-mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 26px 24px;
}

.category-mini-links a {
    padding: 6px 10px;
    color: #475569;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 42px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 88% 10%, rgba(251, 146, 60, 0.28), transparent 20rem),
        linear-gradient(135deg, #ffffff, #fff7ed);
}

.compact-hero h1,
.category-hero h1 {
    max-width: 820px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) repeat(4, minmax(150px, 0.5fr));
    gap: 14px;
    margin-top: 26px;
    padding: 18px;
    border-radius: 22px;
}

.filter-panel label {
    display: grid;
    gap: 7px;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--color-line);
    border-radius: 13px;
    color: #0f172a;
    background: #ffffff;
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: #fb7185;
    box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.13);
}

.empty-state {
    display: none;
    margin: 26px 0 0;
    padding: 20px;
    color: var(--color-muted);
    text-align: center;
    background: #f8fafc;
    border-radius: 18px;
}

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

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

.breadcrumb a:hover {
    color: var(--color-red);
}

.detail-cover {
    aspect-ratio: 3 / 4;
    border-radius: 26px;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.18);
}

.detail-copy h1 {
    font-size: clamp(34px, 5vw, 56px);
}

.detail-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.detail-meta-list span {
    padding: 8px 11px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
}

.detail-tags {
    margin-top: 20px;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 26px;
    background: #020617;
    box-shadow: 0 26px 70px rgba(2, 6, 23, 0.34);
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
    object-fit: contain;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    gap: 12px;
    color: #ffffff;
    border: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.34), rgba(2, 6, 23, 0.72));
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
}

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

.play-circle {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-red), var(--color-orange));
    box-shadow: 0 20px 45px rgba(220, 38, 38, 0.35);
    font-size: 34px;
}

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

.detail-content h2:not(:first-child) {
    margin-top: 26px;
}

.detail-content p {
    margin: 0;
    color: #475569;
    font-size: 17px;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--color-line);
    border-radius: 20px;
}

.rank-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
    background: #ffffff;
}

.rank-table th,
.rank-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-line);
    text-align: left;
}

.rank-table th {
    color: #475569;
    background: #f8fafc;
    font-size: 13px;
}

.rank-table td:first-child {
    color: var(--color-red);
    font-weight: 900;
}

.rank-table a {
    font-weight: 900;
}

.rank-table a:hover {
    color: var(--color-red);
}

.rank-row.is-hidden {
    display: none;
}

.site-footer {
    margin-top: 64px;
    color: #cbd5e1;
    background: #0f172a;
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 42px 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(200px, 0.7fr) minmax(180px, 0.5fr);
    gap: 34px;
}

.brand-footer .brand-name {
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: #ffffff;
}

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

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

.footer-links div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    color: #cbd5e1;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    padding: 18px 24px 28px;
    color: #94a3b8;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    font-size: 14px;
}

.is-hidden {
    display: none !important;
}

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

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

    .hero-quick-links {
        display: none;
    }
}

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

    .menu-button {
        display: inline-flex;
    }

    .page-main {
        padding: 18px 14px 0;
    }

    .hero-carousel,
    .page-hero,
    .detail-hero,
    .content-section {
        border-radius: 24px;
        padding: 24px;
    }

    .hero-carousel {
        min-height: 0;
    }

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

    .hero-control-row {
        position: static;
        margin-top: 22px;
    }

    .hero-visual {
        transform: none;
        max-width: 360px;
        margin: 0 auto;
    }

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

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .header-inner {
        height: 62px;
        padding: 0 14px;
    }

    .brand-icon {
        width: 38px;
        height: 38px;
    }

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

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

    .hero-copy h2 {
        font-size: 25px;
    }

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

    .home-search-form {
        border-radius: 18px;
        flex-direction: column;
    }

    .home-search-form button {
        min-height: 44px;
    }

    .card-body p {
        min-height: auto;
    }

    .player-wrap {
        border-radius: 18px;
    }

    .play-circle {
        width: 68px;
        height: 68px;
        font-size: 28px;
    }
}
