:root {
    --bg: #fff7ed;
    --surface: #ffffff;
    --surface-soft: #fffbeb;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(146, 64, 14, 0.14);
    --brand: #d97706;
    --brand-dark: #b45309;
    --brand-soft: #fef3c7;
    --danger: #dc2626;
    --shadow: 0 24px 70px rgba(120, 53, 15, 0.14);
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(135deg, #fffaf0 0%, #fff7ed 46%, #fef2f2 100%);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 251, 235, 0.88);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: #111827;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #dc2626);
    box-shadow: 0 12px 28px rgba(217, 119, 6, 0.32);
}

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

.desktop-nav a,
.mobile-menu a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 700;
    transition: 0.25s ease;
}

.desktop-nav a:hover,
.mobile-menu a:hover {
    color: #92400e;
    background: rgba(245, 158, 11, 0.12);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(330px, 35vw);
    padding: 6px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 32px rgba(120, 53, 15, 0.08);
}

.header-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 8px 10px;
    color: var(--text);
}

.header-search button,
.primary-button,
.ghost-button,
.big-search button {
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.25s ease;
}

.header-search button,
.primary-button,
.big-search button {
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #dc2626);
    box-shadow: 0 14px 34px rgba(217, 119, 6, 0.26);
}

.header-search button:hover,
.primary-button:hover,
.big-search button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(217, 119, 6, 0.36);
}

.ghost-button {
    color: #92400e;
    background: rgba(255, 255, 255, 0.88);
    border: 2px solid rgba(217, 119, 6, 0.35);
}

.ghost-button:hover {
    transform: translateY(-2px);
    background: #ffffff;
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(120, 53, 15, 0.12);
}

.mobile-menu-button span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    border-radius: 99px;
    background: #92400e;
}

.mobile-menu {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 18px;
    padding: 10px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.mobile-menu.is-open {
    display: grid;
    gap: 4px;
}

.hero-slider {
    position: relative;
    min-height: 690px;
    overflow: hidden;
    display: grid;
    align-items: center;
    background: radial-gradient(circle at 15% 20%, rgba(251, 191, 36, 0.45), transparent 30%), radial-gradient(circle at 84% 18%, rgba(248, 113, 113, 0.32), transparent 32%), linear-gradient(135deg, #fffbeb, #fff7ed 48%, #fef2f2);
}

.hero-orb {
    position: absolute;
    width: 290px;
    height: 290px;
    border-radius: 999px;
    filter: blur(46px);
    opacity: 0.55;
    animation: floatOrb 9s ease-in-out infinite;
}

.hero-orb-one {
    left: 8%;
    top: 18%;
    background: #fbbf24;
}

.hero-orb-two {
    right: 9%;
    top: 16%;
    background: #fb7185;
    animation-delay: 1.2s;
}

.hero-orb-three {
    left: 46%;
    bottom: 7%;
    background: #fb923c;
    animation-delay: 2.4s;
}

@keyframes floatOrb {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(20px, -18px, 0) scale(1.08);
    }
}

.hero-track {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.06fr) minmax(310px, 0.72fr);
    gap: 56px;
    align-items: center;
    min-height: 560px;
    padding: 74px 0 86px;
}

.hero-slide.is-active {
    display: grid;
    animation: fadeUp 0.55s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-weight: 950;
    line-height: 0.98;
    letter-spacing: -0.05em;
    color: #1f2937;
}

.hero-copy h1,
.hero-copy h2 {
    font-size: clamp(42px, 7vw, 88px);
}

.hero-copy h2 + p,
.hero-copy h1 + h2 + p {
    margin-top: 22px;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
    color: #5b6472;
    font-size: 18px;
    line-height: 1.85;
    max-width: 720px;
}

.hero-eyebrow,
.section-heading span,
.page-hero span,
.rank-panel-head span {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.12);
    color: #92400e;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.hero-tags,
.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    color: #92400e;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(217, 119, 6, 0.18);
    font-size: 13px;
    font-weight: 800;
}

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

.hero-poster {
    position: relative;
    display: block;
    padding: 12px;
    border-radius: 36px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow);
    transform: rotate(2deg);
    transition: 0.32s ease;
}

.hero-poster:hover {
    transform: rotate(0deg) translateY(-6px);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4.1;
    object-fit: cover;
    border-radius: 28px;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.hero-poster span {
    position: absolute;
    left: 28px;
    bottom: 28px;
    padding: 10px 16px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.82);
    backdrop-filter: blur(12px);
    font-weight: 900;
}

.hero-controls {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 32px;
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translateX(-50%);
}

.hero-controls > button,
.hero-dot {
    border: 0;
    cursor: pointer;
    transition: 0.25s ease;
}

.hero-controls > button {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: #92400e;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 12px 28px rgba(120, 53, 15, 0.12);
    font-size: 30px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
}

.hero-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(146, 64, 14, 0.3);
}

.hero-dot.is-active {
    width: 28px;
    background: #d97706;
}

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

.section-light {
    width: 100%;
    padding-left: max(16px, calc((100% - 1180px) / 2));
    padding-right: max(16px, calc((100% - 1180px) / 2));
    background: rgba(255, 255, 255, 0.42);
}

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

.section-heading.align-left {
    text-align: left;
    margin-left: 0;
}

.section-heading h2,
.rank-panel-head h2,
.detail-article h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #1f2937;
    font-weight: 950;
}

.section-heading p,
.rank-panel-head a {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    box-shadow: 0 16px 42px rgba(120, 53, 15, 0.08);
    transition: 0.28s ease;
}

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

.movie-card[hidden] {
    display: none;
}

.movie-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--brand-soft);
}

.movie-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: 0.32s ease;
}

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

.movie-badge,
.play-chip {
    position: absolute;
    top: 14px;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 900;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(12px);
}

.movie-badge {
    left: 14px;
}

.play-chip {
    right: 14px;
    background: linear-gradient(135deg, #f59e0b, #dc2626);
}

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

.movie-meta-line {
    color: #b45309;
    font-size: 13px;
    font-weight: 900;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.movie-card h3 {
    margin: 8px 0 8px;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 950;
    color: #111827;
}

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

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 26px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 247, 237, 0.86));
    border: 1px solid var(--line);
    box-shadow: 0 18px 45px rgba(120, 53, 15, 0.08);
    transition: 0.28s ease;
}

.category-tile:before {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    right: -42px;
    top: -42px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.18);
}

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

.category-tile span {
    position: relative;
    display: block;
    font-size: 24px;
    font-weight: 950;
    color: #111827;
}

.category-tile p {
    position: relative;
    margin: 14px 0 22px;
    color: var(--muted);
    line-height: 1.75;
}

.category-tile strong {
    position: relative;
    color: #b45309;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 30px;
    align-items: start;
}

.rank-panel {
    padding: 24px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.sticky-panel {
    position: sticky;
    top: 100px;
}

.rank-panel-head {
    margin-bottom: 16px;
}

.rank-panel-head h2 {
    font-size: 32px;
}

.rank-panel-head a {
    display: inline-flex;
    color: #b45309;
    font-weight: 900;
}

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

.tall-rank-list {
    max-height: 760px;
    overflow: auto;
    padding-right: 4px;
}

.rank-row {
    display: grid;
    grid-template-columns: 42px 62px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 20px;
    background: rgba(255, 247, 237, 0.74);
    transition: 0.25s ease;
}

.rank-row:hover {
    background: #ffedd5;
    transform: translateX(4px);
}

.rank-number {
    color: #dc2626;
    font-weight: 950;
    font-size: 18px;
    text-align: center;
}

.rank-row img {
    width: 62px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
    background: var(--brand-soft);
}

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

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

.rank-info strong {
    font-size: 15px;
    color: #111827;
}

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

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 96px max(16px, calc((100% - 1180px) / 2));
    background: radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.36), transparent 30%), linear-gradient(135deg, #fff7ed, #fef2f2);
}

.compact-page-hero {
    min-height: 330px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-hero h1 {
    font-size: clamp(44px, 7vw, 82px);
}

.page-hero p {
    margin-top: 18px;
}

.filter-bar,
.big-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px 170px;
    gap: 12px;
    margin-bottom: 28px;
    padding: 12px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--line);
    box-shadow: 0 14px 36px rgba(120, 53, 15, 0.08);
}

.big-search {
    grid-template-columns: minmax(0, 1fr) auto;
    max-width: 760px;
    margin-top: 26px;
    margin-bottom: 0;
}

.filter-bar input,
.filter-bar select,
.big-search input {
    width: 100%;
    border: 1px solid rgba(217, 119, 6, 0.16);
    outline: 0;
    border-radius: 18px;
    padding: 13px 14px;
    color: var(--text);
    background: #ffffff;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: #ffffff;
    background: #111827;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(22px) saturate(1.12);
    transform: scale(1.08);
    opacity: 0.42;
}

.detail-backdrop:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.72) 48%, rgba(120, 53, 15, 0.62));
}

.detail-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 70px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 36px;
    font-weight: 700;
}

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

.detail-grid {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-poster {
    padding: 10px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.13);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.35);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 24px;
    background: #fef3c7;
}

.detail-info .hero-eyebrow {
    color: #fbbf24;
    background: rgba(255, 255, 255, 0.12);
}

.detail-info h1 {
    color: #ffffff;
    font-size: clamp(42px, 6vw, 74px);
}

.detail-one-line {
    color: rgba(255, 255, 255, 0.8);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 30px;
}

.detail-meta span {
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.86);
    font-weight: 800;
}

.section-player {
    padding-top: 54px;
    padding-bottom: 54px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    background: #020617;
    box-shadow: 0 30px 90px rgba(17, 24, 39, 0.28);
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.72));
    cursor: pointer;
    transition: 0.25s ease;
}

.play-overlay span {
    width: 86px;
    height: 86px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #dc2626);
    box-shadow: 0 20px 50px rgba(220, 38, 38, 0.38);
    position: relative;
}

.play-overlay span:after {
    content: "";
    position: absolute;
    left: 35px;
    top: 25px;
    border-left: 24px solid #ffffff;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
}

.play-overlay strong {
    font-size: 22px;
    letter-spacing: 0.02em;
}

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

.detail-text-section {
    padding-top: 26px;
}

.detail-article {
    max-width: 920px;
    margin: 0 auto;
    padding: 34px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    box-shadow: 0 18px 45px rgba(120, 53, 15, 0.08);
}

.detail-article h2 + p {
    margin-top: 16px;
}

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

.site-footer {
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937 52%, #111827);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 36px;
    padding: 54px 0;
}

.footer-logo {
    color: #ffffff;
    margin-bottom: 16px;
}

.site-footer p {
    max-width: 520px;
    color: #9ca3af;
    line-height: 1.8;
}

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

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

.footer-links a {
    color: #9ca3af;
}

.footer-links a:hover {
    color: #fbbf24;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
}

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

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

    .split-section,
    .ranking-layout {
        grid-template-columns: 1fr;
    }

    .sticky-panel {
        position: static;
    }
}

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

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

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

    .hero-slide {
        gap: 28px;
        min-height: auto;
        padding-top: 52px;
    }

    .hero-poster {
        max-width: 360px;
        margin: 0 auto;
    }

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

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

@media (max-width: 560px) {
    .header-inner,
    .section,
    .hero-track,
    .detail-content,
    .footer-grid,
    .footer-bottom {
        width: min(100% - 22px, 1180px);
    }

    .hero-slider {
        min-height: 620px;
    }

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

    .movie-grid,
    .compact-grid,
    .category-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

    .rank-row {
        grid-template-columns: 34px 54px minmax(0, 1fr);
    }
}
