:root {
    --bg: #fffaf0;
    --surface: #ffffff;
    --surface-soft: #fffbeb;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #fde68a;
    --brand: #d97706;
    --brand-dark: #b45309;
    --brand-soft: #fef3c7;
    --orange: #f97316;
    --shadow: 0 20px 45px rgba(146, 64, 14, 0.13);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.22), transparent 28rem), var(--bg);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.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);
    border-bottom: 1px solid rgba(251, 191, 36, 0.35);
    box-shadow: 0 10px 30px rgba(146, 64, 14, 0.08);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--brand-dark);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    color: white;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 10px 22px rgba(217, 119, 6, 0.28);
}

.brand-name {
    font-size: 1.25rem;
    background: linear-gradient(90deg, #b45309, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
    color: #4b5563;
    font-weight: 700;
}

.desktop-nav a,
.footer-links a,
.quick-links a {
    transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.footer-links a:hover {
    color: var(--brand);
}

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

.top-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 999px;
    background: #ffffff;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input {
    width: 220px;
    padding: 10px 14px;
}

.top-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.top-search button,
.mobile-search button,
.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

.top-search button,
.mobile-search button,
.btn-primary {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.25);
}

.top-search button,
.mobile-search button {
    padding: 10px 16px;
}

.btn-primary,
.btn-ghost {
    padding: 13px 22px;
    min-height: 46px;
}

.btn-ghost {
    color: var(--brand-dark);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(245, 158, 11, 0.32);
}

.btn-ghost.light {
    color: white;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
}

.btn-primary:hover,
.btn-ghost:hover,
.quick-links a:hover {
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #fff7ed;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--brand-dark);
}

.mobile-panel {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid rgba(245, 158, 11, 0.24);
}

.mobile-panel a {
    display: block;
    padding: 12px 0;
    font-weight: 700;
    color: #4b5563;
}

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

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

.hero-slider,
.hero-slide {
    min-height: 650px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 0.75s ease, transform 0.75s ease;
    transform: scale(1.02);
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: center;
    gap: 56px;
    min-height: 650px;
    padding: 80px 0 96px;
    color: white;
}

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

.eyebrow,
.section-title span {
    display: inline-flex;
    align-items: center;
    width: max-content;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.16);
    color: #f59e0b;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(2.3rem, 6vw, 5.5rem);
    line-height: 1.03;
    letter-spacing: -0.07em;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.08rem;
    line-height: 1.9;
}

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

.hero-poster,
.detail-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.hero-poster img,
.detail-poster img {
    aspect-ratio: 2 / 3;
    height: 480px;
    object-fit: cover;
}

.hero-poster span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 9px 14px;
    border-radius: 999px;
    color: white;
    background: rgba(0, 0, 0, 0.55);
    font-weight: 800;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    color: white;
    background: rgba(17, 24, 39, 0.48);
    font-size: 2rem;
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

.hero-dot.is-active {
    width: 32px;
    background: #f59e0b;
}

.quick-panel {
    margin-top: -54px;
    position: relative;
    z-index: 8;
}

.quick-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 24px;
    padding: 28px;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.quick-grid h2,
.section-title h2,
.movie-card h2,
.rank-card h2,
.content-card h2,
.meta-card h2 {
    margin: 0;
    letter-spacing: -0.035em;
}

.quick-grid p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.quick-links a {
    padding: 10px 15px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--brand-dark);
    font-weight: 800;
}

.section-block,
.page-main,
.player-section {
    padding: 72px 0 0;
}

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

.section-title h2 {
    font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.section-title a {
    color: var(--brand-dark);
    font-weight: 900;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 14px 34px rgba(146, 64, 14, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(146, 64, 14, 0.16);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #111827;
}

.poster-link img {
    aspect-ratio: 2 / 3;
    height: 260px;
    object-fit: cover;
    transition: transform 0.28s ease;
}

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

.card-badge,
.poster-play {
    position: absolute;
    z-index: 2;
}

.card-badge {
    left: 12px;
    top: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    font-size: 0.78rem;
    font-weight: 900;
}

.poster-play {
    right: 12px;
    bottom: 12px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    color: white;
    background: rgba(0, 0, 0, 0.62);
}

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

.movie-card h2 {
    font-size: 1rem;
    line-height: 1.35;
}

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

.movie-meta,
.movie-desc {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

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

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.tag-row span {
    padding: 5px 8px;
    border-radius: 999px;
    background: #fffbeb;
    color: #92400e;
    font-size: 0.76rem;
    font-weight: 800;
}

.large-tags span {
    background: rgba(255, 255, 255, 0.16);
    color: #fde68a;
}

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

.category-card {
    padding: 24px;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff, #fffbeb);
    box-shadow: var(--shadow);
}

.category-card > a {
    display: grid;
    gap: 10px;
}

.category-card span {
    color: var(--brand-dark);
    font-size: 1.3rem;
    font-weight: 900;
}

.category-card strong {
    color: #4b5563;
    font-weight: 600;
    line-height: 1.8;
}

.category-card div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.category-card div a {
    padding: 7px 10px;
    border-radius: 999px;
    background: white;
    color: #92400e;
    font-size: 0.86rem;
    font-weight: 800;
}

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

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

.rank-card {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 20px;
    background: white;
    box-shadow: 0 12px 26px rgba(146, 64, 14, 0.08);
}

.rank-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 16px;
}

.rank-poster img {
    aspect-ratio: 2 / 3;
    height: 132px;
    object-fit: cover;
}

.rank-poster span {
    position: absolute;
    left: 8px;
    top: 8px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    font-weight: 900;
}

.rank-card h2 {
    font-size: 1.03rem;
}

.rank-card p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

.page-main {
    padding-bottom: 72px;
}

.page-hero {
    overflow: hidden;
    margin-bottom: 32px;
    padding: 54px;
    border-radius: 32px;
    color: white;
    background: linear-gradient(135deg, #92400e, #f59e0b 58%, #fb923c);
    box-shadow: var(--shadow);
}

.page-hero p {
    max-width: 780px;
}

.simple-hero,
.channel-hero,
.ranking-hero,
.search-hero {
    background: linear-gradient(135deg, #111827, #92400e 48%, #f59e0b);
}

.category-overview-block {
    padding: 36px 0;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px 190px;
    gap: 14px;
    margin-bottom: 26px;
    padding: 18px;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 36px rgba(146, 64, 14, 0.09);
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    padding: 13px 16px;
}

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

.detail-main {
    background: var(--bg);
}

.detail-hero {
    min-height: 600px;
    background-position: center;
    background-size: cover;
    color: white;
}

.detail-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: center;
    gap: 52px;
    min-height: 600px;
    padding: 72px 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.92rem;
}

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

.detail-copy p {
    max-width: 780px;
}

.detail-poster img {
    height: 455px;
}

.player-section {
    scroll-margin-top: 92px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000000;
    box-shadow: 0 28px 70px rgba(17, 24, 39, 0.26);
}

.movie-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: white;
    background: radial-gradient(circle, rgba(17, 24, 39, 0.16), rgba(17, 24, 39, 0.78));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    padding-left: 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 20px 46px rgba(245, 158, 11, 0.36);
    font-size: 2rem;
}

.player-overlay strong {
    font-size: 1.2rem;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    padding-top: 42px;
}

.content-card,
.meta-card {
    padding: 28px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 26px;
    background: white;
    box-shadow: var(--shadow);
}

.content-card h2:not(:first-child) {
    margin-top: 28px;
}

.content-card p {
    margin: 14px 0 0;
    color: #4b5563;
    line-height: 2;
}

.meta-card dl {
    margin: 18px 0 0;
}

.meta-card dt {
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.86rem;
}

.meta-card dd {
    margin: 5px 0 0;
    font-weight: 800;
}

.site-footer {
    margin-top: 80px;
    padding: 54px 0 0;
    background: #111827;
    color: #e5e7eb;
}

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

.footer-brand {
    font-size: 1.35rem;
    color: #fbbf24;
}

.site-footer p {
    color: #d1d5db;
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 16px;
    font-size: 1rem;
    color: #ffffff;
}

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

.footer-bottom {
    margin-top: 42px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    text-align: center;
}

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

    .top-search {
        display: none;
    }
}

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

    .mobile-toggle {
        display: block;
        margin-left: auto;
    }

    .hero-section,
    .hero-slider,
    .hero-slide {
        min-height: 760px;
    }

    .hero-content,
    .detail-hero-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        min-height: 760px;
        padding: 56px 0 96px;
    }

    .hero-poster,
    .detail-poster {
        width: min(300px, 78vw);
    }

    .hero-poster img,
    .detail-poster img {
        height: auto;
    }

    .quick-grid,
    .category-grid,
    .rank-grid,
    .detail-content-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 34px;
    }

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

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

    .header-inner {
        min-height: 64px;
    }

    .brand-name {
        font-size: 1.05rem;
    }

    .hero-copy h1,
    .hero-copy h2,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 2.45rem;
    }

    .hero-arrow {
        display: none;
    }

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

    .poster-link img {
        height: auto;
    }

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

    .rank-card {
        grid-template-columns: 76px 1fr;
    }

    .rank-poster img {
        height: 110px;
    }

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

    .quick-panel {
        margin-top: -32px;
    }

    .quick-grid {
        padding: 20px;
    }

    .content-card,
    .meta-card {
        padding: 22px;
    }
}
