:root {
    --orange: #f97316;
    --orange-dark: #ea580c;
    --rose: #fb7185;
    --pink: #ec4899;
    --slate: #0f172a;
    --muted: #64748b;
    --line: #e5e7eb;
    --soft: #fff7ed;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    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: #1f2937;
    background: linear-gradient(180deg, #fff7ed 0%, #fff 42%, #fdf2f8 100%);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: #ffffff;
    background: linear-gradient(90deg, #f97316 0%, #fb7185 52%, #ec4899 100%);
    box-shadow: 0 12px 32px rgba(249, 115, 22, 0.28);
}

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

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

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #f97316;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

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

.nav-link {
    padding: 8px 0;
    font-weight: 600;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    opacity: 1;
    transform: translateY(-1px);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 21px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
    border-radius: 4px;
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
}

.mobile-nav.is-open {
    display: grid;
    gap: 8px;
}

.mobile-nav-link {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.13);
    font-weight: 700;
}

.page-main {
    min-height: 60vh;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.85s ease;
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.76) 0%, rgba(0, 0, 0, 0.54) 48%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(720px, 100%);
    color: #ffffff;
}

.hero-badges,
.movie-meta,
.detail-tags,
.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.hero-badges span {
    padding: 6px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.92);
    font-weight: 700;
    font-size: 13px;
}

.hero-badges span:nth-child(2n) {
    background: rgba(236, 72, 153, 0.9);
}

.hero-copy h1,
.hero-copy h2 {
    margin: 18px 0 16px;
    font-size: clamp(42px, 7vw, 74px);
    line-height: 1.04;
    letter-spacing: -0.04em;
    text-shadow: 0 16px 35px rgba(0, 0, 0, 0.36);
}

.hero-copy p {
    max-width: 660px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2vw, 21px);
}

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

.primary-button,
.ghost-button,
.quick-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    border: 0;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.quick-search button {
    color: #ffffff;
    background: linear-gradient(90deg, #f97316, #ec4899);
    box-shadow: 0 16px 32px rgba(249, 115, 22, 0.32);
}

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

.primary-button:hover,
.ghost-button:hover,
.quick-search button:hover {
    transform: translateY(-2px);
}

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

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

.hero-dots button.is-active {
    width: 64px;
    background: #f97316;
}

.search-band {
    background: linear-gradient(90deg, #ffedd5 0%, #fce7f3 100%);
    border-bottom: 1px solid rgba(251, 113, 133, 0.22);
}

.search-band-inner {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 520px);
    gap: 28px;
    align-items: center;
    padding: 32px 0;
}

.search-band h2,
.section-heading h2,
.page-hero h1,
.detail-hero h1 {
    margin: 0;
    color: #1f2937;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
}

.search-band p,
.page-hero span {
    margin: 8px 0 0;
    color: #64748b;
}

.quick-search,
.filter-panel {
    display: flex;
    gap: 10px;
}

.quick-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 48px;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: 0 18px;
    color: #334155;
    background: #ffffff;
    outline: none;
    box-shadow: 0 8px 22px rgba(249, 115, 22, 0.08);
}

.quick-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: #fb7185;
    box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.18);
}

.section {
    padding: 64px 0;
}

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

.section-heading span {
    display: inline-block;
    margin-bottom: 6px;
    color: #f97316;
    font-weight: 800;
}

.section-heading a {
    color: #f97316;
    font-weight: 800;
}

.category-section {
    background: rgba(255, 255, 255, 0.62);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.category-card,
.channel-panel a {
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 18px;
    border-radius: 22px;
    color: #ffffff;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover,
.channel-panel a:hover,
.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.18);
}

.category-icon,
.channel-panel span {
    font-size: 32px;
}

.category-card strong,
.channel-panel h2 {
    font-size: 18px;
}

.category-card em,
.channel-panel p {
    font-style: normal;
    opacity: 0.86;
    font-size: 13px;
}

.gradient-orange-pink {
    background: linear-gradient(135deg, #f97316, #ec4899);
}

.gradient-blue-cyan {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.gradient-purple-indigo {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
}

.gradient-pink-rose {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
}

.gradient-red-rose {
    background: linear-gradient(135deg, #ef4444, #e11d48);
}

.gradient-orange-red {
    background: linear-gradient(135deg, #f97316, #dc2626);
}

.gradient-yellow-orange {
    background: linear-gradient(135deg, #eab308, #f97316);
}

.gradient-cyan-blue {
    background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.gradient-violet-purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.gradient-green-emerald {
    background: linear-gradient(135deg, #22c55e, #059669);
}

.gradient-slate-blue {
    background: linear-gradient(135deg, #475569, #2563eb);
}

.gradient-amber-orange {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card.is-hidden {
    display: none;
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #ffedd5, #fce7f3);
}

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

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

.poster-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 44px;
    opacity: 0;
    background: rgba(0, 0, 0, 0.22);
    transition: opacity 0.2s ease;
}

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

.movie-duration,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    font-size: 12px;
}

.movie-duration {
    right: 10px;
    bottom: 10px;
    padding: 4px 8px;
    background: rgba(15, 23, 42, 0.75);
}

.rank-badge {
    top: 10px;
    left: 10px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 10px 22px rgba(249, 115, 22, 0.3);
}

.movie-body {
    padding: 16px;
}

.movie-title {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    color: #1f2937;
    font-weight: 800;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.movie-title:hover {
    color: #f97316;
}

.movie-line {
    display: -webkit-box;
    min-height: 44px;
    margin: 10px 0;
    overflow: hidden;
    color: #64748b;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    color: #94a3b8;
    font-size: 13px;
}

.movie-meta span + span::before {
    content: "·";
    margin-right: 8px;
}

.movie-tags {
    margin-top: 12px;
}

.movie-tags span,
.detail-tags span {
    padding: 4px 9px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 12px;
    font-weight: 700;
}

.ranking-section {
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.latest-section {
    background: rgba(255, 255, 255, 0.68);
}

.soft-page {
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 45%, #fdf2f8 100%);
}

.page-hero {
    padding: 72px 0;
    color: #ffffff;
    background: linear-gradient(90deg, #f97316, #ec4899);
}

.page-hero p {
    margin: 0 0 10px;
    font-weight: 800;
    opacity: 0.88;
}

.page-hero h1,
.page-hero span {
    color: #ffffff;
}

.page-hero span {
    display: block;
    max-width: 760px;
    margin-top: 12px;
    opacity: 0.88;
}

.small-hero {
    background: linear-gradient(90deg, #f97316, #fb7185, #ec4899);
}

.rank-hero {
    background: linear-gradient(90deg, #f59e0b, #f97316, #ef4444);
}

.search-hero {
    background: linear-gradient(90deg, #0f172a, #7c3aed, #ec4899);
}

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

.channel-panel {
    border-radius: 24px;
}

.channel-panel a {
    min-height: 210px;
    align-items: flex-start;
    text-align: left;
}

.channel-panel h2 {
    margin: 0;
    font-size: 26px;
}

.channel-panel p {
    margin: 0;
    font-size: 15px;
}

.channel-panel strong {
    margin-top: auto;
}

.filter-panel {
    position: sticky;
    top: 82px;
    z-index: 10;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding: 16px;
    border: 1px solid rgba(251, 113, 133, 0.2);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.filter-panel input {
    flex: 1 1 280px;
}

.filter-panel select {
    flex: 0 1 180px;
    appearance: none;
}

.detail-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: end;
    overflow: hidden;
    background: #0f172a;
}

.detail-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px);
    transform: scale(1.04);
}

.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.92));
}

.detail-hero-content {
    position: relative;
    z-index: 1;
    padding: 70px 0 54px;
    color: #ffffff;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

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

.detail-hero h1 {
    max-width: 850px;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 60px);
}

.detail-hero p {
    max-width: 760px;
    margin: 16px 0 20px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    padding-top: 42px;
    padding-bottom: 42px;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #020617;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.26);
    aspect-ratio: 16 / 9;
}

.player-card video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000000;
}

.player-mask {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.58));
}

.player-mask span {
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 42px;
    text-indent: 6px;
    background: linear-gradient(135deg, #f97316, #ec4899);
    box-shadow: 0 18px 38px rgba(249, 115, 22, 0.42);
}

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

.detail-panel,
.aside-card {
    margin-top: 24px;
    padding: 26px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.movie-info-panel {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 24px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.16);
}

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

.detail-info h2,
.prose-panel h2,
.review-panel h2,
.aside-card h2 {
    margin: 0 0 14px;
    color: #1f2937;
    font-size: 26px;
}

.detail-info p,
.prose-panel p,
.review-panel p {
    color: #4b5563;
    font-size: 17px;
}

.detail-info dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.detail-info dl div {
    padding: 12px;
    border-radius: 14px;
    background: #fff7ed;
}

.detail-info dt {
    color: #f97316;
    font-weight: 800;
    font-size: 13px;
}

.detail-info dd {
    margin: 4px 0 0;
    color: #334155;
}

.review-panel {
    background: linear-gradient(135deg, #fff7ed, #fdf2f8);
    border-color: #fed7aa;
}

.detail-aside {
    min-width: 0;
}

.aside-card {
    position: sticky;
    top: 94px;
    margin-top: 0;
}

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

.mini-card {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: #f8fafc;
    transition: background 0.2s ease, transform 0.2s ease;
}

.mini-card:hover {
    background: #ffedd5;
    transform: translateX(3px);
}

.mini-card img {
    width: 74px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
}

.mini-card strong,
.mini-card em {
    display: block;
}

.mini-card strong {
    color: #1f2937;
    line-height: 1.35;
}

.mini-card em {
    margin-top: 5px;
    color: #94a3b8;
    font-style: normal;
    font-size: 13px;
}

.more-like-section {
    background: rgba(255, 255, 255, 0.72);
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(90deg, #1e293b, #0f172a);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 34px;
    padding: 52px 0;
}

.footer-brand {
    color: #ffffff;
    margin-bottom: 14px;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

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

.site-footer ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: 8px;
}

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

.footer-bottom {
    padding: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

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

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

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

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

    .aside-card {
        position: static;
    }
}

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

    .menu-button {
        display: block;
    }

    .hero {
        height: 72vh;
        min-height: 560px;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.78));
    }

    .search-band-inner {
        grid-template-columns: 1fr;
    }

    .quick-search {
        flex-direction: column;
    }

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

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

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

    .movie-info-panel {
        grid-template-columns: 150px 1fr;
    }
}

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

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

    .hero {
        min-height: 620px;
    }

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

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .section {
        padding: 46px 0;
    }

    .section-heading {
        display: block;
    }

    .section-heading a {
        display: inline-block;
        margin-top: 10px;
    }

    .category-grid,
    .channel-grid {
        grid-template-columns: 1fr;
    }

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

    .movie-body {
        padding: 13px;
    }

    .movie-title {
        min-height: 44px;
        font-size: 15px;
    }

    .movie-line {
        font-size: 13px;
    }

    .filter-panel {
        position: static;
        display: grid;
    }

    .filter-panel input,
    .filter-panel select {
        width: 100%;
        flex: auto;
    }

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

    .detail-hero-content {
        padding-bottom: 34px;
    }

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

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

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

    .player-mask span {
        width: 72px;
        height: 72px;
        font-size: 34px;
    }

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