:root {
    color-scheme: light;
    --page: #f8fafc;
    --card: #ffffff;
    --ink: #111827;
    --muted: #6b7280;
    --soft: #f3f4f6;
    --line: #e5e7eb;
    --amber: #d97706;
    --amber-dark: #b45309;
    --amber-soft: #fff7ed;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 46%, #f8fafc 100%);
    color: var(--ink);
    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;
    max-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.9);
    border-bottom: 1px solid rgba(229, 231, 235, 0.78);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), #f59e0b);
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.25);
}

.brand-text {
    font-size: 1.25rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 15px;
    border-radius: 999px;
    color: #374151;
    font-weight: 700;
    transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--amber-dark);
    background: var(--amber-soft);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--soft);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: #111827;
    border-radius: 999px;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-position: center;
    background-size: cover;
    transition: opacity 0.9s ease;
}

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

.hero-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.58) 48%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    max-width: 1180px;
    color: #ffffff;
}

.hero-content h1 {
    max-width: 780px;
    margin: 0 0 18px;
    font-size: clamp(2.5rem, 6vw, 5.2rem);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.hero-summary {
    max-width: 650px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.75;
}

.hero-kicker,
.section-kicker {
    margin: 0 0 10px;
    color: var(--amber);
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-meta,
.hero-actions,
.chip-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta {
    margin-bottom: 30px;
}

.hero-meta span {
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.primary-button,
.secondary-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border-radius: 14px;
    font-weight: 900;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), #f59e0b);
    box-shadow: 0 16px 30px rgba(217, 119, 6, 0.28);
}

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

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

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
    cursor: pointer;
    transition: 0.2s ease;
}

.hero-dot.is-active {
    width: 32px;
    background: var(--amber);
}

.section {
    padding: 58px 0;
}

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

.section-heading.centered {
    display: block;
    max-width: 760px;
    margin: 0 auto 24px;
    text-align: center;
}

.section-heading h2,
.page-hero h1,
.detail-intro h1 {
    margin: 0;
    color: #111827;
    font-weight: 950;
    letter-spacing: -0.045em;
}

.section-heading h2 {
    font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.section-heading p,
.page-hero p,
.detail-one-line {
    color: var(--muted);
    line-height: 1.75;
}

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

.search-panel {
    margin: 0 0 26px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.search-label {
    display: block;
    margin-bottom: 10px;
    color: #374151;
    font-weight: 900;
}

.search-row {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 12px;
}

.movie-search,
.movie-select {
    width: 100%;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 15px;
    color: #111827;
    background: #ffffff;
    outline: none;
}

.movie-search:focus,
.movie-select:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
}

.featured-band {
    background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 55%, #ffffff 100%);
}

.movie-grid {
    display: grid;
    gap: 22px;
}

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

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

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

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

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

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

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.86);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card-link:hover {
    border-color: rgba(217, 119, 6, 0.36);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.poster-frame {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #111827;
}

.large-card .poster-frame {
    aspect-ratio: 16 / 10;
}

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

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

.poster-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.72) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    color: #fbbf24;
    background: rgba(17, 24, 39, 0.72);
    font-size: 0.75rem;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.play-bubble {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: var(--amber);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: 0.22s ease;
}

.movie-card-link:hover .play-bubble {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

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

.movie-card-body h3 {
    display: -webkit-box;
    min-height: 3em;
    margin: 0 0 8px;
    overflow: hidden;
    color: #111827;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 9px;
    color: #6b7280;
    font-size: 0.82rem;
}

.movie-card-body p {
    display: -webkit-box;
    min-height: 3.2em;
    margin: 0 0 12px;
    overflow: hidden;
    color: #6b7280;
    font-size: 0.88rem;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    color: #92400e;
    background: #fff7ed;
    font-size: 0.75rem;
    font-weight: 800;
}

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

.category-tile,
.category-cover {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    border-radius: 24px;
    overflow: hidden;
    color: #ffffff;
    background-position: center;
    background-size: cover;
    box-shadow: var(--shadow);
    transition: transform 0.24s ease;
}

.category-tile:hover,
.category-cover:hover {
    transform: translateY(-4px);
}

.category-tile span,
.category-cover strong {
    margin-bottom: 8px;
    font-size: 1.4rem;
    font-weight: 950;
}

.category-tile em,
.category-cover em {
    color: rgba(255, 255, 255, 0.82);
    font-style: normal;
    line-height: 1.65;
}

.category-overview-card {
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.category-mini-list {
    display: grid;
    gap: 8px;
    padding: 16px;
    color: #6b7280;
    font-size: 0.9rem;
}

.category-mini-list span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-hero {
    min-height: 360px;
    display: flex;
    align-items: center;
    color: #ffffff;
    background-position: center;
    background-size: cover;
    background-color: #111827;
}

.small-hero {
    min-height: 300px;
    background: radial-gradient(circle at 25% 25%, rgba(245, 158, 11, 0.25), transparent 34%), linear-gradient(135deg, #111827 0%, #1f2937 62%, #78350f 100%);
}

.page-hero h1 {
    max-width: 860px;
    color: #ffffff;
    font-size: clamp(2.3rem, 5vw, 4.8rem);
}

.page-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.12rem;
}

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

.rank-link {
    display: grid;
    grid-template-columns: 64px 68px 1fr auto;
    align-items: center;
    gap: 16px;
    min-height: 92px;
    padding: 12px 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: 0.22s ease;
}

.rank-link:hover {
    border-color: rgba(217, 119, 6, 0.32);
    transform: translateX(4px);
}

.rank-number {
    color: var(--amber);
    font-size: 1.55rem;
    font-weight: 950;
    text-align: center;
}

.rank-link img {
    width: 68px;
    height: 68px;
    border-radius: 14px;
    object-fit: cover;
    background: #111827;
}

.rank-main {
    display: grid;
    gap: 5px;
}

.rank-main strong {
    font-size: 1.08rem;
}

.rank-main em,
.rank-side {
    color: #6b7280;
    font-style: normal;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 24px;
    color: #6b7280;
    font-size: 0.92rem;
}

.breadcrumb a {
    color: var(--amber-dark);
    font-weight: 800;
}

.detail-hero {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 42px;
    padding-top: 40px;
    padding-bottom: 36px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    background: #111827;
    box-shadow: var(--shadow);
}

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

.detail-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-intro h1 {
    font-size: clamp(2.3rem, 5vw, 4.7rem);
    line-height: 1.02;
}

.detail-one-line {
    max-width: 820px;
    margin: 20px 0;
    font-size: 1.14rem;
}

.detail-chips {
    margin-bottom: 24px;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 28px;
}

.detail-meta div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
}

.detail-meta dt {
    color: #9ca3af;
    font-size: 0.78rem;
    font-weight: 900;
}

.detail-meta dd {
    margin: 5px 0 0;
    color: #111827;
    font-weight: 900;
}

.page-detail .secondary-button {
    color: var(--amber-dark);
    border-color: rgba(217, 119, 6, 0.22);
    background: #fff7ed;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: var(--shadow);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.52);
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-ring {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber), #f59e0b);
    box-shadow: 0 0 0 18px rgba(217, 119, 6, 0.16);
}

.play-ring span {
    margin-left: 6px;
    font-size: 2.2rem;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 34px;
    align-items: start;
}

.detail-article,
.detail-side {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.detail-article h2,
.detail-side h2 {
    margin: 0 0 16px;
    color: #111827;
    font-size: 1.55rem;
    font-weight: 950;
}

.detail-article h2:not(:first-child) {
    margin-top: 26px;
}

.detail-article p {
    margin: 0;
    color: #4b5563;
    line-height: 1.95;
}

.site-footer {
    margin-top: 40px;
    padding: 38px 0;
    border-top: 1px solid var(--line);
    background: #111827;
    color: #d1d5db;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-brand {
    color: #ffffff;
    font-weight: 950;
    font-size: 1.25rem;
}

.footer-inner p {
    margin: 8px 0 0;
    color: #9ca3af;
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a {
    color: #fbbf24;
    font-weight: 800;
}

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

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

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

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

@media (max-width: 760px) {
    .header-inner {
        height: 64px;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: flex;
    }

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

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

    .hero-content {
        justify-content: flex-end;
        padding-bottom: 92px;
    }

    .hero-control {
        display: none;
    }

    .section {
        padding: 40px 0;
    }

    .section-heading {
        display: block;
    }

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

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

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

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

    .rank-link {
        grid-template-columns: 44px 58px 1fr;
        gap: 12px;
        padding: 10px;
    }

    .rank-side {
        grid-column: 3;
        font-size: 0.85rem;
    }

    .detail-hero {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

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

    .detail-article,
    .detail-side {
        padding: 20px;
    }

    .footer-inner {
        display: block;
    }

    .footer-links {
        margin-top: 18px;
        flex-wrap: wrap;
    }
}

@media (max-width: 430px) {
    .compact-grid,
    .catalog-grid,
    .wide-grid,
    .side-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        width: 100%;
    }

    .primary-button,
    .secondary-button {
        flex: 1 1 auto;
    }
}
