:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(146, 64, 14, 0.16);
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(120, 53, 15, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--amber-50);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

img {
    display: block;
    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;
    color: #ffffff;
    background: linear-gradient(90deg, var(--amber-600), #eab308);
    box-shadow: 0 12px 28px rgba(146, 64, 14, 0.18);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 178px;
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--amber-600);
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(120, 53, 15, 0.18);
    transition: transform 0.2s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text strong {
    font-size: 24px;
    letter-spacing: 0.02em;
}

.brand-text em {
    font-size: 12px;
    color: #fff7cc;
    font-style: normal;
}

.nav-menu {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    font-weight: 700;
}

.nav-menu a,
.nav-more button {
    color: #ffffff;
    border: 0;
    background: transparent;
    padding: 8px 0;
    cursor: pointer;
}

.nav-menu a:hover,
.nav-more button:hover {
    color: #fff7cc;
}

.nav-more {
    position: relative;
}

.nav-more-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 180px;
    padding: 10px;
    display: grid;
    gap: 2px;
    border-radius: 16px;
    color: var(--text);
    background: #ffffff;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.2s ease;
}

.nav-more:hover .nav-more-panel,
.nav-more:focus-within .nav-more-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-more-panel a {
    color: var(--text);
    padding: 8px 12px;
    border-radius: 10px;
}

.nav-more-panel a:hover {
    color: var(--amber-800);
    background: var(--amber-50);
}

.header-search {
    position: relative;
    width: min(310px, 28vw);
    display: flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    overflow: hidden;
}

.header-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    padding: 11px 82px 11px 18px;
}

.header-search input::placeholder {
    color: #fff7cc;
}

.header-search button {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    border: 0;
    border-radius: 999px;
    color: var(--amber-800);
    background: #ffffff;
    padding: 0 14px;
    font-weight: 800;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    width: 46px;
    height: 46px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    padding: 16px 0 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.mobile-menu a {
    display: block;
    padding: 10px 0;
    font-weight: 700;
}

.mobile-menu form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: 12px;
}

.mobile-menu input,
.mobile-menu button {
    border: 0;
    border-radius: 999px;
    padding: 11px 14px;
}

.hero {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-200), #fff7d6 45%, #fed7aa);
}

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

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: -20% -12% auto auto;
    width: 520px;
    height: 520px;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.12);
    filter: blur(6px);
}

.hero-layout {
    position: relative;
    min-height: 600px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    align-items: center;
    gap: 54px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    margin: 0 0 18px;
    padding: 7px 14px;
    border-radius: 999px;
    color: var(--amber-800);
    background: rgba(255, 255, 255, 0.72);
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(120, 53, 15, 0.12);
}

.hero h1,
.hero h2 {
    margin: 0 0 18px;
    color: var(--amber-900);
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy p {
    margin: 0 0 26px;
    color: var(--amber-800);
    font-size: clamp(17px, 2vw, 22px);
    max-width: 620px;
}

.hero-actions,
.detail-actions,
.section-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    border: 2px solid transparent;
    color: #ffffff;
    background: var(--amber-600);
    font-weight: 900;
    box-shadow: 0 14px 26px rgba(217, 119, 6, 0.26);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    background: var(--amber-700);
    box-shadow: 0 18px 34px rgba(217, 119, 6, 0.32);
}

.btn.secondary {
    color: var(--amber-700);
    background: #ffffff;
    border-color: var(--amber-600);
    box-shadow: 0 12px 22px rgba(120, 53, 15, 0.12);
}

.hero-art {
    min-height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-frame {
    position: relative;
    width: min(360px, 88%);
    aspect-ratio: 3 / 4;
    border-radius: 36px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 32px 70px rgba(120, 53, 15, 0.24);
    transform: rotate(2deg);
}

.hero-frame img {
    height: 100%;
    object-fit: cover;
    border-radius: 28px;
}

.hero-meta {
    position: absolute;
    left: -28px;
    bottom: 28px;
    display: grid;
    gap: 4px;
    padding: 13px 16px;
    border-radius: 18px;
    color: var(--amber-900);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 35px rgba(120, 53, 15, 0.2);
}

.hero-meta strong {
    font-size: 22px;
}

.hero-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: var(--amber-900);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
    cursor: pointer;
    z-index: 3;
}

.hero-control.prev {
    left: 18px;
}

.hero-control.next {
    right: 18px;
}

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

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

.hero-dots button.is-active {
    width: 34px;
    background: var(--amber-600);
}

.section {
    padding: 76px 0;
}

.section.soft {
    background: #fff7d6;
}

.section.dark {
    color: #ffffff;
    background: linear-gradient(180deg, var(--amber-900), var(--amber-800));
}

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

.section-head.center {
    display: block;
    text-align: center;
}

.section-head h1,
.section-head h2 {
    margin: 0 0 8px;
    color: var(--amber-900);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
}

.section.dark .section-head h1,
.section.dark .section-head h2 {
    color: #ffffff;
}

.section-head p {
    margin: 0;
    max-width: 700px;
    color: var(--amber-700);
    font-size: 18px;
}

.section.dark .section-head p {
    color: var(--amber-100);
}

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

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

.movie-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
    color: var(--text);
    background: var(--card);
    box-shadow: 0 12px 26px rgba(120, 53, 15, 0.1);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.card-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.card-poster img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.card-badge,
.card-score {
    position: absolute;
    top: 14px;
    border-radius: 999px;
    padding: 5px 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.card-badge {
    left: 14px;
    background: rgba(120, 53, 15, 0.86);
}

.card-score {
    right: 14px;
    background: rgba(220, 38, 38, 0.86);
}

.card-body {
    display: grid;
    gap: 9px;
    padding: 18px;
}

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

.card-body strong {
    font-size: 19px;
    color: #111827;
    line-height: 1.25;
}

.card-desc {
    min-height: 48px;
    color: var(--muted);
    font-size: 14px;
}

.card-meta {
    display: flex;
    gap: 10px;
    color: var(--amber-700);
    font-size: 13px;
    font-weight: 800;
}

.tag-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag-row span,
.pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    color: var(--amber-800);
    background: var(--amber-100);
    font-size: 12px;
    font-weight: 800;
}

.rail-wrap {
    position: relative;
    padding: 30px;
    border-radius: 34px;
    background: linear-gradient(90deg, var(--amber-100), #fef9c3);
}

.rail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.rail-head h2 {
    margin: 0;
    color: var(--amber-900);
    font-size: clamp(28px, 4vw, 42px);
}

.rail-controls {
    display: flex;
    gap: 10px;
}

.rail-controls button {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    color: var(--amber-900);
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(120, 53, 15, 0.14);
    cursor: pointer;
}

.movie-rail {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 8px;
}

.movie-rail .movie-card {
    flex: 0 0 300px;
}

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

.category-card {
    position: relative;
    min-height: 260px;
    padding: 28px;
    overflow: hidden;
    border-radius: 30px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-600), #ef4444);
    box-shadow: var(--shadow);
}

.category-card:nth-child(2n) {
    background: linear-gradient(135deg, #f97316, #d97706);
}

.category-card:nth-child(3n) {
    background: linear-gradient(135deg, #b45309, #eab308);
}

.category-card::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 160px;
    height: 160px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.category-card h2,
.category-card h3 {
    position: relative;
    margin: 0 0 12px;
    font-size: 28px;
}

.category-card p {
    position: relative;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.88);
}

.category-card ul {
    position: relative;
    margin: 0 0 22px;
    padding-left: 18px;
}

.category-card li {
    margin: 4px 0;
}

.category-card .btn {
    position: relative;
    color: var(--amber-800);
    background: #ffffff;
    box-shadow: none;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 52px 70px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(120, 53, 15, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.ranking-number {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: var(--amber-600);
    font-weight: 900;
}

.ranking-item img {
    height: 88px;
    object-fit: cover;
    border-radius: 14px;
}

.ranking-copy {
    display: grid;
    gap: 4px;
}

.ranking-copy strong {
    color: #111827;
}

.ranking-copy em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.ranking-hot {
    color: var(--amber-700);
    font-weight: 900;
}

.filter-panel {
    margin-bottom: 28px;
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 12px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(120, 53, 15, 0.09);
}

.filter-panel input,
.filter-panel select,
.search-main input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: 0;
    padding: 13px 16px;
    background: #fffdf7;
}

.search-main {
    display: grid;
    gap: 20px;
}

.search-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 16px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.search-box button {
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: var(--amber-600);
    padding: 0 28px;
    font-weight: 900;
    cursor: pointer;
}

.detail-hero {
    padding: 56px 0;
    background: linear-gradient(135deg, var(--amber-200), #fff7d6 58%, #fed7aa);
}

.breadcrumb {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    color: var(--amber-800);
    font-weight: 800;
}

.detail-grid {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 46px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 34px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: var(--shadow);
}

.detail-poster img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 26px;
}

.detail-copy h1 {
    margin: 0 0 16px;
    color: var(--amber-900);
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
}

.detail-one {
    margin: 0 0 22px;
    color: var(--amber-800);
    font-size: 20px;
}

.info-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.player-section {
    padding: 68px 0 24px;
}

.player-section h2,
.content-block h2,
.related-block h2 {
    margin: 0 0 22px;
    color: var(--amber-900);
    font-size: clamp(28px, 4vw, 40px);
}

.video-player {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000000;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

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

.player-poster {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.08));
    cursor: pointer;
}

.player-poster span {
    width: 90px;
    height: 90px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--amber-700);
    background: rgba(255, 255, 255, 0.92);
    font-size: 34px;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease;
}

.player-poster:hover span {
    transform: scale(1.06);
}

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

.content-block,
.related-block {
    padding: 44px 0;
}

.article-card {
    padding: 30px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(120, 53, 15, 0.08);
}

.article-card p {
    margin: 0 0 18px;
    color: #374151;
    font-size: 17px;
}

.article-card p:last-child {
    margin-bottom: 0;
}

.is-hidden {
    display: none !important;
}

.site-footer {
    color: #fff7cc;
    background: linear-gradient(180deg, var(--amber-800), var(--amber-900));
}

.footer-grid {
    padding: 48px 0;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 34px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    margin-bottom: 14px;
}

.footer-brand .brand-mark {
    width: 38px;
    height: 38px;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
}

.site-footer p {
    margin: 0;
}

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

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

.footer-bottom {
    padding: 18px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

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

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

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

    .hero-layout,
    .detail-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-copy,
    .detail-copy {
        margin: 0 auto;
    }

    .hero-actions,
    .detail-actions {
        justify-content: center;
    }

    .hero-art {
        min-height: 320px;
    }

    .detail-poster {
        width: min(330px, 82vw);
        margin: 0 auto;
    }

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

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

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

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

    .brand-mark {
        width: 42px;
        height: 42px;
    }

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

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

    .hero-layout {
        padding: 36px 0 90px;
    }

    .hero-control {
        top: auto;
        bottom: 26px;
        transform: none;
    }

    .hero-control.prev {
        left: 24px;
    }

    .hero-control.next {
        right: 24px;
    }

    .hero-dots {
        bottom: 42px;
    }

    .section {
        padding: 54px 0;
    }

    .section-head,
    .rail-head {
        display: grid;
        gap: 14px;
        align-items: start;
    }

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

    .movie-rail .movie-card {
        flex-basis: 260px;
    }

    .ranking-item {
        grid-template-columns: 44px 62px 1fr;
    }

    .ranking-hot {
        display: none;
    }

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

    .search-box button {
        min-height: 44px;
    }
}
