:root {
    --orange: #ea580c;
    --orange-dark: #c2410c;
    --red: #dc2626;
    --amber: #f97316;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #f8fafc;
    --paper: #ffffff;
    --dark: #111827;
    --shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
}

.header-inner {
    height: 68px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--orange);
    font-weight: 800;
    white-space: nowrap;
}

.brand-mark,
.footer-logo span {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(234, 88, 12, 0.28);
}

.brand-name {
    font-size: 22px;
    letter-spacing: -0.03em;
}

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

.nav-link,
.dropdown-toggle {
    height: 38px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: #374151;
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: 0.2s ease;
}

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

.nav-dropdown {
    position: relative;
}

.submenu {
    position: absolute;
    right: 0;
    top: 44px;
    width: 190px;
    padding: 10px;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.2s ease;
}

.nav-dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu-link {
    display: block;
    padding: 9px 12px;
    border-radius: 12px;
    color: #374151;
}

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

.top-search,
.mobile-search,
.big-search {
    display: flex;
    align-items: center;
}

.top-search input,
.mobile-search input,
.big-search input,
.filter-line input {
    border: 1px solid #d1d5db;
    outline: 0;
    color: #111827;
    background: #fff;
}

.top-search input {
    width: 230px;
    height: 40px;
    border-radius: 999px 0 0 999px;
    padding: 0 15px;
}

.top-search button,
.mobile-search button,
.big-search button {
    height: 40px;
    padding: 0 16px;
    border: 0;
    color: #fff;
    background: var(--orange);
    border-radius: 0 999px 999px 0;
    cursor: pointer;
    transition: 0.2s ease;
}

.top-search button:hover,
.mobile-search button:hover,
.big-search button:hover {
    background: var(--orange-dark);
}

.menu-button {
    display: none;
    margin-left: auto;
    border: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #fff7ed;
    color: var(--orange);
    cursor: pointer;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    padding: 14px 16px 18px;
    background: #fff;
}

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

.mobile-search input {
    flex: 1;
    min-width: 0;
    height: 42px;
    border-radius: 14px 0 0 14px;
    padding: 0 12px;
}

.mobile-search button {
    height: 42px;
    border-radius: 0 14px 14px 0;
}

.mobile-nav {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.mobile-link {
    padding: 11px 12px;
    border-radius: 12px;
    background: #f9fafb;
    color: #374151;
}

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

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: linear-gradient(120deg, #ea580c, #dc2626 62%, #7c2d12);
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    transition: opacity 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    z-index: 1;
}

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 26%, rgba(255, 255, 255, 0.18), transparent 26%),
        linear-gradient(90deg, rgba(124, 45, 18, 0.94), rgba(234, 88, 12, 0.78) 48%, rgba(17, 24, 39, 0.38));
}

.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: center;
    align-items: flex-start;
    color: #fff;
    padding: 90px 0 80px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--orange);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 13px;
}

.hero .eyebrow {
    color: #fed7aa;
    background: rgba(255, 255, 255, 0.14);
    padding: 7px 12px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.hero h1,
.hero h2 {
    max-width: 880px;
    margin: 18px 0 10px;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 0.96;
    letter-spacing: -0.055em;
    font-weight: 900;
}

.hero-title-link {
    margin: 0 0 14px;
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 800;
    color: #ffedd5;
}

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

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.primary-button,
.ghost-button,
.full-link,
.text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: 0.2s ease;
}

.primary-button {
    background: #fff;
    color: var(--orange);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
}

.primary-button:hover {
    transform: translateY(-2px) scale(1.02);
    background: #fff7ed;
}

.ghost-button {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.46);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

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

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

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

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

.quick-panel {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: -46px;
    position: relative;
    z-index: 4;
}

.quick-card,
.section-block,
.rank-panel,
.category-overview-card,
.player-card,
.detail-info,
.article-section {
    background: var(--paper);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(229, 231, 235, 0.8);
}

.quick-card {
    padding: 22px;
}

.quick-card strong {
    display: block;
    font-size: 20px;
    margin-bottom: 4px;
}

.quick-card span {
    color: var(--muted);
}

.section-block {
    margin-top: 34px;
    padding: 26px;
}

.section-head,
.category-overview-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-end;
    margin-bottom: 22px;
}

.section-head h2,
.category-overview-head h2,
.rank-panel h2,
.article-section h2 {
    margin: 4px 0 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-head a,
.text-button {
    color: var(--orange);
    font-weight: 800;
}

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

.category-card {
    min-height: 138px;
    padding: 20px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    position: relative;
    overflow: hidden;
    transition: 0.24s ease;
}

.category-card:after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    right: -34px;
    bottom: -44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 40px rgba(234, 88, 12, 0.24);
}

.category-card strong {
    display: block;
    font-size: 22px;
    margin-bottom: 12px;
}

.category-card span {
    color: #ffedd5;
    font-size: 14px;
}

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

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

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

.movie-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    transition: 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
    border-color: #fed7aa;
}

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

.poster-link img {
    height: 100%;
    object-fit: cover;
    transition: 0.3s ease;
}

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

.play-pill,
.rank-badge {
    position: absolute;
    border-radius: 999px;
    font-weight: 800;
    color: #fff;
    background: rgba(234, 88, 12, 0.92);
    backdrop-filter: blur(8px);
}

.play-pill {
    left: 12px;
    bottom: 12px;
    padding: 6px 10px;
    font-size: 13px;
}

.rank-badge {
    top: 12px;
    left: 12px;
    min-width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, #f59e0b, #dc2626);
}

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

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

.movie-meta span,
.detail-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #f3f4f6;
}

.movie-card h2 {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.25;
}

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

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

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

.tag-row span {
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--orange-dark);
    background: #fff7ed;
    font-size: 12px;
    font-weight: 700;
}

.rank-panel {
    padding: 22px;
}

.sticky-side,
.detail-side {
    position: sticky;
    top: 92px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    background: #f9fafb;
    transition: 0.2s ease;
}

.rank-row:hover {
    background: #fff7ed;
    color: var(--orange);
}

.rank-row span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    font-weight: 900;
    font-style: normal;
}

.rank-row strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-row em {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.full-link {
    width: 100%;
    margin-top: 16px;
    background: #fff7ed;
    color: var(--orange);
}

.full-link:hover {
    background: var(--orange);
    color: #fff;
}

.featured-wrap {
    padding-bottom: 50px;
}

.page-main {
    padding: 34px 0 60px;
}

.page-hero {
    padding: 42px;
    border-radius: 26px;
    color: #fff;
    background:
        radial-gradient(circle at right top, rgba(255, 255, 255, 0.16), transparent 30%),
        linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin: 8px 0 10px;
    max-width: 850px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

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

.page-hero .section-kicker {
    color: #fed7aa;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 16px;
    color: #fff7ed;
}

.detail-content .breadcrumb {
    color: var(--muted);
    margin-bottom: 20px;
}

.breadcrumb a:hover {
    color: #fed7aa;
}

.detail-content .breadcrumb a:hover {
    color: var(--orange);
}

.category-overview-list {
    display: grid;
    gap: 24px;
    margin-top: 24px;
}

.category-overview-card {
    padding: 26px;
}

.category-overview-head p {
    margin: 8px 0 0;
    color: var(--muted);
}

.filter-line {
    margin-bottom: 20px;
}

.filter-line input,
.big-search input {
    width: 100%;
    height: 48px;
    border-radius: 16px;
    padding: 0 15px;
}

.filter-line input:focus,
.top-search input:focus,
.mobile-search input:focus,
.big-search input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
}

.big-search {
    width: min(680px, 100%);
    margin-top: 26px;
}

.big-search input {
    border-radius: 18px 0 0 18px;
}

.big-search button {
    height: 48px;
    padding: 0 26px;
    border-radius: 0 18px 18px 0;
}

.empty-tip {
    padding: 20px;
    border-radius: 14px;
    color: var(--muted);
    background: #f9fafb;
}

.player-card {
    padding: 0;
    overflow: hidden;
    margin-bottom: 22px;
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #050505;
}

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #050505;
    cursor: pointer;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 0;
    color: #fff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.48));
    cursor: pointer;
    transition: 0.24s ease;
}

.player-overlay:hover {
    background: radial-gradient(circle, rgba(234, 88, 12, 0.16), rgba(0, 0, 0, 0.54));
}

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

.play-icon {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    padding-left: 5px;
    color: var(--orange);
    background: #fff;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
    font-size: 34px;
}

.player-overlay strong {
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.detail-info {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
    margin-bottom: 22px;
}

.detail-poster img {
    border-radius: 18px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: linear-gradient(135deg, #f97316, #991b1b);
}

.detail-text h1 {
    margin: 8px 0 12px;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.one-line {
    color: #374151;
    font-size: 18px;
}

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

.article-section {
    padding: 26px;
    margin-bottom: 22px;
}

.article-section p {
    margin: 14px 0 0;
    color: #374151;
    font-size: 17px;
}

.related-block {
    margin-top: 0;
}

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

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 21px;
    font-weight: 900;
    margin-bottom: 14px;
}

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

.site-footer p {
    margin: 0;
    color: #9ca3af;
}

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

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

.footer-bottom {
    border-top: 1px solid #1f2937;
    padding: 18px 16px;
    text-align: center;
    color: #9ca3af;
}

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

@media (max-width: 1080px) {
    .top-search {
        display: none;
    }

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

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

    .sticky-side,
    .detail-side {
        position: static;
    }

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

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

    .menu-button {
        display: inline-grid;
        place-items: center;
    }

    .hero {
        min-height: 560px;
    }

    .hero-content {
        padding-top: 76px;
    }

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

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

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

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

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

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

    .hero {
        min-height: 620px;
    }

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

    .hero-actions a {
        width: 100%;
    }

    .quick-panel,
    .category-grid,
    .movie-grid,
    .small-grid,
    .micro-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-block,
    .rank-panel,
    .category-overview-card,
    .page-hero,
    .article-section,
    .detail-info {
        padding: 20px;
        border-radius: 18px;
    }

    .page-main {
        padding-top: 20px;
    }

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

    .rank-row em {
        display: none;
    }
}
