:root {
    --amber: #d97706;
    --amber-dark: #b45309;
    --orange: #ea580c;
    --gold: #f59e0b;
    --ink: #1f2937;
    --muted: #6b7280;
    --soft: #fff7ed;
    --line: #f3e8d4;
    --shadow: 0 18px 45px rgba(146, 64, 14, 0.14);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--ink);
    background: #ffffff;
}

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.9);
    border-bottom: 1px solid rgba(245, 158, 11, 0.16);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-icon {
    position: relative;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 12px 24px rgba(234, 88, 12, 0.28);
}

.brand-copy strong,
.footer-brand {
    display: block;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.05;
    background: linear-gradient(90deg, var(--amber), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-copy small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

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

.desktop-nav a,
.mobile-panel a {
    position: relative;
    font-size: 15px;
    font-weight: 700;
    color: #4b5563;
    transition: color 0.24s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel a:hover,
.mobile-panel a.active {
    color: var(--amber);
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 2px;
    border-radius: 999px;
    background: var(--amber);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.24s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    transform: scaleX(1);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

.header-search input,
.mobile-search input,
.card-search-input {
    width: 220px;
    height: 42px;
    padding: 0 16px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    outline: none;
    color: var(--ink);
    background: #fff;
    transition: border-color 0.24s ease, box-shadow 0.24s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.card-search-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.header-search button,
.mobile-search button {
    height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    background: #fff7ed;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--amber);
    border-radius: 999px;
}

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

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

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

.mobile-panel nav {
    display: grid;
    gap: 16px;
    padding: 18px 0;
}

.mobile-search {
    display: flex;
    gap: 10px;
    padding: 0 0 18px;
}

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

.hero {
    position: relative;
    min-height: 610px;
    overflow: hidden;
    background: #111827;
}

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

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
    background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(180, 83, 9, 0.78), rgba(234, 88, 12, 0.32)), var(--hero-image);
    background-position: center;
    background-size: cover;
}

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 15%, rgba(245, 158, 11, 0.34), transparent 28%), linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(255, 255, 255, 0));
}

.hero-content {
    position: relative;
    min-height: 610px;
    display: grid;
    grid-template-columns: 1.18fr 0.82fr;
    gap: 52px;
    align-items: center;
    color: #fff;
}

.hero-copy {
    max-width: 720px;
}

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

.hero-kicker span {
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: #fffbeb;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 660px;
    margin: 0 0 22px;
    font-size: clamp(18px, 2.5vw, 24px);
    line-height: 1.8;
    color: #fff7ed;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 13px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 34px;
}

.primary-button,
.glass-button,
.section-more a,
.rank-action,
.category-overview-body a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.primary-button,
.section-more a,
.rank-action,
.category-overview-body a {
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 16px 28px rgba(234, 88, 12, 0.24);
}

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

.primary-button:hover,
.glass-button:hover,
.section-more a:hover,
.rank-action:hover,
.category-overview-body a:hover {
    transform: translateY(-2px) scale(1.02);
}

.hero-poster {
    position: relative;
    width: min(420px, 100%);
    justify-self: end;
    border: 8px solid rgba(255, 255, 255, 0.24);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
    aspect-ratio: 3 / 4;
    background: rgba(255, 255, 255, 0.1);
}

.hero-poster img,
.poster-link img,
.detail-poster img,
.rank-cover img,
.category-covers img,
.channel-card img {
    height: 100%;
    object-fit: cover;
}

.hero-poster span,
.poster-play {
    position: absolute;
    left: 18px;
    bottom: 18px;
    padding: 10px 16px;
    border-radius: 999px;
    color: #fff;
    font-weight: 800;
    background: rgba(217, 119, 6, 0.92);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.24);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 6;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

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

.quick-channels {
    position: relative;
    z-index: 3;
    margin-top: -54px;
}

.channel-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.channel-card {
    position: relative;
    min-height: 150px;
    padding: 20px;
    border-radius: 24px;
    overflow: hidden;
    color: #fff;
    box-shadow: var(--shadow);
    isolation: isolate;
}

.channel-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(31, 41, 55, 0.16), rgba(146, 64, 14, 0.86));
}

.channel-card img {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.channel-card span {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.18);
}

.channel-card strong {
    display: block;
    margin-top: 36px;
    font-size: 15px;
    line-height: 1.5;
}

.section-block {
    padding: 78px 0;
}

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

.section-heading {
    max-width: 760px;
    margin: 0 auto 38px;
    text-align: center;
}

.section-heading span,
.detail-article span,
.page-hero span,
.category-overview-body span {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 7px 14px;
    border-radius: 999px;
    color: var(--amber);
    font-size: 13px;
    font-weight: 800;
    background: #ffedd5;
}

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.detail-article h2 {
    margin: 0 0 14px;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p,
.category-overview-body p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
}

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

.movie-card {
    position: relative;
    border: 1px solid #f5e7d0;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 28px rgba(146, 64, 14, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

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

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

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

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

.card-meta,
.detail-meta {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 700;
}

.card-meta span,
.detail-meta span {
    padding: 5px 9px;
    border-radius: 999px;
    background: #f9fafb;
}

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

.movie-card h3 a:hover,
.rank-info h2 a:hover,
.detail-side-card a:hover {
    color: var(--amber);
}

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

.tag-row span {
    color: var(--amber-dark);
    background: #fff7ed;
}

.rank-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 4;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

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

.section-more {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

.category-pill-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.category-pill,
.filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    color: var(--amber-dark);
    background: #fff;
    cursor: pointer;
    transition: all 0.24s ease;
}

.category-pill:hover,
.category-pill.is-active,
.filter-chip:hover,
.filter-chip.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 12px 22px rgba(234, 88, 12, 0.18);
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #111827, #92400e 52%, #ea580c);
}

.page-hero {
    min-height: 360px;
    background-image: linear-gradient(135deg, rgba(17, 24, 39, 0.94), rgba(146, 64, 14, 0.82)), var(--page-hero-image);
    background-size: cover;
    background-position: center;
}

.compact-hero {
    min-height: 290px;
}

.page-hero-layer,
.detail-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.18), transparent 24%);
}

.page-hero-content,
.compact-hero .container {
    position: relative;
    z-index: 2;
    padding: 78px 0;
}

.page-hero h1,
.page-hero p {
    max-width: 760px;
}

.page-hero p {
    color: #fff7ed;
}

.breadcrumb {
    margin-top: 22px;
    color: #ffedd5;
}

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

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

.category-overview-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    padding: 18px;
    border: 1px solid #f5e7d0;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(146, 64, 14, 0.08);
}

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

.category-covers img {
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    background: #fff7ed;
}

.category-overview-body {
    align-self: center;
}

.category-overview-body h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.category-overview-body a {
    margin-top: 18px;
}

.library-toolbar {
    display: grid;
    gap: 18px;
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #f5e7d0;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 28px rgba(146, 64, 14, 0.08);
}

.sticky-toolbar {
    position: sticky;
    top: 96px;
    z-index: 7;
    backdrop-filter: blur(14px);
}

.card-search-input {
    width: 100%;
    height: 52px;
    border-radius: 18px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

.filter-empty {
    margin: 32px 0 0;
    padding: 28px;
    border-radius: 20px;
    color: var(--muted);
    text-align: center;
    background: #fff;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 64px 100px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid #f5e7d0;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(146, 64, 14, 0.07);
}

.rank-number {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--amber), var(--orange));
}

.rank-cover {
    height: 132px;
    overflow: hidden;
    border-radius: 18px;
    background: #fff7ed;
}

.rank-info h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.rank-info p {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.7;
}

.detail-hero {
    min-height: 540px;
}

.detail-bg {
    background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(146, 64, 14, 0.74)), var(--detail-image);
    background-position: center;
    background-size: cover;
    filter: saturate(1.05);
}

.detail-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 44px;
    align-items: center;
    padding: 72px 0;
}

.detail-poster {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 7px solid rgba(255, 255, 255, 0.22);
    border-radius: 28px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
    background: rgba(255, 255, 255, 0.08);
}

.detail-copy h1 {
    margin-top: 18px;
    font-size: clamp(38px, 6vw, 72px);
}

.detail-copy p {
    max-width: 760px;
    color: #fff7ed;
    font-size: 19px;
    line-height: 1.85;
}

.detail-meta span {
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.16);
}

.detail-tags {
    margin: 22px 0 28px;
}

.player-section {
    padding: 62px 0 22px;
    background: #111827;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
    aspect-ratio: 16 / 9;
}

.movie-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.16), rgba(17, 24, 39, 0.56));
    cursor: pointer;
}

.player-overlay span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 34px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 18px 40px rgba(234, 88, 12, 0.32);
}

.player-overlay.is-hidden {
    display: none;
}

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

.detail-article,
.detail-side-card {
    border: 1px solid #f5e7d0;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(146, 64, 14, 0.08);
}

.detail-article {
    padding: 34px;
}

.detail-article p {
    margin: 0 0 28px;
    color: #4b5563;
    font-size: 17px;
    line-height: 2;
}

.detail-side-card {
    padding: 28px;
    align-self: start;
}

.detail-side-card h3 {
    margin: 0 0 20px;
    font-size: 24px;
}

.detail-side-card dl {
    display: grid;
    grid-template-columns: 72px 1fr;
    row-gap: 16px;
    margin: 0;
}

.detail-side-card dt {
    color: #9ca3af;
}

.detail-side-card dd {
    margin: 0;
    color: #374151;
    font-weight: 700;
}

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

.site-footer {
    padding: 54px 0;
    border-top: 1px solid var(--line);
    background: #fffaf2;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.site-footer p {
    max-width: 620px;
    margin: 14px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.footer-links a {
    color: #6b7280;
    font-weight: 700;
}

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

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

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

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

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

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

    .mobile-toggle {
        display: block;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 72px 0 96px;
    }

    .hero-poster {
        width: min(260px, 72vw);
        justify-self: start;
    }

    .hero-arrow {
        display: none;
    }

    .quick-channels {
        margin-top: 24px;
    }

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

    .category-overview-card,
    .detail-hero-grid {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: min(280px, 72vw);
    }

    .rank-row {
        grid-template-columns: 54px 82px 1fr;
    }

    .rank-action {
        grid-column: 2 / -1;
        justify-self: start;
    }
}

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

    .header-inner {
        height: 68px;
    }

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

    .brand-copy small {
        display: none;
    }

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

    .section-block {
        padding: 56px 0;
    }

    .movie-grid,
    .library-grid,
    .rank-grid,
    .related-grid,
    .channel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

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

    .movie-card p {
        min-height: auto;
        font-size: 13px;
    }

    .card-meta {
        gap: 5px;
    }

    .card-meta span {
        padding: 4px 7px;
    }

    .rank-row {
        grid-template-columns: 46px 74px 1fr;
        gap: 12px;
        padding: 12px;
    }

    .rank-cover {
        height: 104px;
    }

    .rank-info h2 {
        font-size: 18px;
    }

    .rank-info p {
        display: none;
    }

    .detail-article,
    .detail-side-card {
        padding: 22px;
    }
}
