:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-strong: #f1f5f9;
    --text: #172033;
    --muted: #64748b;
    --line: #dbe7f4;
    --blue: #2563eb;
    --blue-dark: #1e3a8a;
    --indigo: #4f46e5;
    --purple: #7c3aed;
    --pink: #db2777;
    --orange: #ea580c;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
    --soft-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 48%, #f7f0ff 100%);
    min-height: 100vh;
}

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

img {
    display: block;
    max-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: 100;
    background: rgba(241, 247, 255, 0.92);
    border-bottom: 1px solid rgba(37, 99, 235, 0.18);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.28);
}

.brand strong {
    display: block;
    font-size: 22px;
    line-height: 1;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #1e40af, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand small {
    display: block;
    margin-top: 5px;
    color: #31548b;
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link,
.mobile-link {
    padding: 10px 15px;
    border-radius: 12px;
    color: #213a66;
    font-weight: 700;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--indigo));
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.header-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    padding: 6px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
}

.header-search input,
.mobile-search input,
.big-search input,
.catalog-controls input,
.catalog-controls select {
    border: 0;
    outline: 0;
    color: var(--text);
    background: #ffffff;
}

.header-search input {
    width: 210px;
    padding: 9px 14px;
    border-radius: 999px;
    background: transparent;
}

.header-search button,
.mobile-search button,
.big-search button,
.catalog-status button {
    border: 0;
    cursor: pointer;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button {
    padding: 9px 16px;
    border-radius: 999px;
}

.header-search button:hover,
.mobile-search button:hover,
.big-search button:hover,
.catalog-status button:hover,
.primary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.24);
}

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

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    border-radius: 2px;
    background: #1e3a8a;
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
    background: rgba(248, 251, 255, 0.96);
}

.mobile-nav.is-open {
    display: grid;
    gap: 10px;
}

.mobile-search {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.mobile-search input {
    flex: 1;
    padding: 12px 14px;
    border-radius: 12px;
}

.mobile-search button {
    padding: 0 16px;
    border-radius: 12px;
}

.hero-carousel {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: #0f1f4d;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

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

.hero-backdrop,
.detail-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
}

.hero-darken {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 40%, rgba(124, 58, 237, 0.45), transparent 32%),
        linear-gradient(90deg, rgba(8, 16, 46, 0.92), rgba(25, 36, 82, 0.72), rgba(15, 23, 42, 0.45)),
        linear-gradient(0deg, rgba(15, 23, 42, 0.72), transparent 40%);
}

.hero-grid {
    position: relative;
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 54px;
    align-items: center;
    color: #ffffff;
}

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

.hero-label,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #bfdbfe;
    background: rgba(37, 99, 235, 0.18);
    border: 1px solid rgba(191, 219, 254, 0.24);
    backdrop-filter: blur(12px);
}

.hero-copy h1 {
    margin: 22px 0 18px;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 0.98;
    letter-spacing: -0.055em;
    text-shadow: 0 18px 48px rgba(0, 0, 0, 0.36);
}

.hero-copy p {
    margin: 0;
    max-width: 650px;
    color: rgba(219, 234, 254, 0.9);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.8;
}

.hero-tags,
.mini-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.hero-tags span,
.mini-tags span,
.tag-pill {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 12px;
    font-weight: 700;
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 14px;
    font-weight: 900;
    transition: all 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28);
}

.primary-button.full {
    width: 100%;
}

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

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hero-poster {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
    transform: rotate(1.5deg);
    background: linear-gradient(135deg, #1d4ed8, #7c3aed);
}

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

.hero-poster:hover img {
    transform: scale(1.07);
}

.hero-poster span {
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 10px 14px;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.86);
    font-weight: 900;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 6;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    font-size: 36px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    cursor: pointer;
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

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

.home-search-panel {
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-top: -42px;
    padding: 22px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.big-search {
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: 18px;
    background: #f1f5f9;
}

.big-search input {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    border-radius: 14px;
    background: transparent;
}

.big-search button {
    border-radius: 14px;
    padding: 0 22px;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-links a {
    padding: 12px 15px;
    border-radius: 14px;
    color: #1e3a8a;
    font-weight: 900;
    background: #e0ecff;
}

.page-section {
    padding: 56px 0;
}

.section-heading,
.category-overview-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.section-heading h2,
.category-overview-head h2 {
    margin: 10px 0 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.section-heading .section-kicker,
.category-overview-head .section-kicker {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.12);
}

.section-more {
    display: inline-flex;
    flex-shrink: 0;
    padding: 12px 16px;
    border-radius: 14px;
    color: #1e3a8a;
    font-weight: 900;
    background: #dbeafe;
}

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

.category-card {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 22px;
    border-radius: 24px;
    color: #ffffff;
    background: #1e3a8a;
    box-shadow: var(--soft-shadow);
    isolation: isolate;
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -3;
    opacity: 0.58;
    transition: transform 0.45s ease;
}

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

.category-glow {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(180deg, transparent 15%, rgba(15, 23, 42, 0.88));
}

.category-card strong {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
}

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.6;
}

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

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

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

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

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

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

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--soft-shadow);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-frame {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #bfdbfe, #ddd6fe);
}

.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-shade {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.72), transparent 48%);
    transition: opacity 0.24s ease;
}

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

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.play-chip {
    right: 10px;
    bottom: 10px;
    padding: 8px 11px;
    background: rgba(37, 99, 235, 0.88);
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.24s ease;
}

.movie-card-link:hover .play-chip {
    opacity: 1;
    transform: translateY(0);
}

.rank-badge {
    left: 10px;
    top: 10px;
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #f97316, #db2777);
    box-shadow: 0 10px 24px rgba(219, 39, 119, 0.28);
}

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

.movie-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.movie-card h3 {
    margin: 8px 0;
    font-size: 17px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mini-tags span {
    color: #1e3a8a;
    background: #dbeafe;
    border-color: transparent;
}

.rank-layout {
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    gap: 24px;
}

.rank-panel,
.ranking-list,
.catalog-controls,
.detail-text-card,
.side-info-card,
.player-card {
    border: 1px solid rgba(37, 99, 235, 0.10);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(18px);
}

.rank-panel,
.ranking-list,
.catalog-controls,
.detail-text-card,
.side-info-card {
    border-radius: 24px;
}

.rank-row,
.ranking-list-row {
    display: grid;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.2s ease;
}

.rank-row {
    grid-template-columns: 42px 54px minmax(0, 1fr) auto;
    padding: 12px 14px;
}

.rank-row:last-child,
.ranking-list-row:last-child {
    border-bottom: 0;
}

.rank-row:hover,
.ranking-list-row:hover {
    background: #eff6ff;
}

.rank-num {
    color: #2563eb;
    font-size: 19px;
    font-weight: 950;
}

.rank-row img,
.ranking-list-row img {
    width: 54px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    background: #dbeafe;
}

.rank-title {
    font-weight: 900;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-views {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 74px 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 20% 0%, rgba(96, 165, 250, 0.38), transparent 34%),
        linear-gradient(135deg, #172554, #312e81 58%, #581c87);
}

.page-hero h1 {
    margin: 16px 0 14px;
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1;
    letter-spacing: -0.045em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(219, 234, 254, 0.88);
    font-size: 18px;
    line-height: 1.8;
}

.crumb-link {
    display: inline-flex;
    margin-bottom: 16px;
    color: #dbeafe;
    font-weight: 800;
}

.catalog-controls {
    padding: 20px;
    margin-bottom: 28px;
}

.control-row {
    display: grid;
    grid-template-columns: minmax(260px, 1.6fr) repeat(4, minmax(130px, 1fr));
    gap: 14px;
}

.catalog-controls label {
    display: grid;
    gap: 7px;
    color: #334155;
    font-weight: 900;
    font-size: 13px;
}

.catalog-controls input,
.catalog-controls select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #dbe7f4;
    border-radius: 12px;
}

.catalog-status {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-top: 14px;
    color: var(--muted);
    font-weight: 800;
}

.catalog-status button {
    padding: 10px 14px;
    border-radius: 12px;
}

.category-overview {
    display: grid;
    gap: 34px;
    padding: 44px 0 70px;
}

.category-overview-block {
    padding: 26px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--soft-shadow);
}

.ranking-list {
    overflow: hidden;
}

.ranking-list-row {
    grid-template-columns: 56px 56px minmax(0, 1fr) 170px 90px;
    padding: 13px 18px;
}

.ranking-list-row strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-list-row em {
    color: var(--muted);
    font-style: normal;
}

.ranking-list-row b {
    color: #2563eb;
}

.detail-hero {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: #ffffff;
    background: #172554;
}

.detail-hero-mask {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.58)),
        linear-gradient(0deg, rgba(15, 23, 42, 0.92), transparent 50%);
}

.detail-hero-content {
    position: relative;
    z-index: 2;
    padding: 70px 0 46px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #bfdbfe;
    font-weight: 800;
    margin-bottom: 18px;
}

.detail-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(36px, 5vw, 72px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.detail-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(219, 234, 254, 0.9);
    font-size: 18px;
    line-height: 1.8;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    padding: 42px 0 72px;
}

.detail-main {
    min-width: 0;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.movie-video {
    display: block;
    width: 100%;
    height: 100%;
    background: #020617;
}

.play-trigger {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #ffffff;
    border: 0;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.35), rgba(2, 6, 23, 0.72));
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.play-trigger span {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.35);
    font-size: 34px;
    padding-left: 6px;
}

.play-trigger strong {
    font-size: 20px;
}

.player-card.is-playing .play-trigger,
.player-card.is-loaded .play-trigger.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-card.is-playing .player-status {
    display: none;
}

.player-status {
    position: absolute;
    left: 16px;
    bottom: 16px;
    margin: 0;
    max-width: calc(100% - 32px);
    padding: 9px 12px;
    border-radius: 12px;
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.74);
    font-size: 13px;
    pointer-events: none;
}

.detail-text-card {
    margin-top: 24px;
    padding: 30px;
}

.detail-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.detail-meta-line span {
    padding: 8px 11px;
    border-radius: 999px;
    color: #1e3a8a;
    background: #dbeafe;
    font-size: 13px;
    font-weight: 900;
}

.detail-text-card h2 {
    margin: 24px 0 12px;
    font-size: 25px;
}

.detail-text-card h2:first-of-type {
    margin-top: 0;
}

.detail-text-card p {
    margin: 0;
    color: #3b4a62;
    font-size: 17px;
    line-height: 1.9;
}

.detail-tags {
    margin-top: 24px;
}

.tag-pill {
    color: #1e3a8a;
    background: #dbeafe;
    border: 0;
}

.detail-sidebar {
    display: grid;
    gap: 22px;
    align-content: start;
}

.side-poster {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, #bfdbfe, #ddd6fe);
}

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

.side-info-card {
    position: sticky;
    top: 100px;
    padding: 22px;
}

.side-info-card h2 {
    margin: 0 0 16px;
}

.side-info-card ul {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

.side-info-card li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.side-info-card span {
    color: var(--muted);
}

.side-info-card strong {
    text-align: right;
}

.related-section {
    padding-bottom: 0;
}

.site-footer {
    margin-top: 40px;
    padding: 46px 0 26px;
    color: #dbeafe;
    background: linear-gradient(135deg, #0f172a, #172554 62%, #1e1b4b);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
}

.footer-brand {
    color: #ffffff;
    font-size: 22px;
    font-weight: 950;
}

.site-footer p {
    max-width: 430px;
    color: #a7c7f9;
    line-height: 1.8;
}

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

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

.footer-links a {
    color: #bfdbfe;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid rgba(219, 234, 254, 0.14);
    color: #93b7ec;
    font-size: 14px;
}

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

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

    .hero-grid {
        grid-template-columns: minmax(0, 1fr) 260px;
    }

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

    .rank-layout,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .side-info-card {
        position: static;
    }

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

    .search-control {
        grid-column: 1 / -1;
    }
}

@media (max-width: 820px) {
    .hero-carousel,
    .hero-grid {
        min-height: 720px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 70px;
        padding-bottom: 80px;
    }

    .hero-poster {
        width: min(260px, 80vw);
        margin: 0 auto;
    }

    .home-search-panel {
        grid-template-columns: 1fr;
        margin-top: 18px;
    }

    .big-search {
        flex-direction: column;
    }

    .big-search button {
        min-height: 46px;
    }

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

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

    .footer-bottom {
        flex-direction: column;
    }

    .ranking-list-row {
        grid-template-columns: 44px 48px minmax(0, 1fr);
    }

    .ranking-list-row em,
    .ranking-list-row b {
        display: none;
    }
}

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

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

    .brand-icon {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .brand strong {
        font-size: 18px;
    }

    .brand small {
        display: none;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-hero h1 {
        letter-spacing: -0.035em;
    }

    .hero-arrow {
        display: none;
    }

    .section-heading,
    .category-overview-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .movie-grid,
    .featured-grid,
    .compact-grid,
    .catalog-grid {
        gap: 14px;
    }

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

    .movie-card h3 {
        font-size: 15px;
    }

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

    .catalog-status {
        flex-direction: column;
        align-items: stretch;
    }

    .detail-layout {
        padding-top: 24px;
    }

    .detail-text-card {
        padding: 20px;
    }

    .play-trigger span {
        width: 62px;
        height: 62px;
        font-size: 26px;
    }
}
