:root {
    --sky-50: #f0f9ff;
    --sky-100: #e0f2fe;
    --sky-200: #bae6fd;
    --sky-400: #38bdf8;
    --sky-500: #0ea5e9;
    --sky-600: #0284c7;
    --sky-700: #0369a1;
    --cyan-50: #ecfeff;
    --cyan-400: #22d3ee;
    --blue-50: #eff6ff;
    --blue-400: #60a5fa;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-500: #64748b;
    --slate-700: #334155;
    --slate-900: #0f172a;
    --white: #ffffff;
    --black: #000000;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.13);
    --shadow-soft: 0 10px 28px rgba(2, 132, 199, 0.12);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    color: var(--slate-900);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(180deg, var(--white) 0%, var(--sky-50) 45%, var(--cyan-50) 100%);
}

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

img {
    display: block;
    max-width: 100%;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: linear-gradient(90deg, rgba(224, 242, 254, 0.96), rgba(239, 246, 255, 0.96), rgba(236, 254, 255, 0.96));
    border-bottom: 1px solid rgba(186, 230, 253, 0.75);
    box-shadow: 0 6px 24px rgba(2, 132, 199, 0.12);
    backdrop-filter: blur(14px);
}

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

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

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--white);
    font-size: 15px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--sky-400), var(--blue-400), var(--cyan-400));
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.28);
    transition: transform 0.25s ease;
}

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

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

.brand-text strong {
    color: var(--sky-700);
    font-size: 20px;
    letter-spacing: 0.02em;
}

.brand-text em {
    margin-top: 4px;
    color: var(--sky-500);
    font-size: 12px;
    font-style: normal;
}

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

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 9px 13px;
    border-radius: 12px;
    color: var(--slate-700);
    font-size: 14px;
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--sky-700);
    background: rgba(186, 230, 253, 0.55);
    transform: translateY(-1px);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
}

.header-search input,
.mobile-search input,
.search-form-grid input,
.search-form-grid select,
.list-toolbar input {
    width: 100%;
    border: 1px solid var(--sky-200);
    border-radius: 999px;
    outline: none;
    background: var(--white);
    color: var(--slate-900);
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    width: 210px;
    padding: 10px 16px;
}

.header-search input:focus,
.mobile-search input:focus,
.search-form-grid input:focus,
.search-form-grid select:focus,
.list-toolbar input:focus {
    border-color: var(--sky-400);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
}

.header-search button,
.mobile-search button {
    border: 0;
    color: var(--white);
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--sky-500), var(--blue-400));
    box-shadow: var(--shadow-soft);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    background: rgba(186, 230, 253, 0.45);
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: var(--sky-700);
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(186, 230, 253, 0.75);
    padding: 16px;
}

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

.mobile-search {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

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

.mobile-nav,
.mobile-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mobile-category-link {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--sky-700);
    background: rgba(224, 242, 254, 0.85);
    font-size: 13px;
    font-weight: 650;
}

.hero-slider {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: linear-gradient(90deg, var(--sky-400), var(--blue-400), var(--cyan-400));
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
    background-position: center;
    background-size: cover;
    transition: opacity 0.8s ease, transform 1.2s ease;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 105, 161, 0.92), rgba(14, 165, 233, 0.72), rgba(34, 211, 238, 0.45)),
        linear-gradient(0deg, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.08));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 780px;
    padding-block: 92px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-hero .eyebrow,
.detail-intro .eyebrow,
.section-heading span {
    color: var(--sky-600);
}

.hero-content h1 {
    margin: 0;
    font-size: clamp(38px, 7vw, 76px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.045em;
    text-shadow: 0 10px 30px rgba(15, 23, 42, 0.28);
}

.hero-content h2 {
    margin: 16px 0 0;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.15;
    font-weight: 850;
}

.hero-content p {
    max-width: 670px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--sky-700);
    background: var(--white);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
}

.btn-ghost {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.btn-soft {
    color: var(--sky-700);
    background: rgba(224, 242, 254, 0.9);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 16px;
    transform: translateX(-50%);
}

.hero-controls > button,
.hero-dot {
    border: 0;
    color: var(--white);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
}

.hero-controls > button {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    font-size: 28px;
    line-height: 1;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.feature-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: -34px;
    position: relative;
    z-index: 8;
}

.feature-bar a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 22px;
    border: 1px solid rgba(186, 230, 253, 0.8);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-bar a:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.feature-bar strong {
    color: var(--sky-700);
    font-size: 18px;
}

.feature-bar span {
    color: var(--slate-500);
    font-size: 14px;
}

.section-block {
    padding-block: 54px;
}

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

.section-heading.compact {
    margin-bottom: 18px;
}

.section-heading span {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.1;
}

.section-heading a {
    color: var(--sky-700);
    font-weight: 800;
}

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

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

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

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

.movie-card-link {
    display: flex;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(186, 230, 253, 0.75);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card-link:hover {
    transform: translateY(-7px);
    border-color: rgba(56, 189, 248, 0.8);
    box-shadow: var(--shadow);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--sky-100), var(--cyan-50));
}

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

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

.poster-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(15, 23, 42, 0.55) 100%);
}

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 850;
}

.play-chip {
    right: 12px;
    bottom: 12px;
    min-width: 54px;
    min-height: 28px;
    color: var(--white);
    font-size: 13px;
    background: rgba(14, 165, 233, 0.92);
    box-shadow: 0 10px 20px rgba(2, 132, 199, 0.24);
}

.rank-badge {
    left: 12px;
    top: 12px;
    min-width: 34px;
    min-height: 34px;
    color: var(--sky-700);
    background: rgba(255, 255, 255, 0.95);
}

.movie-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
}

.movie-card-body strong {
    color: var(--slate-900);
    font-size: 17px;
    line-height: 1.25;
}

.movie-meta-line,
.movie-one-line {
    color: var(--slate-500);
    font-size: 13px;
    line-height: 1.55;
}

.movie-genre {
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--sky-700);
    font-size: 12px;
    font-weight: 800;
    background: var(--sky-100);
}

.movie-one-line {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.category-grid,
.category-overview-grid {
    display: grid;
    gap: 18px;
}

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

.category-card,
.category-overview-card a {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(186, 230, 253, 0.75);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card {
    min-height: 210px;
    padding: 22px;
}

.category-card:hover,
.category-overview-card a:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-card strong,
.category-overview-body h2 {
    margin: 0;
    color: var(--sky-700);
    font-size: 22px;
}

.category-card p,
.category-overview-body p {
    color: var(--slate-500);
    line-height: 1.7;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.category-samples span,
.related-cats a {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--sky-700);
    background: var(--sky-100);
    font-size: 12px;
    font-weight: 750;
}

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

.ranking-panel,
.detail-side-card,
.search-panel,
.list-toolbar {
    border: 1px solid rgba(186, 230, 253, 0.75);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
}

.ranking-panel {
    position: sticky;
    top: 92px;
    padding: 22px;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ranking-row {
    display: grid;
    grid-template-columns: auto 62px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    transition: background 0.2s ease;
}

.ranking-row:hover {
    background: var(--sky-50);
}

.list-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    color: var(--white);
    font-weight: 900;
    background: linear-gradient(135deg, var(--sky-500), var(--blue-400));
}

.ranking-row img {
    width: 62px;
    height: 62px;
    object-fit: cover;
    border-radius: 14px;
}

.ranking-info {
    min-width: 0;
}

.ranking-info strong,
.ranking-info em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-info em {
    margin-top: 4px;
    color: var(--slate-500);
    font-size: 12px;
    font-style: normal;
}

.tags-section {
    padding-bottom: 80px;
}

.tag-cloud,
.tag-row,
.related-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-link,
.tag-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid var(--sky-200);
    border-radius: 999px;
    color: var(--slate-700);
    background: var(--white);
    font-size: 13px;
    font-weight: 750;
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.08);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.tag-link:hover,
.tag-pill:hover {
    color: var(--sky-700);
    background: var(--sky-100);
    transform: translateY(-2px);
}

.tag-soft {
    background: var(--cyan-50);
}

.page-shell {
    padding-bottom: 70px;
}

.page-hero,
.detail-hero {
    margin-top: 36px;
    padding: 38px;
    border: 1px solid rgba(186, 230, 253, 0.8);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.28), transparent 36%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 255, 0.98));
    box-shadow: var(--shadow-soft);
}

.page-hero h1,
.detail-intro h1 {
    margin: 0;
    color: var(--slate-900);
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.page-hero p,
.detail-intro .lead {
    max-width: 820px;
    color: var(--slate-500);
    font-size: 18px;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--slate-500);
    font-size: 13px;
}

.breadcrumb a {
    color: var(--sky-700);
    font-weight: 750;
}

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

.category-cover-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
    height: 112px;
    overflow: hidden;
    background: var(--sky-100);
}

.category-cover-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-overview-body {
    padding: 22px;
}

.category-overview-body span {
    color: var(--sky-600);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.category-overview-body strong {
    color: var(--sky-700);
}

.list-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    padding: 18px;
}

.list-toolbar label {
    display: grid;
    gap: 8px;
    flex: 1;
    color: var(--slate-700);
    font-weight: 800;
}

.list-toolbar input {
    max-width: 430px;
    padding: 12px 16px;
}

.detail-hero-grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 32px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    background: var(--sky-100);
}

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

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--sky-700);
    background: rgba(224, 242, 254, 0.92);
    font-size: 13px;
    font-weight: 800;
}

.player-section {
    margin-top: 28px;
}

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--black);
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.player-frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 100%;
    border: 0;
    color: var(--white);
    background-position: center;
    background-size: cover;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.84), rgba(2, 132, 199, 0.48));
}

.play-button-core,
.player-cover strong,
.player-cover em {
    position: relative;
    z-index: 2;
}

.play-button-core {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    padding-left: 5px;
    border-radius: 999px;
    color: var(--sky-700);
    background: var(--white);
    font-size: 30px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.25);
}

.player-cover strong {
    max-width: min(80%, 680px);
    font-size: clamp(24px, 4vw, 44px);
    line-height: 1.15;
    text-align: center;
}

.player-cover em {
    font-style: normal;
    font-weight: 800;
}

.player-message {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 5;
    color: var(--white);
    font-size: 14px;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    margin-top: 34px;
}

.detail-main-copy,
.detail-side-card {
    padding: 28px;
}

.detail-main-copy {
    border: 1px solid rgba(186, 230, 253, 0.75);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
}

.detail-main-copy section + section {
    margin-top: 30px;
}

.detail-main-copy h2,
.detail-side-card h2 {
    margin: 0 0 12px;
    color: var(--slate-900);
    font-size: 24px;
}

.detail-main-copy p {
    margin: 0;
    color: var(--slate-700);
    font-size: 16px;
    line-height: 1.95;
}

.detail-side-card {
    align-self: start;
    position: sticky;
    top: 94px;
}

.detail-side-card dl {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    margin: 0;
}

.detail-side-card dt {
    color: var(--slate-500);
}

.detail-side-card dd {
    margin: 0;
    color: var(--slate-900);
    font-weight: 750;
}

.detail-side-card a {
    color: var(--sky-700);
}

.detail-neighbor {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 24px;
}

.detail-neighbor a {
    display: inline-flex;
    justify-content: center;
    padding: 11px 14px;
    border-radius: 999px;
    background: var(--sky-100);
    font-weight: 850;
}

.top-movies {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.top-movie {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.78);
}

.top-movie img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 14px;
}

.top-movie span,
.top-movie strong,
.top-movie em {
    display: block;
    min-width: 0;
}

.top-movie strong,
.top-movie em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-movie em {
    margin-top: 5px;
    color: var(--slate-500);
    font-size: 13px;
    font-style: normal;
}

.search-panel {
    padding: 24px;
}

.search-form-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 16px;
    align-items: end;
    margin-bottom: 18px;
}

.search-form-grid label {
    display: grid;
    gap: 8px;
    color: var(--slate-700);
    font-weight: 800;
}

.search-form-grid input,
.search-form-grid select {
    padding: 12px 14px;
    border-radius: 14px;
}

.search-status {
    min-height: 28px;
    color: var(--sky-700);
    font-weight: 850;
}

.site-footer {
    border-top: 1px solid rgba(186, 230, 253, 0.75);
    background: linear-gradient(180deg, rgba(240, 249, 255, 0.86), rgba(224, 242, 254, 0.96));
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 34px;
    padding-block: 42px;
}

.footer-brand p,
.site-footer li,
.footer-bottom p {
    color: var(--slate-500);
    line-height: 1.75;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 15px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer a:hover {
    color: var(--sky-700);
}

.footer-bottom {
    padding: 16px;
    text-align: center;
    border-top: 1px solid rgba(186, 230, 253, 0.75);
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
}

[hidden] {
    display: none !important;
}

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

    .header-search input {
        width: 180px;
    }

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

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

    .ranking-panel,
    .detail-side-card {
        position: static;
    }

    .search-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

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

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

    .hero-content {
        padding-block: 72px 98px;
    }

    .feature-bar,
    .movie-grid-featured,
    .category-overview-grid,
    .top-movies,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    .page-hero,
    .detail-hero,
    .detail-main-copy,
    .detail-side-card {
        padding: 24px;
    }
}

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

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

    .hero-actions,
    .list-toolbar,
    .mobile-search {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-controls {
        bottom: 18px;
    }

    .feature-bar {
        margin-top: -22px;
    }

    .movie-grid-latest,
    .movie-grid-catalog,
    .category-grid,
    .search-form-grid {
        grid-template-columns: 1fr;
    }

    .poster-wrap {
        aspect-ratio: 16 / 10;
    }

    .detail-meta {
        gap: 8px;
    }

    .detail-side-card dl {
        grid-template-columns: 1fr;
    }

    .ranking-row {
        grid-template-columns: auto 56px minmax(0, 1fr);
    }
}
