:root {
    --blue: #2563eb;
    --blue-deep: #1d4ed8;
    --cyan: #06b6d4;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --white: #ffffff;
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.14);
    --shadow-card: 0 12px 28px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--slate-900);
    background: linear-gradient(180deg, #ffffff 0%, var(--slate-50) 42%, #eef6ff 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: 50;
    color: var(--white);
    background: linear-gradient(90deg, var(--blue) 0%, var(--blue-deep) 48%, var(--cyan) 100%);
    box-shadow: 0 20px 45px rgba(37, 99, 235, 0.22);
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 18px 0;
}

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

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    font-weight: 900;
    font-size: 24px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.brand-text {
    display: grid;
    gap: 2px;
}

.brand-text strong {
    font-size: 22px;
    letter-spacing: 0.02em;
}

.brand-text small {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.site-nav a {
    padding: 9px 13px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.88);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.nav-search {
    display: flex;
    overflow: hidden;
    min-width: 280px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.nav-search input {
    min-width: 0;
    width: 100%;
    border: 0;
    color: var(--white);
    background: transparent;
    padding: 11px 14px;
    outline: 0;
}

.nav-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.nav-search button {
    border: 0;
    color: var(--blue-deep);
    background: var(--white);
    padding: 0 17px;
    font-weight: 700;
    cursor: pointer;
}

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

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: var(--white);
    border-radius: 999px;
}

.hero-carousel {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    color: var(--white);
    background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.38), transparent 34%), linear-gradient(180deg, var(--slate-900), var(--slate-800));
}

.hero-carousel::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.45) 1px, transparent 1px);
    background-size: 34px 34px;
    pointer-events: none;
}

.hero-stage {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease, transform 1.2s ease;
    transform: scale(1.02);
}

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

.hero-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.02);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.70) 46%, rgba(15, 23, 42, 0.18) 100%), linear-gradient(0deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.12) 52%, rgba(2, 6, 23, 0.35) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 650px;
    display: flex;
    align-items: center;
    padding: 86px 0 160px;
}

.hero-copy {
    width: min(650px, 92%);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-copy .eyebrow,
.detail-hero .eyebrow {
    color: #93c5fd;
}

.hero-copy h1,
.page-hero h1,
.detail-hero h1 {
    margin: 14px 0 18px;
    font-size: clamp(38px, 7vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p,
.detail-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

.page-hero p {
    color: var(--slate-600);
}

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

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

.hero-tags span,
.tag-cloud span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 18px 30px rgba(37, 99, 235, 0.28);
}

.btn-secondary {
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.btn-soft {
    color: #dbeafe;
    background: rgba(37, 99, 235, 0.24);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.hero-control:hover {
    background: rgba(37, 99, 235, 0.75);
    transform: translateY(-2px);
}

.hero-prev {
    left: max(16px, calc((100vw - 1180px) / 2 - 72px));
}

.hero-next {
    right: max(16px, calc((100vw - 1180px) / 2 - 72px));
}

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

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

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

.hero-strip {
    position: absolute;
    left: 50%;
    bottom: 26px;
    z-index: 5;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.compact-card {
    display: grid;
    grid-template-columns: 58px 1fr;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 10px;
    border-radius: 18px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(16px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    transition: transform 0.25s ease, background 0.25s ease;
}

.compact-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.22);
}

.compact-card img {
    width: 58px;
    height: 76px;
    object-fit: cover;
    border-radius: 13px;
}

.compact-card span {
    min-width: 0;
}

.compact-card strong,
.compact-card small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-card small {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.72);
}

.home-search,
.section,
.split-section,
.rank-page-section,
.category-overview-grid,
.player-section,
.detail-layout {
    margin-top: 54px;
}

.search-panel,
.filter-card,
.section-panel,
.rank-panel,
.detail-article,
.detail-poster-card,
.category-overview-card,
.page-hero {
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 0.82fr);
    gap: 28px;
    align-items: center;
    padding: 32px;
    margin-top: -36px;
    position: relative;
    z-index: 10;
}

.search-panel h2,
.section-head h2,
.page-hero h1,
.detail-article h2 {
    margin: 8px 0 0;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.search-panel p {
    color: var(--slate-600);
    line-height: 1.7;
}

.search-panel label {
    display: flex;
    overflow: hidden;
    border-radius: 18px;
    background: var(--slate-100);
    box-shadow: inset 0 0 0 1px #e2e8f0;
}

.search-panel input {
    width: 100%;
    min-height: 56px;
    border: 0;
    background: transparent;
    padding: 0 18px;
    outline: 0;
}

.search-panel button {
    border: 0;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    padding: 0 24px;
    font-weight: 800;
    cursor: pointer;
}

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

.text-link {
    color: var(--blue);
    font-weight: 800;
}

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

.category-card {
    min-height: 130px;
    display: grid;
    align-content: end;
    gap: 10px;
    padding: 22px;
    border-radius: 24px;
    color: var(--white);
    background: linear-gradient(135deg, var(--slate-900), var(--blue-deep));
    box-shadow: var(--shadow-card);
    overflow: hidden;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card::after {
    content: "";
    position: absolute;
    right: -22px;
    top: -22px;
    width: 90px;
    height: 90px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.20);
}

.category-card span {
    position: relative;
    z-index: 1;
    font-size: 24px;
    font-weight: 900;
}

.category-card strong {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
    line-height: 1.55;
}

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

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

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

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

.movie-card-link {
    display: grid;
    height: 100%;
    overflow: hidden;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card-link:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.18);
}

.movie-poster {
    position: relative;
    margin: 0;
    aspect-ratio: 3 / 4.15;
    overflow: hidden;
    background: var(--slate-900);
}

.movie-card-large .movie-poster {
    aspect-ratio: 3 / 2.15;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0) 38%, rgba(2, 6, 23, 0.82) 100%);
}

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    color: var(--blue);
    background: rgba(255, 255, 255, 0.92);
    transform: translate(-50%, -50%) scale(0.82);
    opacity: 0;
    transition: transform 0.28s ease, opacity 0.28s ease;
    font-size: 24px;
    box-shadow: 0 18px 38px rgba(2, 6, 23, 0.28);
}

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

.movie-poster figcaption {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(37, 99, 235, 0.86);
    font-size: 13px;
    font-weight: 800;
}

.movie-info {
    padding: 18px;
}

.movie-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--slate-600);
    font-size: 13px;
    font-weight: 700;
}

.movie-info h3 {
    margin: 10px 0 8px;
    font-size: 20px;
    line-height: 1.25;
}

.movie-info p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--slate-600);
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row span {
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--blue-deep);
    background: #dbeafe;
    font-size: 12px;
    font-weight: 700;
}

.split-section {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 24px;
}

.section-panel,
.rank-panel {
    padding: 28px;
}

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

.section-panel .compact-card {
    color: var(--slate-900);
    background: var(--slate-50);
    box-shadow: inset 0 0 0 1px #e2e8f0;
}

.section-panel .compact-card small {
    color: var(--slate-600);
}

.rank-list,
.rank-page-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.rank-list a {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: var(--slate-50);
    transition: transform 0.25s ease, background 0.25s ease;
}

.rank-list a:hover {
    background: #dbeafe;
    transform: translateX(3px);
}

.rank-num {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    font-weight: 900;
}

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

.rank-list small {
    color: var(--slate-600);
}

.page-hero {
    margin-top: 34px;
    padding: 42px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    color: var(--slate-600);
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--blue);
    font-weight: 800;
}

.filter-card {
    display: grid;
    grid-template-columns: minmax(240px, 1.5fr) repeat(4, minmax(130px, 0.7fr));
    gap: 14px;
    padding: 18px;
}

.filter-card label {
    display: grid;
    gap: 7px;
}

.filter-card span {
    color: var(--slate-600);
    font-size: 13px;
    font-weight: 800;
}

.filter-card input,
.filter-card select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #dbe3ef;
    border-radius: 13px;
    background: var(--white);
    padding: 0 12px;
    outline: 0;
}

.filter-card input:focus,
.filter-card select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.category-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-overview-card {
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.18);
}

.category-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 150px;
    overflow: hidden;
    background: var(--slate-900);
}

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

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

.category-overview-info h2 {
    margin: 8px 0;
}

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

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

.rank-row a {
    display: grid;
    grid-template-columns: 64px 72px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 12px 16px;
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-row a:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.15);
}

.rank-index {
    color: var(--blue);
    font-size: 26px;
    font-weight: 900;
    text-align: center;
}

.rank-row img {
    width: 72px;
    height: 96px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-row-main {
    min-width: 0;
}

.rank-row-main strong,
.rank-row-main small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-row-main strong {
    font-size: 18px;
}

.rank-row-main small,
.rank-row-meta {
    color: var(--slate-600);
    line-height: 1.55;
}

.detail-hero {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    color: var(--white);
    background: var(--slate-950);
}

.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px) saturate(1.1);
    transform: scale(1.04);
}

.detail-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(15, 23, 42, 0.72) 54%, rgba(15, 23, 42, 0.22) 100%), linear-gradient(0deg, rgba(2, 6, 23, 0.92) 0%, transparent 58%);
}

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

.player-section {
    margin-top: -96px;
    position: relative;
    z-index: 4;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: var(--slate-950);
    box-shadow: 0 30px 70px rgba(2, 6, 23, 0.38);
    aspect-ratio: 16 / 9;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    background: #000000;
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

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

.player-cover-mask {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.55);
}

.player-play {
    position: absolute;
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    border-radius: 999px;
    color: var(--blue);
    background: rgba(255, 255, 255, 0.94);
    font-size: 42px;
    box-shadow: 0 26px 58px rgba(2, 6, 23, 0.35);
    transition: transform 0.25s ease;
}

.player-cover:hover .player-play {
    transform: scale(1.06);
}

.detail-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.detail-poster-card {
    padding: 18px;
    position: sticky;
    top: 104px;
}

.detail-poster-card img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    margin-bottom: 16px;
}

.detail-poster-card .btn {
    width: 100%;
}

.detail-article {
    padding: 34px;
}

.detail-article p {
    color: var(--slate-700);
    font-size: 17px;
    line-height: 1.9;
}

.info-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 18px 0 22px;
}

.info-list div {
    padding: 14px;
    border-radius: 16px;
    background: var(--slate-50);
}

.info-list dt {
    color: var(--slate-600);
    font-size: 13px;
    font-weight: 800;
}

.info-list dd {
    margin: 6px 0 0;
    font-weight: 900;
}

.tag-cloud span {
    color: var(--blue-deep);
    background: #dbeafe;
    font-weight: 800;
}

.related-grid {
    grid-template-columns: repeat(6, 1fr);
}

.site-footer {
    margin-top: 74px;
    color: rgba(255, 255, 255, 0.78);
    background: var(--slate-950);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    flex-wrap: wrap;
    padding: 34px 0;
}

.footer-brand {
    color: var(--white);
    font-size: 20px;
    font-weight: 900;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

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

@media (max-width: 1100px) {
    .header-inner {
        grid-template-columns: auto auto;
    }

    .menu-toggle {
        display: block;
        justify-self: end;
    }

    .site-nav,
    .nav-search {
        display: none;
        grid-column: 1 / -1;
    }

    .site-header.is-open .site-nav,
    .site-header.is-open .nav-search {
        display: flex;
    }

    .site-nav {
        align-items: stretch;
    }

    .nav-search {
        width: 100%;
    }

    .hero-strip,
    .category-grid,
    .movie-grid,
    .featured-grid,
    .category-overview-grid,
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .detail-poster-card {
        position: static;
        max-width: 360px;
    }
}

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

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

    .brand-mark {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

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

    .hero-content {
        align-items: start;
        padding-top: 82px;
    }

    .hero-control {
        display: none;
    }

    .hero-dots {
        bottom: 88px;
    }

    .hero-strip {
        display: flex;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .compact-card {
        min-width: 230px;
    }

    .search-panel,
    .filter-card,
    .section-panel,
    .rank-panel,
    .detail-article,
    .page-hero {
        padding: 22px;
        border-radius: 22px;
    }

    .filter-card,
    .movie-grid,
    .featured-grid,
    .category-grid,
    .category-overview-grid,
    .related-grid,
    .mini-grid {
        grid-template-columns: 1fr;
    }

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

    .rank-row a {
        grid-template-columns: 42px 58px minmax(0, 1fr);
    }

    .rank-row-meta {
        grid-column: 3;
    }

    .rank-row img {
        width: 58px;
        height: 78px;
    }

    .detail-hero-content {
        padding-bottom: 126px;
    }

    .video-shell {
        border-radius: 20px;
    }

    .player-play {
        width: 74px;
        height: 74px;
        font-size: 34px;
    }

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

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}
