:root {
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --cyan-50: #ecfeff;
    --cyan-500: #06b6d4;
    --cyan-600: #0891b2;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 12px 28px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 22px 55px rgba(15, 23, 42, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--slate-800);
    background: linear-gradient(180deg, var(--slate-50) 0%, #ffffff 42%, var(--slate-50) 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow-sm);
}

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

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

.brand-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--teal-500), var(--cyan-600));
    box-shadow: 0 10px 24px rgba(20, 184, 166, 0.28);
}

.brand-text {
    font-size: clamp(19px, 2vw, 26px);
    background: linear-gradient(90deg, var(--teal-600), var(--cyan-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

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

.nav-link {
    color: var(--slate-700);
    font-weight: 650;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--teal-600);
}

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

.header-search input,
.mobile-search input,
.wide-search input,
.filter-tools input {
    border: 1px solid var(--slate-200);
    outline: 0;
    color: var(--slate-800);
    background: #ffffff;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    width: 230px;
    border-radius: 999px;
    padding: 11px 16px;
}

.header-search input:focus,
.mobile-search input:focus,
.wide-search input:focus,
.filter-tools input:focus {
    border-color: var(--teal-500);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.header-search button,
.mobile-search button,
.wide-search button,
.primary-button,
.rank-action,
.panel-link {
    border: 0;
    color: #ffffff;
    cursor: pointer;
    font-weight: 700;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--teal-500), var(--cyan-600));
    box-shadow: 0 12px 26px rgba(20, 184, 166, 0.24);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.header-search button,
.mobile-search button {
    padding: 10px 16px;
}

.header-search button:hover,
.mobile-search button:hover,
.wide-search button:hover,
.primary-button:hover,
.rank-action:hover,
.panel-link:hover {
    transform: translateY(-1px);
    filter: saturate(1.08);
    box-shadow: 0 16px 34px rgba(20, 184, 166, 0.32);
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    color: var(--slate-800);
    background: var(--slate-100);
    cursor: pointer;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 18px;
    padding: 16px;
    border: 1px solid var(--slate-200);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
}

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

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

.mobile-nav {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--slate-700);
    font-weight: 700;
    background: var(--slate-50);
}

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

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

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 7s ease;
}

.hero-slide.active .hero-image {
    transform: scale(1);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.6) 42%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100% - 1180px) / 2));
    bottom: 70px;
    width: min(650px, calc(100% - 48px));
    color: #ffffff;
}

.hero-label,
.section-heading span,
.page-hero span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 13px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: rgba(20, 184, 166, 0.92);
}

.hero-content h1,
.hero-content h2 {
    margin: 18px 0 14px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-content p {
    max-width: 620px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(16px, 2vw, 21px);
    line-height: 1.75;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 26px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
}

.ghost-button {
    color: #ffffff;
    font-weight: 750;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    transition: background 0.22s ease, transform 0.22s ease;
}

.ghost-button:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.22);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(10px);
    cursor: pointer;
    font-size: 38px;
    line-height: 1;
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.68);
    transform: translateY(-50%) scale(1.04);
}

.hero-control.prev {
    left: 22px;
}

.hero-control.next {
    right: 22px;
}

.hero-dots {
    position: absolute;
    right: max(24px, calc((100% - 1180px) / 2));
    bottom: 82px;
    z-index: 4;
    display: flex;
    gap: 10px;
}

.hero-dots button {
    width: 34px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.active {
    width: 56px;
    background: var(--teal-500);
}

.section-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.home-search-band {
    margin-top: -32px;
    position: relative;
    z-index: 5;
}

.search-band-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 24px;
    align-items: center;
    padding: 26px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-lg);
}

.search-band-inner h2 {
    margin: 0 0 8px;
    color: var(--slate-900);
    font-size: 26px;
}

.search-band-inner p {
    margin: 0;
    color: var(--slate-600);
}

.wide-search input {
    flex: 1;
    min-width: 0;
    border-radius: 999px;
    padding: 15px 18px;
}

.wide-search button {
    padding: 15px 22px;
}

.section-block {
    padding: 70px 0;
}

.light-block {
    background: linear-gradient(180deg, var(--slate-50), #ffffff);
}

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

.section-heading span,
.page-hero span {
    color: var(--teal-700);
    background: var(--teal-100);
}

.section-heading h2 {
    margin: 12px 0 0;
    color: var(--slate-900);
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.04em;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.78);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(20, 184, 166, 0.28);
    box-shadow: var(--shadow-md);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111827;
}

.poster-wrap img,
.rank-poster img,
.related-poster img,
.category-tile img,
.category-preview img,
.detail-title-row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.movie-card:hover .poster-wrap img,
.rank-item:hover .rank-poster img,
.related-card:hover .related-poster img,
.category-tile:hover img,
.category-preview a:hover img {
    transform: scale(1.08);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.05));
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 9px;
    border-radius: 9px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(20, 184, 166, 0.92);
    backdrop-filter: blur(10px);
}

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

.movie-card h3 {
    margin: 0 0 8px;
    color: var(--slate-900);
    font-size: 17px;
    line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-body h2 a:hover,
.category-panel h2 a:hover {
    color: var(--teal-600);
}

.card-meta,
.card-line {
    margin: 0;
    color: var(--slate-500);
    font-size: 13px;
    line-height: 1.6;
}

.card-line {
    display: -webkit-box;
    min-height: 42px;
    margin-top: 8px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row,
.genre-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag-row span,
.genre-row span {
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--slate-600);
    font-size: 12px;
    background: var(--slate-100);
}

.genre-row span {
    color: var(--teal-700);
    background: var(--teal-100);
}

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

.category-tile {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: 24px;
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

.category-tile-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.18));
}

.category-tile strong,
.category-tile em {
    position: absolute;
    left: 18px;
    right: 18px;
}

.category-tile strong {
    bottom: 64px;
    font-size: 22px;
}

.category-tile em {
    bottom: 20px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-style: normal;
    line-height: 1.5;
}

.page-main {
    min-height: 70vh;
}

.page-hero {
    color: #ffffff;
    padding: 70px 0;
    background: linear-gradient(135deg, var(--teal-500), var(--cyan-600));
}

.page-hero h1 {
    margin: 14px 0 12px;
    font-size: clamp(34px, 5vw, 54px);
    letter-spacing: -0.04em;
}

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

.page-hero span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

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

.category-panel {
    padding: 24px;
    border: 1px solid rgba(226, 232, 240, 0.82);
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.category-panel-head h2 {
    margin: 0 0 8px;
    color: var(--slate-900);
    font-size: 26px;
}

.category-panel-head p {
    margin: 0;
    color: var(--slate-600);
    line-height: 1.7;
}

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

.category-preview a {
    overflow: hidden;
    border-radius: 16px;
    background: var(--slate-900);
}

.category-preview a img {
    aspect-ratio: 16 / 10;
}

.category-preview span {
    display: block;
    padding: 9px 10px;
    color: #ffffff;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.panel-link {
    display: inline-flex;
    padding: 12px 20px;
}

.filter-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
    padding: 18px;
    border: 1px solid var(--slate-200);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.filter-tools.large {
    padding: 22px;
}

.filter-tools input {
    flex: 1 1 280px;
    min-height: 48px;
    border-radius: 999px;
    padding: 0 18px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chips button {
    border: 1px solid var(--slate-200);
    border-radius: 999px;
    color: var(--slate-600);
    background: #ffffff;
    cursor: pointer;
    padding: 11px 16px;
    font-weight: 750;
    transition: color 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.filter-chips button:hover,
.filter-chips button.active {
    color: var(--teal-700);
    border-color: var(--teal-100);
    background: var(--teal-100);
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 130px 58px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(226, 232, 240, 0.82);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.rank-poster {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 16px;
    background: var(--slate-900);
}

.rank-number {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: var(--teal-700);
    border-radius: 16px;
    background: var(--teal-100);
    font-weight: 900;
}

.rank-body h2 {
    margin: 0 0 6px;
    color: var(--slate-900);
    font-size: 20px;
}

.rank-body p {
    margin: 0 0 6px;
    color: var(--slate-600);
    line-height: 1.55;
}

.rank-action {
    padding: 11px 18px;
}

.detail-main {
    background: linear-gradient(180deg, var(--slate-50), #ffffff);
}

.player-section {
    background: #000000;
}

.player-shell {
    position: relative;
    width: min(1180px, 100%);
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    overflow: hidden;
    background: #000000;
}

.movie-video {
    width: 100%;
    height: 100%;
    background: #000000;
    object-fit: contain;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.08));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
    display: grid;
    width: 92px;
    height: 92px;
    place-items: center;
    border-radius: 999px;
    font-size: 40px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.32);
}

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

.detail-content {
    padding: 34px 0 80px;
}

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

.breadcrumb a:hover {
    color: var(--teal-600);
}

.breadcrumb em {
    color: var(--slate-700);
    font-style: normal;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 0.9fr);
    gap: 28px;
}

.detail-article {
    display: grid;
    gap: 22px;
}

.detail-title-row {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: 24px;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.detail-title-row img {
    aspect-ratio: 16 / 10;
    border-radius: 20px;
    background: var(--slate-900);
}

.detail-title-row h1 {
    margin: 0 0 12px;
    color: var(--slate-900);
    font-size: clamp(30px, 4vw, 46px);
    letter-spacing: -0.04em;
}

.detail-meta {
    margin: 0;
    color: var(--slate-600);
    font-weight: 700;
}

.content-card {
    padding: 26px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.highlight-card {
    background: linear-gradient(135deg, #ffffff, var(--cyan-50));
}

.content-card h2,
.related-panel h2 {
    margin: 0 0 14px;
    color: var(--slate-900);
    font-size: 24px;
}

.content-card p {
    margin: 0 0 14px;
    color: var(--slate-700);
    line-height: 1.86;
}

.content-card p:last-child {
    margin-bottom: 0;
}

.info-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.info-list div {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 12px;
}

.info-list dt {
    color: var(--slate-500);
}

.info-list dd {
    margin: 0;
    color: var(--slate-800);
}

.related-panel {
    position: sticky;
    top: 100px;
    align-self: start;
    padding: 24px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.related-list {
    display: grid;
    gap: 14px;
}

.related-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.related-poster {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 14px;
    background: var(--slate-900);
}

.related-poster span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.related-card:hover .related-poster span {
    opacity: 1;
}

.related-info strong {
    display: -webkit-box;
    color: var(--slate-900);
    overflow: hidden;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-info em {
    display: block;
    margin-top: 6px;
    color: var(--slate-500);
    font-size: 12px;
    font-style: normal;
}

.site-footer {
    background: var(--slate-900);
    color: rgba(255, 255, 255, 0.72);
    padding: 48px 0;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
    gap: 32px;
}

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

.site-footer p {
    max-width: 520px;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    justify-content: flex-end;
}

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

.is-hidden-by-filter {
    display: none !important;
}

@media (max-width: 1100px) {
    .desktop-nav {
        gap: 16px;
    }

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

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

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

    .home-rank {
        grid-template-columns: 1fr;
    }
}

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

    .menu-button {
        display: grid;
        place-items: center;
    }

    .hero-carousel {
        height: 78vh;
        min-height: 560px;
    }

    .hero-content {
        bottom: 78px;
    }

    .hero-control {
        display: none;
    }

    .hero-dots {
        left: 24px;
        right: auto;
        bottom: 42px;
    }

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

    .wide-search {
        flex-direction: column;
        align-items: stretch;
    }

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

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

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

    .rank-item {
        grid-template-columns: 96px 44px minmax(0, 1fr);
    }

    .rank-action {
        grid-column: 2 / 4;
        justify-self: start;
    }

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

    .related-panel {
        position: static;
    }

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

    .detail-title-row img {
        max-width: 320px;
    }

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

    .footer-links {
        justify-content: flex-start;
    }
}

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

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

    .hero-carousel {
        min-height: 520px;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 38px;
    }

    .movie-grid,
    .featured-grid,
    .compact-grid {
        grid-template-columns: 1fr;
    }

    .section-block {
        padding: 48px 0;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .rank-item {
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .rank-number {
        position: absolute;
        margin: 8px;
        background: rgba(204, 251, 241, 0.95);
    }

    .rank-action {
        grid-column: 2;
    }

    .detail-title-row,
    .content-card,
    .related-panel {
        padding: 18px;
        border-radius: 20px;
    }

    .related-card {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .play-overlay span {
        width: 76px;
        height: 76px;
        font-size: 34px;
    }
}
