:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.82);
    --border: rgba(148, 163, 184, 0.22);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --accent-dark: #b45309;
    --shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.15), transparent 36rem),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 34rem),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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: 50;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(2, 6, 23, 0.88);
    backdrop-filter: blur(18px);
}

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.logo-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
    color: #111827;
    font-size: 18px;
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.28);
}

.site-logo strong,
.footer-logo {
    display: block;
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.site-logo em {
    display: block;
    margin-top: 1px;
    color: var(--accent-light);
    font-size: 12px;
    font-style: normal;
}

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

.nav-link,
.mobile-nav-link {
    border-radius: 12px;
    color: #cbd5e1;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link {
    padding: 10px 14px;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(148, 163, 184, 0.13);
    color: #ffffff;
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.catalog-tools input,
.catalog-tools select,
.home-search-panel input {
    min-width: 0;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 14px;
    outline: none;
    background: rgba(15, 23, 42, 0.9);
    color: #ffffff;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    width: 220px;
    padding: 10px 12px;
}

.header-search input:focus,
.mobile-search input:focus,
.catalog-tools input:focus,
.catalog-tools select:focus,
.home-search-panel input:focus {
    border-color: rgba(245, 158, 11, 0.78);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.header-search button,
.mobile-search button,
.home-search-panel button {
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    color: #111827;
    cursor: pointer;
    font-weight: 800;
}

.header-search button {
    padding: 10px 14px;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.75);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 2px;
    background: #f8fafc;
}

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

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

.mobile-nav-link {
    padding: 12px 14px;
}

.mobile-search input {
    flex: 1;
    padding: 11px 12px;
}

.mobile-search button {
    padding: 11px 14px;
}

.hero-carousel {
    position: relative;
    width: min(1280px, calc(100% - 32px));
    min-height: 660px;
    margin: 28px auto 0;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 34px;
    background: #0f172a;
    box-shadow: var(--shadow);
}

.hero-slides,
.hero-slide,
.hero-backdrop {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease, transform 0.65s ease;
    transform: scale(1.015);
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.hero-backdrop {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.77) 44%, rgba(2, 6, 23, 0.24) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.18) 48%, rgba(2, 6, 23, 0.88) 100%),
        var(--hero-image) center / cover no-repeat;
    filter: saturate(1.08);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 660px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 56px;
    padding: 72px clamp(28px, 7vw, 92px) 128px;
}

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

.eyebrow,
.section-title span,
.category-overview-card span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-light);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1 {
    margin: 14px 0 18px;
    color: #ffffff;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p {
    max-width: 720px;
    color: #dbeafe;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.8;
}

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

.hero-tags span,
.tag-row span,
.detail-meta span {
    border: 1px solid rgba(251, 191, 36, 0.24);
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.1);
    color: #fde68a;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    padding: 7px 11px;
}

.tag-row span,
.detail-meta span {
    padding: 6px 10px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.primary-btn,
.ghost-btn,
.section-more a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 15px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    color: #111827;
    box-shadow: 0 18px 36px rgba(245, 158, 11, 0.24);
}

.ghost-btn,
.section-more a {
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(15, 23, 42, 0.72);
    color: #ffffff;
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more a:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid rgba(251, 191, 36, 0.22);
    border-radius: 30px;
    background: #111827;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.hero-poster span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.72);
    color: #ffffff;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.hero-controls {
    position: absolute;
    left: clamp(24px, 7vw, 92px);
    bottom: 40px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-prev,
.hero-next,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-prev,
.hero-next {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.72);
    color: #ffffff;
    font-size: 26px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 28px;
    height: 6px;
    border-radius: 999px;
    background: rgba(203, 213, 225, 0.3);
}

.hero-dot.active {
    width: 46px;
    background: var(--accent-light);
}

.hero-mini-grid {
    position: absolute;
    right: 38px;
    bottom: 36px;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(4, 112px);
    gap: 12px;
}

.hero-mini-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);
}

.hero-mini-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.hero-mini-card span {
    display: block;
    overflow: hidden;
    padding: 8px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-search-panel,
.content-section,
.page-hero,
.detail-page {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.home-search-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1.15fr);
    gap: 24px;
    align-items: center;
    margin-top: 28px;
    padding: 26px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.78);
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
}

.home-search-panel h2 {
    margin: 8px 0 0;
    font-size: clamp(24px, 4vw, 34px);
    letter-spacing: -0.04em;
}

.home-search-panel form {
    display: flex;
    gap: 10px;
}

.home-search-panel input {
    flex: 1;
    padding: 14px 15px;
}

.home-search-panel button {
    padding: 0 22px;
}

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

.section-title {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 720px;
    margin-bottom: 24px;
}

.section-title h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.section-title p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    background: var(--bg-card);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
    transition: transform 0.22s ease, border 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.42);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

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

.poster-link,
.poster-frame {
    display: block;
}

.poster-frame {
    position: relative;
    overflow: hidden;
    background: #111827;
}

.poster-frame img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.28s ease, filter 0.28s ease;
}

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

.poster-type,
.poster-year,
.rank-mark {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.poster-type {
    top: 12px;
    left: 12px;
    padding: 6px 9px;
    background: rgba(245, 158, 11, 0.86);
    color: #111827;
}

.poster-year {
    right: 12px;
    bottom: 12px;
    padding: 6px 9px;
    background: rgba(2, 6, 23, 0.72);
    color: #ffffff;
}

.rank-mark {
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #fef3c7, #f59e0b);
    color: #111827;
}

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

.movie-card h3 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--accent-light);
}

.movie-meta,
.movie-one-line {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.movie-one-line {
    margin-top: 8px;
    color: var(--muted-strong);
}

.tag-row {
    margin-top: 12px;
}

.movie-card-compact .movie-card-body {
    padding: 13px;
}

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

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

.category-card {
    position: relative;
    min-height: 180px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 20px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    background:
        linear-gradient(0deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.18)),
        var(--category-image) center / cover no-repeat;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.26);
    transition: transform 0.22s ease, border 0.22s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.45);
}

.category-card span {
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
}

.category-card strong {
    margin-top: 8px;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.7;
}

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

.section-more {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

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

.side-panel {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 12px;
    padding: 22px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.78);
}

.side-panel h2 {
    margin: 0 0 6px;
    font-size: 24px;
}

.side-panel a {
    padding: 13px 14px;
    border-radius: 14px;
    background: rgba(148, 163, 184, 0.1);
    color: #e2e8f0;
    font-weight: 800;
}

.side-panel a:hover {
    background: rgba(245, 158, 11, 0.15);
    color: #fde68a;
}

.page-hero {
    position: relative;
    overflow: hidden;
    margin-top: 28px;
    padding: clamp(44px, 8vw, 86px);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.75));
    box-shadow: var(--shadow);
}

.category-hero {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.66), rgba(2, 6, 23, 0.24)),
        var(--hero-image) center / cover no-repeat;
}

.catalog-tools {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(160px, 0.35fr));
    gap: 12px;
    align-items: end;
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
}

.catalog-tools label {
    display: grid;
    gap: 7px;
}

.catalog-tools span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.catalog-tools input,
.catalog-tools select {
    width: 100%;
    padding: 12px;
}

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

.empty-state {
    margin: 16px 0 24px;
    padding: 18px;
    border: 1px dashed rgba(148, 163, 184, 0.25);
    border-radius: 16px;
    color: #cbd5e1;
    text-align: center;
}

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

.category-overview-card {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    display: grid;
    align-items: end;
    padding: 26px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 28px;
    background:
        linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.12)),
        var(--category-image) center / cover no-repeat;
}

.category-cover {
    position: absolute;
    inset: 0;
}

.category-overview-card div {
    position: relative;
    z-index: 2;
}

.category-overview-card h2 {
    margin: 10px 0;
    font-size: 34px;
}

.category-overview-card p {
    max-width: 520px;
    color: #cbd5e1;
    line-height: 1.75;
}

.category-sample-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.category-sample-links a {
    position: relative;
    z-index: 3;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #fde68a;
    font-size: 13px;
    font-weight: 800;
}

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

.rank-column {
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.76);
}

.rank-column h3 {
    margin: 0 0 14px;
    font-size: 20px;
}

.rank-column ol {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-column li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    color: #cbd5e1;
}

.rank-column b {
    color: var(--accent-light);
}

.rank-column a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-column span {
    color: var(--muted);
    font-size: 12px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.pagination a {
    display: grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.72);
    color: #cbd5e1;
    font-weight: 900;
}

.pagination a.active,
.pagination a:hover {
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(245, 158, 11, 0.16);
    color: #fde68a;
}

.detail-page {
    padding-top: 28px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--accent-light);
}

.detail-hero {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 34px;
    padding: 28px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.15), transparent 26rem),
        rgba(15, 23, 42, 0.78);
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    background: #111827;
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.34);
}

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

.detail-info {
    align-self: center;
}

.detail-info h1 {
    margin: 14px 0 16px;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.detail-one-line {
    max-width: 780px;
    color: #e2e8f0;
    font-size: 18px;
    line-height: 1.8;
}

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

.player-section {
    padding-top: 30px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 30px;
    background: #020617;
    box-shadow: var(--shadow);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.18));
    color: #ffffff;
    cursor: pointer;
}

.play-overlay.hidden {
    display: none;
}

.play-circle {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    color: #111827;
    font-size: 34px;
    box-shadow: 0 20px 48px rgba(245, 158, 11, 0.26);
}

.play-overlay strong {
    font-size: 18px;
    letter-spacing: 0.04em;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 26px;
    padding-top: 30px;
}

.detail-main-text,
.detail-side-box {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.75);
}

.detail-main-text {
    padding: 30px;
}

.detail-main-text h2,
.detail-side-box h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 24px;
}

.detail-main-text p {
    margin: 0 0 24px;
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.9;
}

.detail-main-text p:last-child {
    margin-bottom: 0;
}

.detail-side-box {
    align-self: start;
    padding: 24px;
}

.detail-side-box dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.detail-side-box dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.detail-side-box dd {
    margin: -8px 0 0;
    color: #e2e8f0;
    line-height: 1.65;
}

.related-section {
    width: 100%;
}

.site-footer {
    margin-top: 72px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(2, 6, 23, 0.74);
}

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

.footer-grid p {
    max-width: 520px;
    color: var(--muted);
    line-height: 1.8;
}

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

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

.footer-links a {
    color: #94a3b8;
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 28px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    color: #64748b;
    font-size: 14px;
}

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

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

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

    .hero-mini-grid {
        display: none;
    }
}

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

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

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

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 48px 26px 112px;
    }

    .hero-poster {
        max-width: 230px;
    }

    .home-search-panel,
    .split-section,
    .detail-content,
    .footer-grid,
    .detail-hero {
        grid-template-columns: 1fr;
    }

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

    .catalog-tools {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 680px) {
    .site-header-inner {
        width: min(100% - 22px, 1280px);
        height: 66px;
    }

    .site-logo strong {
        font-size: 17px;
    }

    .site-logo em {
        display: none;
    }

    .hero-carousel,
    .home-search-panel,
    .content-section,
    .page-hero,
    .detail-page,
    .footer-grid,
    .footer-bottom,
    .mobile-nav {
        width: min(100% - 22px, 1280px);
    }

    .hero-carousel {
        min-height: 680px;
        border-radius: 24px;
    }

    .hero-content {
        min-height: 680px;
        padding: 40px 20px 104px;
    }

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

    .hero-controls {
        left: 20px;
        bottom: 26px;
    }

    .home-search-panel form {
        flex-direction: column;
    }

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

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

    .catalog-tools {
        grid-template-columns: 1fr;
    }

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

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

    .movie-one-line {
        display: none;
    }

    .tag-row span:nth-child(n+3) {
        display: none;
    }

    .page-hero,
    .detail-hero,
    .detail-main-text,
    .detail-side-box {
        border-radius: 22px;
        padding: 20px;
    }

    .detail-info h1 {
        font-size: 34px;
    }

    .detail-one-line {
        font-size: 16px;
    }

    .play-circle {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
}
