:root {
    --bg: #fff7ed;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --soft: #fef3c7;
    --line: rgba(251, 146, 60, 0.22);
    --orange: #f97316;
    --orange-dark: #ea580c;
    --pink: #ec4899;
    --blue: #3b82f6;
    --shadow: 0 24px 60px rgba(249, 115, 22, 0.16);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 10% 10%, rgba(251, 146, 60, 0.20), transparent 30%),
        radial-gradient(circle at 90% 0%, rgba(236, 72, 153, 0.16), transparent 30%),
        linear-gradient(135deg, #fff7ed 0%, #fdf2f8 48%, #eff6ff 100%);
    min-height: 100vh;
}

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;
    background: linear-gradient(90deg, rgba(255, 247, 237, 0.94), rgba(253, 242, 248, 0.94), rgba(239, 246, 255, 0.94));
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(251, 146, 60, 0.10);
}

.nav-wrap {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 72px;
}

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

.brand-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, #fb923c, #ec4899);
    box-shadow: 0 12px 24px rgba(236, 72, 153, 0.22);
}

.brand-text,
.footer-brand {
    font-size: 24px;
    background: linear-gradient(90deg, #f97316, #ec4899, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    gap: 18px;
    margin-left: auto;
}

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

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

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

.header-search input,
.mobile-search input,
.big-search input,
.filter-bar input,
.filter-bar select {
    border: 1px solid rgba(251, 146, 60, 0.35);
    background: rgba(255, 255, 255, 0.88);
    border-radius: 999px;
    padding: 11px 16px;
    outline: none;
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.header-search input:focus,
.mobile-search input:focus,
.big-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: rgba(249, 115, 22, 0.75);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.header-search button,
.mobile-search button,
.big-search button,
.btn.primary,
.wide-rank-play {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.24);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    background: rgba(255, 255, 255, 0.70);
    border-radius: 14px;
    width: 44px;
    height: 44px;
    color: var(--orange-dark);
    cursor: pointer;
}

.mobile-panel {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

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

main {
    overflow: hidden;
}

.hero-carousel {
    position: relative;
    min-height: 690px;
    width: min(1280px, calc(100% - 32px));
    margin: 24px auto 0;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.7s ease;
    pointer-events: none;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 42%, rgba(251, 146, 60, 0.18), transparent 22%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.64), rgba(17, 24, 39, 0.28)),
        linear-gradient(0deg, rgba(17, 24, 39, 0.70), transparent 42%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.58fr);
    gap: 40px;
    align-items: center;
    min-height: 690px;
    padding: 64px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(249, 115, 22, 0.82);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.section-kicker {
    color: var(--orange-dark);
    background: rgba(255, 237, 213, 0.96);
}

.hero-copy h1 {
    margin: 24px 0 18px;
    color: #ffffff;
    font-size: clamp(42px, 6vw, 86px);
    line-height: 0.96;
    letter-spacing: -0.05em;
    text-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.hero-copy p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.9;
}

.hero-tags,
.detail-tags,
.card-tags,
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.tag,
.chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    color: #9a3412;
    background: rgba(255, 237, 213, 0.92);
    font-size: 12px;
    font-weight: 800;
}

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

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 900;
}

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

.btn.text {
    color: #ffffff;
}

.hero-poster {
    position: relative;
    display: block;
    width: min(100%, 380px);
    justify-self: center;
    aspect-ratio: 3 / 4;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.46);
    transform: rotate(2deg);
}

.hero-poster img,
.poster-link img,
.detail-info-card img,
.rank-row img,
.wide-rank-row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-poster span,
.play-mark {
    position: absolute;
    inset: 50% auto auto 50%;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    color: var(--orange);
    background: rgba(255, 255, 255, 0.92);
    font-size: 30px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.26);
}

.hero-dots {
    position: absolute;
    left: 64px;
    bottom: 34px;
    z-index: 5;
    display: flex;
    gap: 10px;
}

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

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

.section,
.page-hero {
    width: min(1200px, calc(100% - 32px));
    margin: 56px auto 0;
}

.soft-panel,
.filter-panel,
.detail-article {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 20px 48px rgba(249, 115, 22, 0.10);
    backdrop-filter: blur(14px);
}

.intro-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.65fr);
    gap: 32px;
    align-items: center;
}

.intro-panel h2,
.section-head h2,
.page-hero h1,
.detail-article h1 {
    margin: 12px 0 10px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.14;
    letter-spacing: -0.035em;
}

.intro-panel p,
.page-hero p,
.detail-article p,
.category-overview-card p {
    color: var(--muted);
    line-height: 1.9;
}

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

.intro-links a {
    padding: 14px 16px;
    border-radius: 18px;
    color: #9a3412;
    background: rgba(255, 237, 213, 0.72);
    font-weight: 800;
}

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

.compact-head {
    align-items: start;
}

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

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

.channel-card,
.category-overview-card {
    position: relative;
    min-height: 178px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 237, 213, 0.74));
    box-shadow: 0 16px 40px rgba(249, 115, 22, 0.10);
    overflow: hidden;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.channel-card:hover,
.category-overview-card:hover,
.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(249, 115, 22, 0.18);
}

.channel-card span,
.category-overview-card span {
    display: inline-grid;
    place-items: center;
    min-width: 50px;
    height: 34px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #fb923c, #ec4899);
    font-weight: 900;
}

.channel-card strong,
.category-overview-card h2 {
    display: block;
    margin: 18px 0 10px;
    font-size: 22px;
}

.channel-card em,
.category-overview-card p {
    display: block;
    color: var(--muted);
    font-style: normal;
    line-height: 1.7;
    font-size: 14px;
}

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

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

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

.movie-card {
    border: 1px solid rgba(251, 146, 60, 0.18);
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 34px rgba(249, 115, 22, 0.10);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

.movie-card-compact .poster-link,
.compact-grid .poster-link {
    aspect-ratio: 3 / 4;
}

.poster-link img {
    transition: transform 0.35s ease;
}

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

.play-mark {
    width: 54px;
    height: 54px;
    font-size: 22px;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-score {
    position: absolute;
    right: 12px;
    top: 12px;
    min-width: 44px;
    padding: 7px 10px;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.92);
    font-weight: 900;
    text-align: center;
}

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

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

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

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

.movie-card p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.sticky-card {
    position: sticky;
    top: 96px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 44px rgba(249, 115, 22, 0.12);
}

.rank-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-link {
    display: grid;
    grid-template-columns: 34px 76px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 247, 237, 0.88);
}

.rank-num,
.wide-rank-num {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #fb923c, #ec4899);
    font-size: 13px;
    font-weight: 900;
}

.rank-link img {
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    background: #fed7aa;
}

.rank-info {
    display: grid;
    min-width: 0;
}

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

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

.page-hero {
    padding: 58px;
    border-radius: 34px;
    color: #ffffff;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.22), transparent 24%),
        linear-gradient(135deg, #f97316, #ec4899 56%, #3b82f6);
    box-shadow: var(--shadow);
}

.page-hero p {
    max-width: 820px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

.page-hero .eyebrow {
    color: #9a3412;
    background: rgba(255, 255, 255, 0.84);
}

.page-hero .chip {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.chip.active {
    background: #ffffff;
    color: var(--orange-dark);
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 12px;
    margin-bottom: 24px;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    border-radius: 18px;
}

.big-search {
    max-width: 720px;
    margin-top: 28px;
}

.big-search input {
    flex: 1;
    min-height: 54px;
    border-radius: 999px;
}

.big-search button {
    min-height: 54px;
    min-width: 110px;
}

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

.wide-rank-row {
    display: grid;
    grid-template-columns: 54px 120px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(251, 146, 60, 0.18);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.wide-rank-row:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.14);
}

.wide-rank-row img {
    width: 120px;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    background: #fed7aa;
}

.wide-rank-copy {
    display: grid;
    gap: 6px;
}

.wide-rank-copy strong {
    font-size: 20px;
}

.wide-rank-copy em,
.wide-rank-copy small {
    color: var(--muted);
    font-style: normal;
    line-height: 1.65;
}

.detail-top {
    width: min(1200px, calc(100% - 32px));
    margin: 34px auto 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 18px;
}

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

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

.player-card {
    position: relative;
    min-height: 540px;
    border-radius: 28px;
    overflow: hidden;
    background: #111827;
    box-shadow: 0 28px 70px rgba(17, 24, 39, 0.26);
}

.video-el {
    width: 100%;
    height: 100%;
    min-height: 540px;
    object-fit: cover;
    background: #111827;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.68), rgba(17, 24, 39, 0.24));
}

.player-overlay span {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border-radius: 999px;
    color: var(--orange);
    background: rgba(255, 255, 255, 0.94);
    font-size: 36px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

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

.movie-player.playing .player-overlay {
    display: none;
}

.detail-info-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 44px rgba(249, 115, 22, 0.13);
}

.detail-info-card img {
    border-radius: 22px;
    aspect-ratio: 3 / 4;
    background: #fed7aa;
}

.detail-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
}

.detail-stats span,
.detail-meta-grid div {
    border-radius: 16px;
    padding: 12px;
    text-align: center;
    color: #9a3412;
    background: rgba(255, 237, 213, 0.78);
    font-weight: 800;
}

.detail-article {
    max-width: 1000px;
}

.lead-text {
    font-size: 19px;
    color: #374151 !important;
}

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

.detail-meta-grid div {
    display: grid;
    gap: 8px;
    text-align: left;
}

.detail-meta-grid strong {
    color: var(--orange-dark);
}

.detail-meta-grid span {
    color: var(--text);
}

.large-tag {
    font-size: 14px;
    padding: 9px 14px;
}

.detail-article h2 {
    margin: 30px 0 10px;
    font-size: 26px;
}

.site-footer {
    margin-top: 72px;
    background: linear-gradient(90deg, rgba(255, 237, 213, 0.88), rgba(252, 231, 243, 0.88), rgba(219, 234, 254, 0.88));
    border-top: 1px solid var(--line);
}

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

.footer-grid p {
    color: var(--muted);
    line-height: 1.8;
}

.footer-grid h2 {
    font-size: 18px;
    margin: 0 0 14px;
}

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

.footer-links a {
    color: #4b5563;
    font-weight: 700;
}

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

.copyright {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 30px;
    color: var(--muted);
    border-top: 1px solid rgba(251, 146, 60, 0.18);
    text-align: center;
}

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

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

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

    .hero-content,
    .intro-panel,
    .split-layout,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-carousel,
    .hero-content {
        min-height: 760px;
    }

    .hero-poster {
        width: 280px;
        justify-self: start;
    }

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

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

    .side-column .sticky-card {
        position: static;
    }
}

@media (max-width: 720px) {
    .nav-wrap {
        min-height: 64px;
        width: min(100% - 24px, 1200px);
    }

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

    .hero-carousel {
        width: min(100% - 20px, 1280px);
        min-height: 720px;
        border-radius: 24px;
    }

    .hero-content {
        min-height: 720px;
        padding: 34px 24px 68px;
        gap: 24px;
        align-content: center;
    }

    .hero-copy h1 {
        font-size: 42px;
    }

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

    .hero-actions {
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

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

    .section,
    .page-hero,
    .detail-top {
        width: min(100% - 20px, 1200px);
        margin-top: 34px;
    }

    .page-hero,
    .soft-panel,
    .filter-panel,
    .detail-article {
        padding: 24px;
        border-radius: 22px;
    }

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

    .channel-grid,
    .category-overview-grid,
    .movie-grid,
    .compact-grid,
    .detail-meta-grid,
    .filter-bar {
        grid-template-columns: 1fr;
    }

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

    .wide-rank-row img {
        width: 88px;
    }

    .wide-rank-play {
        display: none;
    }

    .player-card,
    .video-el {
        min-height: 320px;
    }
}
