:root {
    --brand: #f97316;
    --brand-dark: #dc2626;
    --ink: #111827;
    --muted: #6b7280;
    --panel: #ffffff;
    --line: #e5e7eb;
    --soft: #fff7ed;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

html {
    scroll-behavior: smooth;
}

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

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

button,
a,
input,
select,
textarea {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #ea580c 0%, #dc2626 100%);
    box-shadow: 0 10px 28px rgba(220, 38, 38, 0.28);
}

.nav-shell {
    max-width: 1180px;
    min-height: 64px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-weight: 800;
    font-size: 20px;
    text-decoration: none;
    white-space: nowrap;
}

.logo-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-current {
    color: #ffedd5;
    transform: translateY(-1px);
}

.nav-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-search input,
.mobile-search input,
.filter-bar input {
    border: 0;
    outline: 0;
    color: #111827;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 999px;
    padding: 10px 16px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

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

.nav-search button,
.mobile-search button,
.primary-button,
.secondary-button,
.hero-cta,
.player-start {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    color: #ffffff;
    background: var(--brand);
    padding: 10px 18px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.28);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button {
    background: rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

.primary-button:hover,
.secondary-button:hover,
.hero-cta:hover,
.player-start:hover,
.nav-search button:hover,
.mobile-search button:hover {
    transform: translateY(-2px) scale(1.02);
    background: #ea580c;
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.35);
}

.menu-button {
    display: none;
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 22px;
}

.mobile-menu {
    display: none;
    padding: 10px 20px 20px;
    background: #c2410c;
}

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

.mobile-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    padding: 8px 0;
}

.mobile-search input {
    width: 100%;
    flex: 1;
}

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

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.62) 45%, rgba(0, 0, 0, 0.1) 100%);
}

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

.hero-copy {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    color: #ffffff;
}

.hero-copy-inner {
    width: min(650px, 100%);
}

.hero-label {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--brand);
    color: #ffffff;
    padding: 8px 16px;
    font-weight: 800;
    margin-bottom: 18px;
    box-shadow: 0 10px 26px rgba(249, 115, 22, 0.4);
}

.hero h1,
.hero h2 {
    margin: 0 0 16px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero p {
    margin: 0 0 26px;
    color: #e5e7eb;
    font-size: 18px;
    line-height: 1.8;
}

.hero-meta,
.detail-meta,
.card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-meta {
    margin-bottom: 30px;
    color: #ffffff;
}

.hero-meta span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    padding: 8px 13px;
    font-weight: 700;
}

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

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

.hero-control {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.24);
    display: grid;
    place-items: center;
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
    background: rgba(255, 255, 255, 0.38);
    transform: translateY(-50%) scale(1.08);
}

.hero-control.prev {
    left: 22px;
}

.hero-control.next {
    right: 22px;
}

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

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

.hero-dots button.is-active {
    width: 34px;
    background: #ffffff;
}

.page-shell,
.home-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.home-shell {
    padding: 58px 0 72px;
}

.page-shell {
    padding: 46px 0 72px;
}

.section-block {
    margin-bottom: 64px;
}

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

.section-title {
    margin: 0;
    color: #111827;
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-subtitle {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.section-more {
    color: var(--brand);
    text-decoration: none;
    font-weight: 800;
    white-space: nowrap;
}

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

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

.movie-card {
    display: block;
    min-width: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
    position: relative;
    display: block;
    height: 248px;
    overflow: hidden;
    background: #111827;
}

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

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

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.7) 100%);
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-wrap::after {
    opacity: 1;
}

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

.play-float {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: var(--brand);
    border-radius: 999px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.65);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.card-body strong {
    min-height: 3em;
    color: #111827;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 900;
    transition: color 0.2s ease;
}

.movie-card:hover .card-body strong {
    color: var(--brand);
}

.card-desc {
    color: #4b5563;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.card-tags span {
    color: #ea580c;
    background: #ffedd5;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 700;
}

.card-meta {
    color: #6b7280;
    font-size: 14px;
    justify-content: space-between;
}

.movie-card-list {
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: stretch;
}

.movie-card-list .poster-wrap {
    height: 150px;
}

.movie-card-list .card-body strong {
    min-height: auto;
}

.list-stack {
    display: grid;
    gap: 18px;
}

.highlight-panel {
    border-radius: 28px;
    padding: 30px;
    background: linear-gradient(135deg, #fff7ed 0%, #fee2e2 100%);
}

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

.highlight-panel.purple {
    background: linear-gradient(135deg, #faf5ff 0%, #fdf2f8 100%);
}

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

.category-card {
    display: grid;
    min-height: 210px;
    align-content: space-between;
    color: #ffffff;
    text-decoration: none;
    border-radius: 26px;
    padding: 26px;
    background: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
    box-shadow: 0 18px 40px rgba(220, 38, 38, 0.18);
    overflow: hidden;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:nth-child(2n) {
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
}

.category-card:nth-child(3n) {
    background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
}

.category-card::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -65px;
    bottom: -80px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

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

.category-card h2,
.category-card h3 {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 900;
}

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.8;
}

.category-card span {
    position: relative;
    z-index: 2;
    font-weight: 900;
}

.page-hero {
    border-radius: 30px;
    padding: 42px;
    color: #ffffff;
    background: radial-gradient(circle at top right, rgba(255, 237, 213, 0.25), transparent 34%), linear-gradient(135deg, #111827 0%, #7f1d1d 45%, #ea580c 100%);
    box-shadow: var(--shadow);
    margin-bottom: 38px;
}

.page-hero h1 {
    margin: 8px 0 14px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.04em;
}

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

.eyebrow {
    display: inline-flex;
    color: #fed7aa;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 26px 0 0;
}

.filter-bar input {
    width: min(440px, 100%);
}

.empty-state {
    display: none;
    margin: 30px 0;
    padding: 24px;
    border-radius: 18px;
    background: #ffffff;
    color: #6b7280;
    text-align: center;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

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

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

.ranking-item {
    display: grid;
    grid-template-columns: 62px 118px 1fr;
    gap: 18px;
    align-items: center;
    color: inherit;
    text-decoration: none;
    background: #ffffff;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.rank-number {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
    border-radius: 16px;
    font-size: 20px;
    font-weight: 950;
}

.ranking-item img {
    width: 118px;
    height: 78px;
    object-fit: cover;
    border-radius: 14px;
}

.ranking-copy {
    display: grid;
    gap: 8px;
}

.ranking-copy strong {
    color: #111827;
    font-size: 18px;
    font-weight: 900;
}

.ranking-copy span {
    color: #4b5563;
    line-height: 1.6;
}

.ranking-copy em {
    color: #f97316;
    font-style: normal;
    font-weight: 800;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: #6b7280;
    margin-bottom: 22px;
}

.breadcrumb a {
    color: #ea580c;
    text-decoration: none;
    font-weight: 800;
}

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

.player-panel,
.detail-panel,
.side-panel {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.1);
    overflow: hidden;
}

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

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-start {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    font-size: 18px;
}

.detail-panel {
    padding: 30px;
    margin-top: 24px;
}

.detail-panel h1 {
    margin: 0 0 16px;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.detail-meta span {
    color: #9a3412;
    background: #ffedd5;
}

.detail-section {
    margin-top: 28px;
}

.detail-section h2,
.side-panel h2 {
    margin: 0 0 14px;
    font-size: 24px;
    font-weight: 900;
}

.detail-section p {
    margin: 0;
    color: #374151;
    line-height: 1.9;
    font-size: 17px;
}

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

.tag-list span {
    border-radius: 999px;
    color: #ea580c;
    background: #ffedd5;
    padding: 7px 11px;
    font-weight: 800;
}

.side-panel {
    padding: 22px;
}

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

.side-poster img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

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

.related-link {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 12px;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.related-link img {
    width: 78px;
    height: 56px;
    object-fit: cover;
    border-radius: 12px;
}

.related-link strong {
    display: block;
    color: #111827;
    line-height: 1.35;
}

.related-link span {
    color: #ea580c;
    font-size: 13px;
    font-weight: 800;
}

.prev-next {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.prev-next a {
    color: #ea580c;
    background: #fff7ed;
    border-radius: 16px;
    padding: 16px;
    text-decoration: none;
    font-weight: 900;
}

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

.footer-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 42px;
}

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

.footer-brand p {
    color: #9ca3af;
    line-height: 1.8;
    margin: 0;
}

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

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

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
}

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

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

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

    .menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

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

    .side-poster img {
        height: 360px;
    }
}

@media (max-width: 720px) {
    .nav-shell {
        padding: 0 16px;
    }

    .site-logo span:last-child {
        max-width: 168px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero {
        height: 620px;
    }

    .hero-copy {
        width: calc(100% - 32px);
    }

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

    .hero-control {
        display: none;
    }

    .page-shell,
    .home-shell,
    .footer-shell,
    .footer-bottom {
        width: calc(100% - 32px);
    }

    .home-shell,
    .page-shell {
        padding-top: 34px;
    }

    .page-hero {
        padding: 28px;
        border-radius: 24px;
    }

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

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

    .movie-card-list {
        grid-template-columns: 130px 1fr;
    }

    .movie-card-list .poster-wrap {
        height: 160px;
    }

    .poster-wrap {
        height: 300px;
    }

    .ranking-item {
        grid-template-columns: 48px 82px 1fr;
        gap: 12px;
    }

    .rank-number {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 16px;
    }

    .ranking-item img {
        width: 82px;
        height: 62px;
    }

    .ranking-copy span {
        display: none;
    }

    .detail-panel,
    .side-panel {
        padding: 20px;
    }

    .prev-next {
        grid-template-columns: 1fr;
    }

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