:root {
    --bg: #fff7ed;
    --bg-soft: #f0fdfa;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(148, 163, 184, 0.28);
    --card: rgba(255, 255, 255, 0.92);
    --orange: #f97316;
    --orange-dark: #ea580c;
    --cyan: #06b6d4;
    --cyan-dark: #0891b2;
    --dark: #111827;
    --shadow: 0 20px 55px rgba(15, 23, 42, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 12% 8%, rgba(249, 115, 22, 0.16), transparent 34%),
        radial-gradient(circle at 88% 4%, rgba(6, 182, 212, 0.18), transparent 30%),
        linear-gradient(135deg, #fff7ed 0%, #ffffff 52%, #ecfeff 100%);
}

body.menu-open {
    overflow: hidden;
}

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

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

main {
    min-height: 70vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    border-bottom: 1px solid rgba(255, 255, 255, 0.64);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(22px);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}

.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    min-height: 76px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 26px;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--orange), var(--cyan));
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.28);
}

.brand-name {
    font-size: 24px;
    background: linear-gradient(135deg, var(--orange-dark), var(--cyan-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link,
.mobile-link {
    font-weight: 700;
    color: #4b5563;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: var(--orange);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
}

.nav-search input,
.mobile-search input,
.filter-bar input {
    min-width: 220px;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    font-size: 14px;
}

.nav-search button,
.mobile-search button,
.btn,
.filter-bar a {
    border: 0;
    cursor: pointer;
    white-space: nowrap;
    border-radius: 999px;
    padding: 10px 18px;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--orange), var(--cyan));
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.nav-search button:hover,
.mobile-search button:hover,
.btn:hover,
.filter-bar a:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(6, 182, 212, 0.25);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    color: #fff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--orange), var(--cyan));
    font-size: 22px;
}

.mobile-menu {
    display: none;
    padding: 18px 22px 24px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
}

.mobile-search {
    margin-top: 16px;
    display: flex;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 20px;
}

.hero {
    position: relative;
    max-width: 1240px;
    min-height: 620px;
    margin: 28px auto 0;
    overflow: hidden;
    border-radius: 36px;
    background: var(--dark);
    box-shadow: var(--shadow);
}

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

.hero-slide {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.56fr);
    gap: 42px;
    align-items: center;
    padding: 58px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.5s ease, transform 0.6s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.hero-bg,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-bg {
    opacity: 0.32;
    filter: blur(3px) saturate(1.24);
    transform: scale(1.06);
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.72) 48%, rgba(17, 24, 39, 0.48)),
        radial-gradient(circle at 20% 18%, rgba(249, 115, 22, 0.46), transparent 36%),
        radial-gradient(circle at 82% 18%, rgba(6, 182, 212, 0.38), transparent 34%);
}

.hero-content,
.hero-poster {
    position: relative;
    z-index: 2;
}

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

.hero h1 {
    margin: 18px 0 12px;
    max-width: 820px;
    color: #fff;
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.03;
    letter-spacing: -0.06em;
}

.hero h2 {
    margin: 0 0 18px;
    color: #fed7aa;
    font-size: clamp(24px, 3.2vw, 42px);
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.78;
}

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

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

.hero-tags span,
.detail-meta span,
.row-meta span,
.card-meta span {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 7px 12px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.11);
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

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

.btn-ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.hero-poster {
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 30px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
    transform: rotate(2deg);
    transition: transform 0.25s ease;
}

.hero-poster:hover {
    transform: rotate(0deg) translateY(-6px);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: #111827;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    font-size: 36px;
    line-height: 1;
    transform: translateY(-50%);
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

.hero-dots {
    position: absolute;
    left: 58px;
    bottom: 36px;
    z-index: 4;
    display: flex;
    gap: 10px;
}

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

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

.content-section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 72px 22px 0;
}

.soft-section {
    max-width: none;
    margin-top: 72px;
    padding: 72px max(22px, calc((100vw - 1240px) / 2 + 22px));
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.52), rgba(236, 254, 255, 0.7));
}

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

.single-heading {
    align-items: flex-start;
}

.section-heading h2,
.page-hero h1,
.detail-info h1,
.movie-article h2 {
    margin: 8px 0 10px;
    color: #111827;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.05em;
}

.section-heading p,
.page-hero p {
    margin: 0;
    max-width: 720px;
    color: var(--muted);
    line-height: 1.8;
}

.section-more {
    color: var(--orange-dark);
    font-weight: 900;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.09);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(249, 115, 22, 0.36);
    box-shadow: 0 24px 48px rgba(249, 115, 22, 0.14);
}

.card-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(6, 182, 212, 0.2));
}

.card-poster img,
.row-poster img,
.detail-poster img,
.hero-poster img {
    transition: transform 0.35s ease, filter 0.35s ease;
}

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

.card-year,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    background: rgba(17, 24, 39, 0.76);
    backdrop-filter: blur(12px);
}

.card-year {
    top: 12px;
    left: 12px;
    padding: 6px 10px;
}

.rank-badge {
    right: 12px;
    bottom: 12px;
    min-width: 38px;
    padding: 7px 9px;
    text-align: center;
    background: linear-gradient(135deg, var(--orange), var(--cyan));
}

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

.card-body h2,
.row-content h2 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
}

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

.card-body p,
.row-content p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.card-meta span,
.row-meta span,
.detail-meta span {
    border-color: rgba(148, 163, 184, 0.25);
    color: #64748b;
    background: rgba(248, 250, 252, 0.86);
    font-size: 12px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.tag-list span {
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--orange-dark);
    background: rgba(255, 237, 213, 0.92);
    font-size: 12px;
    font-weight: 800;
}

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

.category-tile {
    min-height: 230px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(236, 254, 255, 0.8)),
        radial-gradient(circle at 10% 10%, rgba(249, 115, 22, 0.24), transparent 36%);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.category-main-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.category-main-link span {
    color: #111827;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.category-main-link strong {
    color: var(--orange-dark);
    font-size: 13px;
}

.category-tile p {
    margin: 16px 0;
    color: var(--muted);
    line-height: 1.72;
}

.category-mini-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-mini-links a {
    color: #475569;
    font-size: 14px;
}

.category-mini-links a:hover {
    color: var(--orange);
}

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

.full-ranking {
    grid-template-columns: 1fr;
}

.movie-row {
    display: grid;
    grid-template-columns: 58px 86px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.row-rank {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), var(--cyan));
}

.row-poster {
    height: 118px;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(6, 182, 212, 0.2));
}

.row-content h2 {
    font-size: 20px;
}

.page-hero {
    max-width: 1240px;
    margin: 28px auto 0;
    padding: 70px 42px;
    overflow: hidden;
    border-radius: 34px;
    background:
        radial-gradient(circle at 16% 14%, rgba(249, 115, 22, 0.2), transparent 36%),
        radial-gradient(circle at 86% 10%, rgba(6, 182, 212, 0.2), transparent 34%),
        rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow);
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.filter-bar input {
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
}

.filter-bar a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
}

.detail-hero {
    max-width: 1240px;
    margin: 28px auto 0;
    padding: 38px;
    display: grid;
    grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
    gap: 38px;
    align-items: center;
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(236, 254, 255, 0.84)),
        radial-gradient(circle at 12% 18%, rgba(249, 115, 22, 0.22), transparent 36%);
    box-shadow: var(--shadow);
}

.detail-poster {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(6, 182, 212, 0.2));
    box-shadow: 0 24px 58px rgba(15, 23, 42, 0.18);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-bottom: 18px;
    color: #64748b;
    font-size: 14px;
}

.breadcrumbs a:hover {
    color: var(--orange);
}

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

.detail-info p {
    max-width: 760px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.82;
}

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

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

.detail-actions .btn-ghost {
    color: var(--orange-dark);
    border-color: rgba(249, 115, 22, 0.25);
    background: rgba(255, 237, 213, 0.68);
}

.player-section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 72px 22px 0;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: #050816;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
}

.video-shell video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #050816;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #fff;
    background:
        radial-gradient(circle at 50% 45%, rgba(249, 115, 22, 0.22), transparent 32%),
        linear-gradient(135deg, rgba(5, 8, 22, 0.58), rgba(5, 8, 22, 0.22));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--cyan));
    box-shadow: 0 24px 55px rgba(249, 115, 22, 0.34);
    font-size: 34px;
}

.play-overlay strong {
    font-size: 22px;
}

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

.movie-article {
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.movie-article p {
    color: #374151;
    font-size: 17px;
    line-height: 1.95;
}

.site-footer {
    margin-top: 86px;
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937 48%, #0f172a);
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 46px 22px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 38px;
}

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

.footer-inner p {
    max-width: 540px;
    color: #9ca3af;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-content: flex-start;
}

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

.footer-copy {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 22px 32px;
    color: #9ca3af;
    font-size: 14px;
}

[data-card].is-hidden {
    display: none;
}

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

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

    .hero-slide {
        grid-template-columns: 1fr 260px;
        padding: 44px;
    }

    .nav-search {
        display: none;
    }
}

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

    .menu-toggle {
        display: grid;
        place-items: center;
        margin-left: auto;
    }

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

    .mobile-link {
        display: block;
        padding: 12px 0;
    }

    .hero {
        margin: 18px 14px 0;
        min-height: 760px;
        border-radius: 28px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 28px;
        padding: 38px 24px 70px;
    }

    .hero-poster {
        max-width: 210px;
        justify-self: center;
        order: -1;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero h2 {
        font-size: 26px;
    }

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

    .hero-dots {
        left: 24px;
        bottom: 26px;
    }

    .hero-control {
        display: none;
    }

    .movie-grid,
    .compact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .category-grid,
    .ranking-list,
    .footer-inner,
    .detail-hero {
        grid-template-columns: 1fr;
    }

    .detail-hero,
    .page-hero {
        margin-left: 14px;
        margin-right: 14px;
        padding: 28px;
        border-radius: 28px;
    }

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

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

    .filter-bar input {
        width: 100%;
    }
}

@media (max-width: 540px) {
    .header-inner {
        min-height: 66px;
        padding: 0 14px;
    }

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

    .brand-mark {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }

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

    .movie-row {
        grid-template-columns: 48px 72px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .row-rank {
        width: 44px;
        height: 44px;
        border-radius: 15px;
        font-size: 13px;
    }

    .row-poster {
        height: 100px;
    }

    .row-content h2 {
        font-size: 16px;
    }

    .row-content p {
        display: none;
    }

    .content-section,
    .player-section {
        padding-left: 14px;
        padding-right: 14px;
    }

    .soft-section {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero-actions,
    .detail-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
