* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: #1f2937;
    background: #fff7ed;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

[hidden] {
    display: none !important;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, #d97706, #f97316, #d97706);
    box-shadow: 0 18px 40px rgba(146, 64, 14, 0.2);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.02em;
    transition: transform 0.25s ease;
}

.logo:hover {
    transform: scale(1.04);
}

.logo-mark {
    font-size: 32px;
    line-height: 1;
}

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

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: 999px;
    color: #fffbeb;
    transition: background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

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

body.menu-open .mobile-nav {
    display: flex;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 610px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #f97316 48%, #f43f5e);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.28), transparent 30%),
        radial-gradient(circle at 85% 15%, rgba(253, 224, 71, 0.22), transparent 28%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.16));
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: linear-gradient(0deg, #fff7ed, transparent);
}

.hero-shell {
    position: relative;
    z-index: 2;
    min-height: 610px;
    display: flex;
    align-items: center;
}

.hero-slide {
    display: none;
    width: 100%;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 410px);
    align-items: center;
    gap: 54px;
}

.hero-slide.is-active {
    display: grid;
    animation: fadeUp 0.7s ease both;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    font-weight: 700;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0 0 20px;
    font-size: clamp(38px, 7vw, 68px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero h1 span,
.page-hero h1 span {
    display: block;
    color: #fef08a;
}

.hero p,
.page-hero p,
.detail-copy p {
    max-width: 720px;
    margin: 0 0 28px;
    color: #fff7ed;
    font-size: clamp(18px, 2.4vw, 25px);
}

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

.primary-btn,
.ghost-btn,
.small-btn,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
    padding: 13px 26px;
    color: #ea580c;
    background: #ffffff;
    box-shadow: 0 16px 32px rgba(146, 64, 14, 0.24);
}

.primary-btn:hover,
.ghost-btn:hover,
.small-btn:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.ghost-btn {
    padding: 11px 24px;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.74);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(120, 53, 15, 0.42);
    transform: rotate(1.5deg);
}

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

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 55%);
}

.hero-poster span {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
}

.hero-dots {
    position: absolute;
    left: 0;
    bottom: 88px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 42px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
}

.hero-dot.is-active {
    background: #ffffff;
}

.channel-strip {
    position: relative;
    z-index: 4;
    margin-top: -24px;
}

.channel-scroller {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(146, 64, 14, 0.12);
}

.channel-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    padding: 12px 18px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 12px 24px rgba(234, 88, 12, 0.22);
    transition: transform 0.25s ease;
}

.channel-pill:nth-child(3n + 1) {
    background: linear-gradient(135deg, #fb7185, #f97316);
}

.channel-pill:nth-child(3n + 2) {
    background: linear-gradient(135deg, #f59e0b, #a855f7);
}

.channel-pill:hover {
    transform: translateY(-3px) scale(1.02);
}

.section {
    padding: 76px 0;
    background: #ffffff;
}

.section-soft {
    background: linear-gradient(180deg, #fff7ed, #ffffff);
}

.section-heading {
    margin-bottom: 30px;
}

.section-heading h2,
.preview-head h3,
.content-block h2,
.side-card h2 {
    margin: 0 0 10px;
    color: #1f2937;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-heading p,
.preview-head p {
    margin: 0;
    color: #6b7280;
    font-size: 17px;
}

.split-heading,
.preview-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 420px);
    gap: 20px;
    align-items: center;
    margin-bottom: 34px;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(135deg, #fff7ed, #ffffff);
    box-shadow: 0 18px 50px rgba(146, 64, 14, 0.1);
}

.search-panel strong {
    display: block;
    color: #92400e;
    font-size: 22px;
    font-weight: 900;
}

.search-panel p {
    margin: 4px 0 0;
    color: #78716c;
}

.site-search {
    width: 100%;
    border: 2px solid #fed7aa;
    border-radius: 999px;
    padding: 14px 20px;
    outline: none;
    color: #1f2937;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.site-search:focus {
    border-color: #fb923c;
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.16);
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 42px rgba(120, 53, 15, 0.1);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 24px 60px rgba(120, 53, 15, 0.18);
}

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #451a03;
}

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

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

.poster-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent 58%);
}

.play-bubble {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    color: #ea580c;
    background: rgba(255, 255, 255, 0.92);
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.rank-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 999px;
    color: #ffffff;
    background: #ef4444;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.28);
}

.card-body {
    padding: 18px;
}

.card-meta,
.rank-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
}

.card-meta span,
.rank-tags span,
.tag-row span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 9px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 12px;
    font-weight: 800;
}

.movie-card h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 900;
}

.movie-card h3 a:hover,
.rank-info h3 a:hover,
.breadcrumb a:hover,
.side-card a:hover {
    color: #ea580c;
}

.movie-card p {
    display: -webkit-box;
    margin: 0 0 14px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.55;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.ranking-block {
    background: #ffffff;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 86px 48px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: linear-gradient(135deg, #fff7ed, #ffffff);
    box-shadow: 0 14px 36px rgba(120, 53, 15, 0.09);
}

.rank-cover {
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 3 / 4;
}

.rank-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-number {
    color: #f97316;
    font-size: 30px;
    font-weight: 950;
    text-align: center;
}

.rank-info h3 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 900;
}

.rank-info p {
    margin: 0 0 10px;
    color: #6b7280;
}

.small-btn {
    padding: 9px 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    white-space: nowrap;
}

.text-link {
    color: #ea580c;
    font-weight: 900;
}

.category-preview-stack {
    display: grid;
    gap: 28px;
}

.category-preview,
.category-card-large,
.side-card,
.content-block,
.player-card {
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(120, 53, 15, 0.1);
}

.category-preview {
    padding: 28px;
}

.preview-head {
    margin-bottom: 22px;
}

.preview-emoji {
    display: inline-grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    border-radius: 18px;
    background: #ffedd5;
    font-size: 26px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 116px 0 92px;
    color: #ffffff;
    background: linear-gradient(135deg, #d97706, #f97316 58%, #fb7185);
}

.compact-hero::after,
.image-hero::after,
.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.22), transparent 28%);
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.image-hero {
    background-image:
        linear-gradient(90deg, rgba(67, 20, 7, 0.92), rgba(154, 52, 18, 0.76), rgba(0, 0, 0, 0.3)),
        var(--hero-image);
    background-size: cover;
    background-position: center;
}

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

.category-card-large {
    overflow: hidden;
}

.category-main-link {
    display: block;
    padding: 30px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #f97316 58%, #fb7185);
}

.category-main-link span {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 30px;
}

.category-main-link h2 {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 950;
}

.category-main-link p {
    margin: 0;
    color: #fff7ed;
}

.category-samples {
    display: grid;
    gap: 8px;
    padding: 18px 24px 24px;
}

.category-samples a {
    color: #92400e;
    font-weight: 800;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background-image:
        linear-gradient(90deg, rgba(27, 18, 9, 0.96), rgba(124, 45, 18, 0.82), rgba(17, 24, 39, 0.2)),
        var(--hero-image);
    background-size: cover;
    background-position: center;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    backdrop-filter: blur(5px);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    min-height: 560px;
    padding: 76px 0;
}

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.38);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #fed7aa;
}

.detail-copy h1 {
    max-width: 760px;
}

.detail-tags {
    margin-bottom: 24px;
}

.detail-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

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

.detail-main,
.detail-side {
    display: grid;
    gap: 24px;
}

.player-card,
.content-block,
.side-card {
    padding: 24px;
}

.video-frame {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 16 / 9;
    background: #111827;
}

.video-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.24));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    color: #ea580c;
    background: rgba(255, 255, 255, 0.94);
    font-size: 34px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.32);
}

.player-cover strong {
    font-size: 22px;
}

.content-block h2,
.side-card h2 {
    font-size: 25px;
}

.content-block p {
    margin: 0;
    color: #4b5563;
    font-size: 17px;
}

.side-card dl {
    display: grid;
    gap: 14px;
    margin: 0;
}

.side-card dl div {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
    align-items: start;
    padding-bottom: 12px;
    border-bottom: 1px solid #ffedd5;
}

.side-card dt {
    color: #9a3412;
    font-weight: 900;
}

.side-card dd {
    margin: 0;
    color: #374151;
}

.side-tags span {
    color: #9a3412;
    background: #ffedd5;
}

.empty-state {
    margin: 28px 0 0;
    padding: 20px;
    border-radius: 18px;
    color: #92400e;
    background: #ffedd5;
    font-weight: 800;
    text-align: center;
}

.site-footer {
    color: #fde68a;
    background: linear-gradient(180deg, #78350f, #451a03);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 1fr 1fr;
    gap: 36px;
    padding: 50px 0;
}

.footer-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
}

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

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

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

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

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

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

    .nav-toggle {
        display: inline-flex;
    }

    .hero-shell {
        min-height: auto;
        padding: 78px 0 110px;
    }

    .hero-slide,
    .detail-hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        max-width: 360px;
        transform: none;
    }

    .hero-poster img {
        height: 440px;
    }

    .hero-dots {
        bottom: 58px;
        left: 0;
    }

    .search-panel,
    .rank-row {
        grid-template-columns: 1fr;
    }

    .split-heading,
    .preview-head {
        align-items: flex-start;
        flex-direction: column;
    }

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

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

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

    .logo-text {
        font-size: 22px;
    }

    .hero,
    .hero-shell {
        min-height: auto;
    }

    .hero h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 36px;
    }

    .hero p,
    .page-hero p,
    .detail-copy p {
        font-size: 17px;
    }

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

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

    .section,
    .page-hero {
        padding: 56px 0;
    }

    .rank-row {
        gap: 12px;
    }

    .rank-cover {
        width: 110px;
    }
}
