:root {
    --rose: #e11d48;
    --orange: #f97316;
    --amber: #f59e0b;
    --ink: #111827;
    --muted: #6b7280;
    --paper: #ffffff;
    --soft: #f8fafc;
    --line: rgba(17, 24, 39, 0.08);
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 24%, #f8fafc 100%);
    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;
    max-width: 100%;
}

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, #e11d48 0%, #f97316 52%, #f59e0b 100%);
    color: #ffffff;
    box-shadow: 0 16px 38px rgba(225, 29, 72, 0.26);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

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

.nav-link,
.mobile-link {
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 650;
    transition: background 0.22s ease, transform 0.22s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.header-search,
.mobile-search,
.wide-search {
    display: flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.header-search input,
.mobile-search input,
.wide-search input {
    width: 230px;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    padding: 11px 14px;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
    color: rgba(255, 255, 255, 0.78);
}

.header-search button,
.mobile-search button,
.wide-search button,
.filter-bar button {
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.22);
    padding: 11px 18px;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
    border-radius: 2px;
}

.mobile-panel {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

.mobile-panel nav {
    display: grid;
    gap: 6px;
    margin-top: 12px;
}

.hero-carousel {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    background: #0f172a;
}

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

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

.hero-slide > img,
.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 45%, rgba(249, 115, 22, 0.18), transparent 36%),
        linear-gradient(90deg, rgba(3, 7, 18, 0.9) 0%, rgba(15, 23, 42, 0.64) 45%, rgba(15, 23, 42, 0.12) 100%);
}

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

.hero-content h1 {
    max-width: 760px;
    margin: 14px 0 16px;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 0.96;
    letter-spacing: -0.07em;
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2vw, 22px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 7px 14px;
    color: #ffffff;
    background: linear-gradient(90deg, #e11d48, #f97316);
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(225, 29, 72, 0.26);
}

.hero-meta,
.detail-meta,
.tag-row,
.hero-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hero-meta span,
.detail-meta span,
.hero-tags span,
.detail-tags a,
.tag-row span {
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.18);
    color: inherit;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags {
    margin-top: 10px;
}

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

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

.primary-button {
    color: #ffffff;
    background: linear-gradient(90deg, #e11d48, #f97316);
    box-shadow: 0 20px 40px rgba(225, 29, 72, 0.25);
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover,
.movie-card:hover,
.category-card-large:hover,
.podium-card:hover {
    transform: translateY(-3px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(16px);
    cursor: pointer;
    font-size: 34px;
    line-height: 1;
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

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

.home-search-panel,
.category-strip,
.content-section,
.page-hero,
.podium-grid,
.detail-layout,
.player-section,
.detail-panel {
    width: min(1200px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.home-search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
    gap: 24px;
    align-items: center;
    margin-top: -54px;
    position: relative;
    z-index: 8;
    border-radius: var(--radius);
    padding: 26px;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.96), rgba(249, 115, 22, 0.94));
    box-shadow: var(--shadow);
}

.home-search-panel h2,
.home-search-panel p {
    margin: 0;
}

.home-search-panel p {
    color: rgba(255, 255, 255, 0.86);
}

.wide-search {
    background: rgba(255, 255, 255, 0.16);
}

.wide-search input {
    width: 100%;
}

.category-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 30px 0 8px;
}

.category-strip a {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 10px 16px;
    background: #ffffff;
    color: #be123c;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.content-section {
    padding: 54px 0;
}

.tinted-section {
    width: 100%;
    max-width: none;
    padding: 56px max(16px, calc((100% - 1200px) / 2));
    background: linear-gradient(180deg, rgba(255, 237, 213, 0.8), rgba(255, 255, 255, 0));
}

.section-heading {
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 5px 0 0;
    color: var(--muted);
}

.section-heading a,
.text-button {
    color: #e11d48;
    background: #fff1f2;
}

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

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

.movie-card {
    display: block;
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #1f2937;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(3, 7, 18, 0.58));
}

.region-badge,
.rank-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    border-radius: 999px;
    padding: 6px 10px;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.95);
    font-size: 12px;
    font-weight: 800;
}

.rank-badge {
    left: 12px;
    right: auto;
    background: rgba(225, 29, 72, 0.95);
}

.movie-info {
    display: grid;
    gap: 9px;
    padding: 16px;
}

.movie-info strong {
    font-size: 18px;
    line-height: 1.32;
}

.movie-info em {
    min-height: 44px;
    color: var(--muted);
    font-size: 14px;
    font-style: normal;
}

.tag-row span {
    background: #f3f4f6;
    color: #4b5563;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    color: #6b7280;
    font-size: 13px;
}

.meta-row b,
.meta-row i {
    font-style: normal;
    font-weight: 700;
}

.page-hero {
    min-height: 300px;
    margin-top: 34px;
    border-radius: 32px;
    padding: clamp(32px, 6vw, 72px);
    color: #ffffff;
    background:
        radial-gradient(circle at 85% 20%, rgba(245, 158, 11, 0.38), transparent 32%),
        linear-gradient(135deg, #881337 0%, #e11d48 45%, #f97316 100%);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    max-width: 760px;
    margin: 18px 0 12px;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.03;
    letter-spacing: -0.06em;
}

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

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

.category-card-large {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 22px;
    align-items: center;
    border-radius: var(--radius);
    padding: 26px;
    background: #ffffff;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.09);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card-large h2 {
    margin: 0 0 10px;
    font-size: 26px;
}

.category-card-large p {
    margin: 0 0 18px;
    color: var(--muted);
}

.mini-posters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.mini-posters a {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 1;
    background: #1f2937;
}

.mini-posters img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-posters span {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 18px 8px 8px;
    color: #ffffff;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
    font-size: 12px;
    font-weight: 800;
}

.filter-bar {
    width: min(1200px, calc(100% - 32px));
    margin: 26px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 120px;
    gap: 12px;
    padding: 16px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.search-filter {
    grid-template-columns: minmax(0, 1fr) 180px 180px 120px;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 12px 16px;
    outline: 0;
    background: #f9fafb;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: #fb7185;
    box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.14);
}

.filter-bar button {
    border-radius: 999px;
    background: linear-gradient(90deg, #e11d48, #f97316);
}

.empty-state {
    display: none;
    margin-top: 22px;
    border-radius: 20px;
    padding: 28px;
    text-align: center;
    color: var(--muted);
    background: #ffffff;
}

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

.podium-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding-top: 34px;
}

.podium-card {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    border-radius: 28px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #ffffff;
    background: #0f172a;
    box-shadow: var(--shadow);
    transition: transform 0.22s ease;
}

.podium-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.82;
}

.podium-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(3, 7, 18, 0.82));
}

.podium-card span,
.podium-card h2,
.podium-card p {
    position: relative;
    z-index: 2;
}

.podium-card span {
    width: fit-content;
    border-radius: 999px;
    padding: 7px 12px;
    background: linear-gradient(90deg, #e11d48, #f97316);
    font-weight: 900;
}

.podium-card h2 {
    margin: 14px 0 8px;
    font-size: 28px;
}

.podium-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
}

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

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

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 7, 18, 0.95), rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.32));
}

.detail-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: clamp(28px, 5vw, 70px);
    align-items: center;
    min-height: 620px;
    padding: 60px 0;
}

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

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

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

.detail-copy h1 {
    margin: 18px 0 16px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.detail-copy p {
    max-width: 760px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
}

.detail-tags {
    margin: 18px 0 26px;
}

.player-section {
    margin-top: -70px;
    position: relative;
    z-index: 5;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.movie-player,
.player-cover,
.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.movie-player {
    object-fit: contain;
    background: #020617;
}

.player-cover {
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: opacity 0.26s ease, visibility 0.26s ease;
}

.player-cover img {
    object-fit: cover;
    opacity: 0.5;
    filter: saturate(1.05);
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(249, 115, 22, 0.2), rgba(3, 7, 18, 0.65));
}

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

.play-button {
    position: relative;
    z-index: 3;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    color: #ffffff;
    background: linear-gradient(90deg, #e11d48, #f97316);
    box-shadow: 0 24px 55px rgba(225, 29, 72, 0.42);
    cursor: pointer;
    font-weight: 900;
}

.play-button span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.detail-panel {
    margin-top: 28px;
    border-radius: 26px;
    padding: clamp(24px, 4vw, 42px);
    background: #ffffff;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.detail-panel h2 {
    margin: 0 0 14px;
    font-size: 28px;
}

.detail-panel p {
    margin: 0;
    color: #374151;
    font-size: 17px;
}

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

.info-table div {
    display: grid;
    gap: 4px;
    border-radius: 16px;
    padding: 16px;
    background: #f9fafb;
}

.info-table span {
    color: var(--muted);
    font-size: 13px;
}

.info-table strong {
    font-size: 16px;
}

.related-section {
    padding-top: 34px;
}

.site-footer {
    margin-top: 40px;
    color: #d1d5db;
    background: linear-gradient(180deg, #111827, #020617);
}

.footer-grid {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 34px;
    padding: 48px 0;
}

.footer-brand {
    color: #ffffff;
}

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

.footer-grid p {
    max-width: 420px;
    color: #9ca3af;
}

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

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

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

.copyright {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
    color: #9ca3af;
    text-align: center;
    font-size: 14px;
}

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

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

    .home-search-panel,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

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

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

    .brand {
        font-size: 19px;
    }

    .mobile-search input {
        width: 100%;
    }

    .hero-carousel,
    .hero-content {
        min-height: 82vh;
    }

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

    .hero-arrow {
        display: none;
    }

    .home-search-panel {
        margin-top: -34px;
        padding: 22px;
    }

    .wide-search {
        display: grid;
        border-radius: 18px;
    }

    .wide-search input,
    .wide-search button {
        width: 100%;
        color: #ffffff;
    }

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

    .movie-info {
        padding: 13px;
    }

    .movie-info strong {
        font-size: 16px;
    }

    .movie-info em {
        font-size: 13px;
    }

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

    .detail-layout {
        min-height: auto;
        padding-top: 34px;
    }

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

    .player-section {
        margin-top: 0;
        width: 100%;
    }

    .player-shell {
        border-radius: 0;
    }

    .info-table {
        grid-template-columns: 1fr;
    }

    .footer-links.compact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .movie-grid,
    .rank-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1,
    .detail-copy h1 {
        letter-spacing: -0.04em;
    }

    .section-heading {
        display: grid;
        gap: 12px;
    }
}
