:root {
    --orange: #ea580c;
    --orange-dark: #c2410c;
    --red: #dc2626;
    --red-dark: #991b1b;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --paper: #ffffff;
    --soft: #fff7ed;
    --dark: #111827;
    --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: #f9fafb;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #fff;
    background: linear-gradient(90deg, var(--orange), var(--red));
    box-shadow: 0 10px 30px rgba(153, 27, 27, 0.25);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-weight: 650;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.2s ease, transform 0.2s ease;
}

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

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #fff;
    border-radius: 2px;
}

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

.mobile-nav.open {
    display: grid;
    gap: 8px;
}

.mobile-link {
    display: block;
    padding: 10px 14px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.08);
}

.mobile-link.active,
.mobile-link:hover {
    background: rgba(255, 255, 255, 0.18);
}

.hero {
    position: relative;
    height: 620px;
    overflow: hidden;
    background: linear-gradient(135deg, #7c2d12, #991b1b);
}

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

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

.hero-bg,
.detail-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-shade,
.detail-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.5) 48%, rgba(124, 45, 18, 0.28));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 0 110px;
    color: #fff;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 14px;
    border-radius: 999px;
    color: #fff;
    background: var(--red);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.eyebrow {
    color: var(--orange-dark);
    background: #ffedd5;
}

.hero h1 {
    max-width: 780px;
    margin: 18px 0 14px;
    font-size: clamp(38px, 7vw, 70px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-subtitle {
    max-width: 760px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 19px;
}

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

.hero-meta span,
.detail-meta span {
    padding: 6px 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.hero-actions,
.highlight-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 12px;
    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: #fff;
    background: var(--orange);
    box-shadow: 0 14px 30px rgba(234, 88, 12, 0.35);
}

.btn-primary:hover {
    background: var(--orange-dark);
}

.btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.btn-soft {
    color: var(--orange-dark);
    background: #ffedd5;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
    font-size: 36px;
    line-height: 1;
    backdrop-filter: blur(12px);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

.hero-dot.active {
    width: 32px;
    background: #fff;
}

.hero-thumbs {
    position: absolute;
    right: max(24px, calc((100% - 1180px) / 2));
    bottom: 82px;
    z-index: 3;
    display: grid;
    gap: 10px;
    width: 245px;
}

.hero-thumb {
    display: grid;
    grid-template-columns: 64px 1fr;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 14px;
    color: #fff;
    background: rgba(17, 24, 39, 0.56);
    backdrop-filter: blur(14px);
}

.hero-thumb img {
    width: 64px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
}

.home-search {
    background: #fff;
    box-shadow: 0 12px 38px rgba(17, 24, 39, 0.08);
}

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

.home-search-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 28px 0;
}

.home-search h2,
.section-head h2,
.page-title-block h1,
.highlight-box h2,
.side-card h2,
.detail-text-card h2,
.player-section h2,
.category-card h2 {
    margin: 8px 0 0;
    line-height: 1.2;
}

.quick-search,
.search-row {
    display: flex;
    gap: 12px;
}

.quick-search input,
.search-row input,
.search-row select {
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    padding: 0 16px;
    outline: none;
}

.quick-search input {
    width: min(420px, 50vw);
}

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

.quick-search button {
    min-height: 48px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: var(--orange);
    padding: 0 24px;
    cursor: pointer;
    font-weight: 800;
}

.page-wrap {
    padding: 48px 0 64px;
}

.page-top {
    padding-top: 58px;
}

.content-section,
.category-strip,
.split-section,
.search-panel,
.page-title-block,
.player-section,
.detail-text-card,
.category-card,
.side-card,
.highlight-box {
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow);
}

.content-section,
.category-strip,
.search-panel,
.page-title-block,
.player-section,
.detail-text-card,
.category-card,
.side-card,
.highlight-box {
    padding: 28px;
}

.content-section + .content-section,
.category-strip + .content-section,
.split-section,
.search-panel + .movie-grid,
.page-title-block + .category-grid,
.page-title-block + .search-panel,
.detail-grid,
.prev-next,
.player-section + .detail-grid {
    margin-top: 32px;
}

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

.compact-head {
    margin-bottom: 18px;
}

.section-link,
.category-enter {
    color: var(--orange-dark);
    font-weight: 800;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pill-row a {
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--orange-dark);
    background: #ffedd5;
    font-weight: 800;
}

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

.large-grid {
    margin-top: 28px;
}

.movie-card {
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.1);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 45px rgba(17, 24, 39, 0.16);
}

.card-poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #7c2d12, #111827);
}

.card-poster img,
.rank-cover img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.32s ease;
}

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

.card-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 58%);
}

.play-hover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 42px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.movie-card:hover .play-hover {
    opacity: 1;
}

.poster-meta,
.rank-badge {
    position: absolute;
    z-index: 3;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.74);
    font-size: 12px;
    font-weight: 800;
}

.poster-meta {
    right: 10px;
    bottom: 10px;
    padding: 4px 8px;
}

.rank-badge {
    left: 10px;
    top: 10px;
    min-width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    background: var(--red);
}

.card-body {
    padding: 16px;
}

.card-category {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--orange-dark);
    background: #ffedd5;
    font-size: 12px;
    font-weight: 800;
}

.card-body h2 {
    min-height: 52px;
    margin: 12px 0 8px;
    font-size: 17px;
    line-height: 1.45;
}

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

.card-body p {
    min-height: 46px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 30px;
    margin-top: 12px;
}

.card-tags span {
    padding: 3px 8px;
    border-radius: 999px;
    color: #7c2d12;
    background: #fff7ed;
    font-size: 12px;
}

.card-foot {
    justify-content: space-between;
    margin-top: 14px;
    color: #6b7280;
    font-size: 13px;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 28px;
    background: transparent;
    box-shadow: none;
}

.highlight-box {
    color: #fff;
    background: radial-gradient(circle at top right, rgba(251, 146, 60, 0.55), transparent 38%), linear-gradient(135deg, #7c2d12, #991b1b);
}

.highlight-box .eyebrow {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

.highlight-box p {
    color: rgba(255, 255, 255, 0.86);
}

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

.compact-rank {
    padding: 0;
}

.rank-item {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

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

.rank-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 850;
}

.list-rank {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #fff;
    background: var(--orange);
    font-size: 12px;
}

.rank-content p {
    margin: 6px 0 8px;
    color: var(--muted);
    font-size: 14px;
}

.rank-meta {
    color: #6b7280;
    font-size: 13px;
}

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

.category-card {
    padding: 0;
    overflow: hidden;
}

.category-card-main {
    display: block;
    padding: 28px;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--red));
}

.category-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.category-card-main p {
    color: rgba(255, 255, 255, 0.88);
}

.category-enter {
    color: #fff;
}

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

.category-samples a {
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff7ed;
    color: #7c2d12;
    font-weight: 700;
}

.page-title-block {
    background: linear-gradient(135deg, #fff, #fff7ed);
}

.page-title-block h1 {
    font-size: clamp(32px, 5vw, 52px);
}

.page-title-block p {
    max-width: 850px;
    color: var(--muted);
    font-size: 17px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: #6b7280;
}

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

.breadcrumb.light {
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.78);
}

.breadcrumb.light a {
    color: #ffedd5;
}

.search-label {
    display: block;
    margin-bottom: 12px;
    color: var(--ink);
    font-weight: 850;
}

.search-row input {
    min-width: min(520px, 100%);
    flex: 1;
}

.detail-page {
    background: #f9fafb;
}

.detail-hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #fff;
    background: #111827;
}

.detail-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0 70px;
}

.detail-main {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 38px;
    align-items: end;
    margin-top: 46px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 3 / 4.1;
    background: linear-gradient(135deg, #7c2d12, #111827);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.detail-info h1 {
    margin: 18px 0 16px;
    font-size: clamp(34px, 5.5vw, 64px);
    line-height: 1.08;
}

.detail-one-line {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 19px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
}

.detail-tags a {
    padding: 7px 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

.detail-content {
    padding-top: 42px;
}

.player-widget {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 16 / 9;
    background: #050505;
}

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

.player-overlay-button {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    border: 0;
    color: #fff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.22));
    cursor: pointer;
}

.player-overlay-button span {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 14px 38px rgba(234, 88, 12, 0.38);
    font-size: 34px;
}

.player-overlay-button strong {
    font-size: 20px;
}

.player-widget.playing .player-overlay-button {
    display: none;
}

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

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

.info-list {
    display: grid;
    gap: 12px;
    margin: 16px 0 0;
}

.info-list div {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: #f9fafb;
}

.info-list dt {
    color: #6b7280;
    font-weight: 800;
}

.info-list dd {
    margin: 0;
}

.prev-next {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.prev-next a {
    padding: 12px 16px;
    border-radius: 14px;
    color: var(--orange-dark);
    background: #ffedd5;
    font-weight: 800;
}

.rank-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.side-column {
    display: grid;
    gap: 24px;
}

.mini-grid {
    display: grid;
    gap: 16px;
}

.mini-grid .movie-card {
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
}

.site-footer {
    color: #d1d5db;
    background: #111827;
}

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

.footer-brand {
    color: #fff;
    font-size: 20px;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 17px;
}

.site-footer p,
.site-footer ul {
    margin: 14px 0 0;
    padding: 0;
    color: #9ca3af;
}

.site-footer li {
    list-style: none;
    margin: 8px 0;
}

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

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

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

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

    .hero-thumbs {
        display: none;
    }

    .detail-main {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .rank-page-grid,
    .split-section,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

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

    .menu-button {
        display: block;
    }

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

    .hero {
        height: 560px;
    }

    .hero-content {
        padding-bottom: 84px;
    }

    .hero-arrow {
        display: none;
    }

    .home-search-inner,
    .section-head,
    .quick-search,
    .search-row,
    .prev-next {
        align-items: stretch;
        flex-direction: column;
    }

    .quick-search input {
        width: 100%;
    }

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

    .detail-main {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .detail-poster {
        max-width: 280px;
    }

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

@media (max-width: 560px) {
    .site-header-inner,
    .home-search-inner,
    .page-wrap,
    .detail-inner,
    .footer-grid {
        width: min(100% - 24px, 1180px);
    }

    .hero h1,
    .detail-info h1 {
        font-size: 34px;
    }

    .hero-meta span,
    .detail-meta span {
        font-size: 13px;
    }

    .content-section,
    .category-strip,
    .search-panel,
    .page-title-block,
    .player-section,
    .detail-text-card,
    .category-card-main,
    .side-card,
    .highlight-box {
        padding: 20px;
        border-radius: 18px;
    }

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

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

    .rank-item {
        grid-template-columns: 96px minmax(0, 1fr);
    }

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