:root {
    --brand: #f97316;
    --brand-dark: #ea580c;
    --rose: #f43f5e;
    --amber: #f59e0b;
    --ink: #111827;
    --muted: #6b7280;
    --paper: #ffffff;
    --soft: #fff7ed;
    --line: #fed7aa;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 28%, #fff7ed 100%);
}

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

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

button,
input,
select {
    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.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(251, 146, 60, 0.25);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.08);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 22px;
    color: #7c2d12;
    white-space: nowrap;
}

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

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

.nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #374151;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav a:hover,
.nav a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--rose));
    transform: translateY(-1px);
}

.header-search {
    width: min(300px, 28vw);
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(251, 146, 60, 0.45);
    border-radius: 999px;
    background: #fff;
}

.header-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 11px 14px;
    color: #111827;
    background: transparent;
}

.header-search button {
    border: 0;
    padding: 11px 15px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--rose));
    cursor: pointer;
}

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

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 46px 0 54px;
    background: radial-gradient(circle at top left, rgba(255, 237, 213, 0.95), rgba(255, 255, 255, 0) 34%), linear-gradient(135deg, #f59e0b 0%, #fb923c 45%, #f43f5e 100%);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(4px);
    opacity: 0.26;
    background: #fff;
}

.hero::before {
    width: 260px;
    height: 260px;
    left: -80px;
    top: -100px;
}

.hero::after {
    width: 360px;
    height: 360px;
    right: -140px;
    bottom: -160px;
}

.hero-slider {
    position: relative;
    z-index: 1;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 35px 80px rgba(124, 45, 18, 0.32);
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: 28px;
    align-items: center;
    min-height: 560px;
    padding: 54px;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s ease;
}

.hero-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: blur(24px) saturate(1.15);
    transform: scale(1.15);
    opacity: 0.42;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.7), rgba(17, 24, 39, 0.42));
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(12px);
    font-size: 14px;
    font-weight: 800;
}

.hero h1,
.hero h2 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero h2 {
    font-size: clamp(32px, 5vw, 58px);
}

.hero-lead {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

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

.pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 13px;
    font-weight: 800;
}

.hero .pill {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 18px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--rose));
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.26);
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(249, 115, 22, 0.34);
}

.btn.secondary {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
}

.btn.light {
    color: #c2410c;
    background: #fff;
    box-shadow: 0 14px 28px rgba(124, 45, 18, 0.12);
}

.hero-poster {
    justify-self: center;
    width: min(320px, 100%);
}

.hero-poster img {
    aspect-ratio: 3 / 4;
    width: 100%;
    object-fit: cover;
    border: 8px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.36);
}

.hero-dots {
    position: absolute;
    z-index: 3;
    left: 54px;
    bottom: 30px;
    display: flex;
    gap: 10px;
}

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

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

.section {
    padding: 56px 0 0;
}

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

.section-title {
    margin: 0;
    color: #111827;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.section-subtitle {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

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

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

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

.movie-card {
    display: block;
    min-width: 0;
}

.poster-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #111827;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.poster-wrap img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.38s ease, opacity 0.38s ease;
}

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

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 55%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
    opacity: 0;
    transition: opacity 0.28s ease;
}

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

.score {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    padding: 5px 8px;
    border-radius: 999px;
    color: #fff;
    background: rgba(249, 115, 22, 0.92);
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.26);
    font-size: 13px;
    font-weight: 900;
}

.play-badge {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 999px;
    color: #fff;
    background: rgba(17, 24, 39, 0.62);
    backdrop-filter: blur(10px);
    font-size: 12px;
    font-weight: 800;
}

.movie-card h2,
.movie-card h3 {
    margin: 12px 0 6px;
    font-size: 16px;
    line-height: 1.35;
    color: #111827;
    transition: color 0.2s ease;
}

.movie-card:hover h2,
.movie-card:hover h3 {
    color: var(--brand-dark);
}

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

.line-two {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-panel,
.rank-panel,
.search-panel,
.content-panel {
    border: 1px solid rgba(251, 146, 60, 0.24);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
}

.category-panel {
    padding: 26px;
}

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

.category-card {
    display: block;
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(135deg, #fff, #fff7ed);
    box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 35px rgba(249, 115, 22, 0.16);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 8px;
    color: #7c2d12;
}

.category-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.category-posters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 18px;
}

.category-posters img {
    aspect-ratio: 3 / 4;
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 52px 82px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(251, 146, 60, 0.24);
    border-radius: 20px;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
}

.rank-no {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--rose));
    font-size: 18px;
    font-weight: 900;
}

.rank-item img {
    width: 82px;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    object-fit: cover;
}

.rank-item h2,
.rank-item h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.rank-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.page-hero {
    padding: 54px 0;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #fb923c 50%, #f43f5e);
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 56px);
    letter-spacing: -0.04em;
}

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

.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 30px 0;
}

.search-box {
    flex: 1 1 260px;
    display: flex;
    overflow: hidden;
    border: 1px solid rgba(251, 146, 60, 0.42);
    border-radius: 999px;
    background: #fff;
}

.search-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 13px 16px;
}

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

.filter-chip {
    border: 0;
    padding: 9px 14px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-weight: 800;
    cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--rose));
}

.empty-state {
    display: none;
    padding: 42px;
    border-radius: 24px;
    color: var(--muted);
    text-align: center;
    background: #fff;
}

.empty-state.show {
    display: block;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0;
    color: #9a3412;
    font-weight: 800;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    color: #fff;
    background: #111827;
    box-shadow: var(--shadow);
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--detail-image);
    background-size: cover;
    background-position: center;
    filter: blur(30px) saturate(1.1);
    transform: scale(1.12);
    opacity: 0.36;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.68));
}

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

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border: 8px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    object-fit: cover;
    box-shadow: 0 30px 65px rgba(0, 0, 0, 0.34);
}

.detail-hero h1 {
    margin: 16px 0;
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-hero p {
    color: rgba(255, 255, 255, 0.86);
    font-size: 17px;
    line-height: 1.8;
}

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

.watch-card,
.article-card,
.side-card {
    padding: 24px;
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--shadow);
}

.watch-card h2,
.article-card h2,
.side-card h2 {
    margin: 0 0 18px;
    color: #111827;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #030712;
    aspect-ratio: 16 / 9;
}

.player-shell video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #030712;
}

.player-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, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.58));
    cursor: pointer;
}

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

.play-icon {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--rose));
    box-shadow: 0 16px 34px rgba(249, 115, 22, 0.34);
    font-size: 30px;
    transform: translateX(2px);
}

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

.article-card p {
    color: #374151;
    line-height: 1.9;
    font-size: 16px;
}

.info-table {
    display: grid;
    gap: 12px;
}

.info-row {
    display: flex;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ffedd5;
}

.info-row span:first-child {
    flex: 0 0 58px;
    color: #9a3412;
    font-weight: 900;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.site-footer {
    margin-top: 70px;
    padding: 44px 0;
    border-top: 1px solid rgba(251, 146, 60, 0.24);
    color: #7c2d12;
    background: linear-gradient(180deg, rgba(255, 247, 237, 0.4), #ffedd5);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-weight: 800;
}

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

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

@media (max-width: 860px) {
    .header-inner {
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .mobile-toggle {
        display: inline-block;
    }

    .nav,
    .header-search {
        display: none;
        width: 100%;
    }

    .nav.open,
    .header-search.open {
        display: flex;
    }

    .nav {
        flex-direction: column;
        align-items: stretch;
        margin-left: 0;
    }

    .nav a {
        border-radius: 14px;
    }

    .header-search {
        width: 100%;
    }

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

    .hero-slide {
        min-height: auto;
        padding: 34px;
    }

    .hero-poster {
        width: min(260px, 76vw);
    }

    .hero-dots {
        left: 34px;
        bottom: 22px;
    }

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

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

    .rank-item {
        grid-template-columns: 42px 70px minmax(0, 1fr);
    }

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

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

    .hero {
        padding-top: 24px;
    }

    .hero-slide {
        padding: 26px 22px 58px;
    }

    .hero h1,
    .hero h2,
    .detail-hero h1,
    .page-hero h1 {
        letter-spacing: -0.02em;
    }

    .section-head,
    .footer-inner {
        display: block;
    }

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

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

    .detail-hero-inner,
    .watch-card,
    .article-card,
    .side-card,
    .category-panel {
        padding: 18px;
    }
}
