:root {
    --bg: #f9fafb;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --orange: #ea580c;
    --orange-dark: #c2410c;
    --red: #dc2626;
    --blue: #2563eb;
    --pink: #db2777;
    --shadow: 0 14px 38px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    backdrop-filter: blur(18px);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 18px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.logo-mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #dc2626);
    color: #ffffff;
    font-size: 14px;
    box-shadow: 0 10px 24px rgba(234, 88, 12, 0.3);
}

.nav-panel {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex: 1;
}

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

.nav-link {
    padding: 10px 12px;
    border-radius: 999px;
    color: #4b5563;
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--orange);
    background: #fff7ed;
}

.nav-link-soft {
    display: none;
}

.nav-search {
    display: flex;
    align-items: center;
    width: min(280px, 30vw);
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: #ffffff;
}

.nav-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 10px 12px;
    color: #374151;
}

.nav-search button {
    border: 0;
    padding: 10px 14px;
    background: linear-gradient(135deg, #f97316, #dc2626);
    color: #ffffff;
    font-weight: 700;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #fff7ed;
    color: var(--orange);
    font-size: 22px;
}

.hero-carousel {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #000000;
}

.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;
    transform: scale(1.03);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.16)), linear-gradient(0deg, #000000, transparent 48%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 72px;
}

.hero-copy {
    max-width: 760px;
    color: #ffffff;
}

.hero-kicker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.hero-kicker span:first-child {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #dc2626;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
}

.hero-kicker span:last-child {
    color: #fed7aa;
    font-size: 14px;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-weight: 900;
}

.hero-copy h2 + p,
.hero-copy h1 + h2 + p {
    margin-top: 0;
}

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

.hero-tags,
.movie-tags,
.tag-row,
.genre-row,
.label-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span {
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 13px;
    backdrop-filter: blur(10px);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    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 {
    background: linear-gradient(135deg, #f97316, #dc2626);
    color: #ffffff;
    box-shadow: 0 16px 32px rgba(220, 38, 38, 0.3);
}

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

.btn-link {
    color: #fed7aa;
}

.hero-dots {
    position: absolute;
    right: max(32px, calc((100% - 1180px) / 2));
    bottom: 38px;
    z-index: 5;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: #f97316;
}

.search-band {
    transform: translateY(-28px);
    position: relative;
    z-index: 12;
}

.search-band form,
.search-page-form {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.search-band input,
.search-page-form input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 16px;
    outline: 0;
}

.search-band button,
.search-page-form button {
    border: 0;
    border-radius: 16px;
    padding: 0 24px;
    background: linear-gradient(135deg, #f97316, #dc2626);
    color: #ffffff;
    font-weight: 800;
}

.page-section {
    padding: 42px 0;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--orange);
    font-weight: 800;
}

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

.category-card,
.category-overview-card a {
    position: relative;
    display: flex;
    min-height: 210px;
    overflow: hidden;
    border-radius: var(--radius);
    color: #ffffff;
    box-shadow: var(--soft-shadow);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    transition: transform 0.5s ease;
}

.category-card:hover img,
.category-overview-card:hover img {
    transform: scale(1.08);
}

.category-card div {
    position: relative;
    z-index: 2;
    align-self: flex-end;
    padding: 20px;
}

.category-card h3,
.category-overview-card h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 900;
}

.category-card p,
.category-overview-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.from-orange {
    background: linear-gradient(135deg, #f97316, #dc2626);
}

.from-blue {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.from-purple {
    background: linear-gradient(135deg, #7c3aed, #db2777);
}

.from-green {
    background: linear-gradient(135deg, #16a34a, #14b8a6);
}

.from-pink {
    background: linear-gradient(135deg, #db2777, #f97316);
}

.from-rose {
    background: linear-gradient(135deg, #e11d48, #fb7185);
}

.from-red {
    background: linear-gradient(135deg, #dc2626, #991b1b);
}

.from-cyan {
    background: linear-gradient(135deg, #0891b2, #0f766e);
}

.from-indigo {
    background: linear-gradient(135deg, #4f46e5, #2563eb);
}

.from-slate {
    background: linear-gradient(135deg, #334155, #0f172a);
}

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

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

.movie-card {
    min-width: 0;
}

.movie-card a {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card a:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.poster-box {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #111827;
}

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

.movie-card a:hover .poster-box img {
    transform: scale(1.1);
}

.poster-mask {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.18), transparent);
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card a:hover .poster-mask {
    opacity: 1;
}

.poster-mask p {
    margin: 0;
    font-size: 13px;
}

.poster-badges {
    position: absolute;
    left: 10px;
    top: 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 7px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.badge-hot {
    background: #dc2626;
}

.badge-dark {
    background: rgba(0, 0, 0, 0.68);
}

.play-chip {
    position: absolute;
    right: 10px;
    top: 10px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #f97316;
    color: #ffffff;
    opacity: 0;
    transform: scale(0.86);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.movie-card-body h3 {
    margin: 0 0 8px;
    overflow: hidden;
    color: #111827;
    font-size: 16px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

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

.movie-meta,
.rank-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}

.movie-tags {
    margin-top: 10px;
}

.movie-tags span,
.tag-row span,
.genre-row span,
.label-row span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #fff7ed;
    color: #ea580c;
    font-size: 12px;
    font-weight: 700;
}

.panel-orange,
.panel-blue {
    border-radius: 30px;
    padding: 34px;
}

.panel-orange {
    background: linear-gradient(135deg, #fff7ed, #fef2f2);
}

.panel-blue {
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

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

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

.rank-card a {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 16px;
    height: 100%;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-card a:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.rank-card img {
    width: 92px;
    height: 124px;
    border-radius: 14px;
    object-fit: cover;
}

.rank-card h3 {
    margin: 4px 0 6px;
    font-size: 17px;
    font-weight: 900;
}

.rank-card p {
    display: -webkit-box;
    margin: 0 0 10px;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.rank-number {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    height: 28px;
    padding: 0 8px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f97316, #dc2626);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

.sub-hero {
    padding: 74px 0;
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #374151);
}

.sub-hero span {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 13px;
    font-weight: 800;
}

.sub-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.sub-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

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

.category-overview-card {
    min-width: 0;
}

.category-overview-card a {
    min-height: 260px;
    align-items: stretch;
}

.category-overview-images {
    position: relative;
    width: 42%;
    min-width: 180px;
    overflow: hidden;
}

.category-overview-images img {
    position: absolute;
    width: 58%;
    height: 78%;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
    transition: transform 0.4s ease;
}

.category-overview-images img:first-child {
    left: 18px;
    bottom: 18px;
    z-index: 2;
}

.category-overview-images img:last-child {
    right: 18px;
    top: 18px;
    opacity: 0.76;
}

.category-overview-card a > div:last-child {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
}

.category-overview-card span:last-child {
    margin-top: 18px;
    color: #ffffff;
    font-weight: 900;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px;
    gap: 12px;
    margin-bottom: 24px;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    background: #ffffff;
    outline: 0;
}

.detail-page {
    padding: 30px 0 10px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.85fr);
    gap: 24px;
    align-items: start;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #000000;
    box-shadow: var(--shadow);
}

.movie-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.play-trigger {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.1));
    color: #ffffff;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-trigger span {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #dc2626);
    box-shadow: 0 20px 42px rgba(220, 38, 38, 0.35);
    font-size: 34px;
    transform: translateX(3px);
}

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

.detail-info-card,
.side-card,
.side-poster {
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.detail-info-card {
    margin-top: 22px;
    padding: 28px;
}

.detail-info-card h1 {
    margin: 18px 0 12px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.detail-info-card h2,
.side-card h2 {
    margin: 26px 0 10px;
    font-size: 22px;
    font-weight: 900;
}

.detail-info-card p {
    margin: 0 0 16px;
    color: #374151;
    font-size: 16px;
}

.lead-text {
    color: #111827 !important;
    font-size: 19px !important;
    font-weight: 700;
}

.label-row span {
    background: #eff6ff;
    color: #1d4ed8;
}

.label-row .label-hot {
    background: linear-gradient(135deg, #f97316, #dc2626);
    color: #ffffff;
}

.genre-row,
.tag-row {
    margin: 16px 0;
}

.side-poster {
    overflow: hidden;
    margin-bottom: 20px;
}

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

.side-card {
    padding: 22px;
}

.side-card h2 {
    margin-top: 0;
}

.side-card dl {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 10px 12px;
    margin: 0;
}

.side-card dt {
    color: var(--muted);
}

.side-card dd {
    margin: 0;
    font-weight: 800;
}

.side-card a {
    color: var(--orange);
}

.site-footer {
    margin-top: 42px;
    background: #111827;
    color: #9ca3af;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 34px;
    padding: 46px 0 30px;
}

.footer-logo {
    margin-bottom: 14px;
    color: #ffffff;
}

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

.site-footer p {
    max-width: 520px;
    margin: 0;
}

.site-footer ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 0;
    text-align: center;
    color: #6b7280;
}

.search-empty {
    grid-column: 1 / -1;
    padding: 34px;
    border-radius: 22px;
    background: #ffffff;
    color: var(--muted);
    text-align: center;
    box-shadow: var(--soft-shadow);
}

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

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

    .rank-grid,
    .ranking-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav-link-soft {
        display: inline-flex;
    }

    .nav-search {
        width: 220px;
    }
}

@media (max-width: 860px) {
    .nav-toggle {
        display: inline-grid;
        place-items: center;
    }

    .nav-panel {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: #ffffff;
        box-shadow: var(--shadow);
    }

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

    .main-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-link {
        width: 100%;
    }

    .nav-search {
        width: 100%;
    }

    .hero-carousel {
        height: 560px;
    }

    .hero-gradient {
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.34));
    }

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

    .hero-dots {
        left: 16px;
        right: auto;
        bottom: 28px;
    }

    .search-band form,
    .search-page-form,
    .filter-panel {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .category-grid,
    .category-overview-grid,
    .movie-grid,
    .six-grid,
    .rank-grid,
    .ranking-list,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .category-overview-card a {
        flex-direction: column;
    }

    .category-overview-images {
        width: 100%;
        height: 210px;
    }
}

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

    .hero-carousel {
        height: 540px;
    }

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

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

    .btn {
        width: 100%;
    }

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

    .panel-orange,
    .panel-blue,
    .detail-info-card {
        padding: 20px;
    }

    .rank-card a {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .rank-card img {
        width: 78px;
        height: 108px;
    }
}
