* {
    box-sizing: border-box;
}

:root {
    color-scheme: dark;
    --night-950: #0f1115;
    --night-925: #14171d;
    --night-900: #1a1c23;
    --night-850: #23262f;
    --night-800: #3b3d44;
    --night-700: #454750;
    --maple-700: #7f281d;
    --maple-600: #b92f1c;
    --maple-500: #dc3a26;
    --maple-400: #ef5844;
    --maple-300: #fcafa5;
    --warm-50: #faf8f3;
    --warm-100: #f4ead8;
    --warm-200: #e7dbc0;
    --warm-300: #d8c299;
    --warm-400: #c8a670;
    --warm-500: #a48155;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 0%, rgba(239, 88, 68, 0.18), transparent 28rem),
        radial-gradient(circle at 92% 12%, rgba(200, 166, 112, 0.12), transparent 24rem),
        var(--night-950);
    color: var(--warm-50);
}

body.is-locked {
    overflow: hidden;
}

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;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(15, 17, 21, 0.82);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    width: min(100% - 32px, 1440px);
    margin: 0 auto;
    min-height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--maple-500), var(--maple-700));
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(220, 58, 38, 0.35);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--warm-200);
    font-size: 15px;
    font-weight: 600;
}

.desktop-nav a,
.nav-dropdown button {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.nav-dropdown button:hover {
    color: var(--maple-400);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    display: grid;
    width: 210px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(26, 28, 35, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(8px);
    visibility: hidden;
    transition: 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.dropdown-panel a {
    min-height: auto;
    padding: 11px 12px;
    border-radius: 10px;
    color: var(--warm-200);
}

.dropdown-panel a:hover {
    background: var(--night-800);
    color: var(--maple-300);
}

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

.site-search input {
    width: min(26vw, 320px);
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    outline: 0;
    background: rgba(59, 61, 68, 0.68);
    color: var(--warm-50);
    padding: 0 14px;
    transition: 0.2s ease;
}

.site-search input:focus {
    border-color: rgba(239, 88, 68, 0.7);
    box-shadow: 0 0 0 3px rgba(239, 88, 68, 0.14);
}

.site-search button,
.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 12px;
    border: 0;
    padding: 0 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.site-search button,
.btn-primary {
    background: linear-gradient(135deg, var(--maple-500), var(--maple-600));
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(220, 58, 38, 0.24);
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.08);
    color: var(--warm-100);
}

.btn-ghost.small {
    min-height: 40px;
    padding: 0 16px;
}

.site-search button:hover,
.btn-primary:hover,
.btn-ghost:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.25);
}

.mobile-menu-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--warm-50);
}

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

.mobile-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--warm-200);
}

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

.home-hero,
.page-section,
.sub-hero,
.detail-hero {
    width: min(100% - 32px, 1440px);
    margin: 0 auto;
}

.home-hero {
    padding-top: 28px;
}

.hero-carousel {
    position: relative;
    min-height: 72vh;
    border-radius: 28px;
    overflow: hidden;
    background: var(--night-900);
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 17, 21, 0.96) 0%, rgba(15, 17, 21, 0.72) 38%, rgba(15, 17, 21, 0.16) 100%),
        linear-gradient(0deg, rgba(15, 17, 21, 0.88), transparent 55%);
}

.hero-content {
    position: absolute;
    left: clamp(24px, 6vw, 84px);
    bottom: clamp(36px, 9vw, 110px);
    width: min(680px, calc(100% - 48px));
}

.category-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--maple-500), var(--maple-700));
    color: #ffffff;
    padding: 9px 14px;
    font-weight: 800;
    box-shadow: 0 16px 32px rgba(220, 58, 38, 0.24);
}

.hero-content h1,
.sub-hero h1,
.detail-info h1 {
    margin: 18px 0 14px;
    color: var(--warm-50);
    font-size: clamp(38px, 6vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.04em;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.hero-content p,
.sub-hero p,
.intro-copy p,
.detail-one-line {
    color: var(--warm-200);
    font-size: clamp(16px, 2vw, 21px);
    line-height: 1.75;
}

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

.hero-tags span,
.detail-tags span,
.movie-card-tags span {
    border-radius: 999px;
    background: rgba(59, 61, 68, 0.82);
    color: var(--warm-200);
    padding: 6px 11px;
    font-size: 13px;
}

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

.hero-control {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(15, 17, 21, 0.55);
    color: var(--warm-50);
    cursor: pointer;
    font-size: 34px;
    transform: translateY(-50%);
    transition: 0.2s ease;
}

.hero-control:hover {
    background: var(--maple-500);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

.hero-dots {
    position: absolute;
    left: clamp(24px, 6vw, 84px);
    bottom: 28px;
    display: flex;
    gap: 9px;
}

.hero-dots button {
    width: 34px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
}

.hero-dots button.is-active {
    background: var(--maple-400);
}

.page-section {
    margin-top: 56px;
}

.intro-panel,
.feature-banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(35, 38, 47, 0.9), rgba(26, 28, 35, 0.92));
    padding: clamp(24px, 4vw, 42px);
    box-shadow: 0 18px 80px rgba(0, 0, 0, 0.25);
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--maple-300);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.intro-copy h2,
.section-head h2,
.article-content h2,
.channel-list h2,
.feature-banner h2 {
    margin: 0 0 12px;
    color: var(--warm-50);
    font-size: clamp(26px, 4vw, 42px);
    letter-spacing: -0.03em;
}

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

.section-head p {
    margin: 0;
    color: var(--warm-400);
}

.section-head a {
    color: var(--maple-300);
    font-weight: 800;
}

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

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 170px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: linear-gradient(135deg, var(--night-800), var(--night-900));
    padding: 22px;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.category-card::after {
    content: "";
    position: absolute;
    top: -52px;
    right: -52px;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(239, 88, 68, 0.12);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    border-color: rgba(239, 88, 68, 0.45);
    background: linear-gradient(135deg, rgba(127, 40, 29, 0.92), var(--night-900));
}

.category-card:hover::after {
    transform: scale(1.45);
}

.category-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(239, 88, 68, 0.17);
    color: var(--maple-300);
    font-weight: 900;
}

.category-card strong,
.category-card em {
    position: relative;
    z-index: 1;
    display: block;
}

.category-card strong {
    margin: 20px 0 8px;
    font-size: 20px;
}

.category-card em {
    color: var(--warm-400);
    font-style: normal;
    line-height: 1.6;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    background: rgba(26, 28, 35, 0.86);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(239, 88, 68, 0.5);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.32);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4.15;
    overflow: hidden;
    background: var(--night-800);
}

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

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

.movie-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 17, 21, 0.9), transparent 52%);
}

.movie-year {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
    border-radius: 999px;
    background: rgba(15, 17, 21, 0.72);
    color: var(--warm-100);
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
}

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: rgba(220, 58, 38, 0.88);
    color: #ffffff;
    transform: translate(-50%, -50%) scale(0.86);
    opacity: 0;
    transition: 0.25s ease;
}

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

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

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

.movie-card h3 a:hover {
    color: var(--maple-300);
}

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

.movie-card-meta,
.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--warm-500);
    font-size: 13px;
}

.movie-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px, 1fr);
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.movie-scroll::-webkit-scrollbar {
    display: none;
}

.feature-banner {
    grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
    overflow: hidden;
}

.feature-banner img {
    width: 100%;
    height: 360px;
    border-radius: 20px;
    object-fit: cover;
}

.feature-banner p,
.article-content p {
    color: var(--warm-200);
    font-size: 17px;
    line-height: 1.85;
}

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

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

.rank-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    min-height: 136px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(35, 38, 47, 0.88), rgba(26, 28, 35, 0.92));
    padding: 12px;
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.rank-card:hover {
    transform: translateY(-5px);
    border-color: rgba(239, 88, 68, 0.42);
}

.rank-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 14px;
}

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

.rank-poster span {
    position: absolute;
    left: 8px;
    top: 8px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 30px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--maple-500), var(--maple-700));
    color: #ffffff;
    font-weight: 900;
}

.rank-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.rank-card h3 a:hover {
    color: var(--maple-300);
}

.rank-card p {
    display: -webkit-box;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--warm-300);
    font-size: 14px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.sub-hero {
    margin-top: 36px;
    padding: clamp(38px, 7vw, 90px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(127, 40, 29, 0.45), transparent 58%),
        linear-gradient(135deg, rgba(35, 38, 47, 0.88), rgba(15, 17, 21, 0.92));
    box-shadow: var(--shadow);
}

.sub-hero h1 {
    max-width: 900px;
}

.sub-hero p {
    max-width: 850px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    background: rgba(26, 28, 35, 0.72);
}

.inline-search {
    margin: 0;
}

.inline-search input {
    width: min(100vw - 110px, 460px);
}

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

.quick-filter a {
    border-radius: 999px;
    background: rgba(59, 61, 68, 0.75);
    color: var(--warm-200);
    padding: 9px 13px;
    font-size: 14px;
    font-weight: 700;
}

.quick-filter a:hover {
    background: var(--maple-700);
    color: var(--maple-300);
}

.channel-list {
    border-radius: 24px;
    background: rgba(26, 28, 35, 0.72);
    padding: 32px;
}

.channel-list ul,
.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.channel-list li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.channel-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0;
    color: var(--warm-50);
    font-weight: 800;
}

.channel-list span {
    color: var(--warm-400);
    font-weight: 500;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(230px, 360px) minmax(0, 1fr);
    gap: clamp(24px, 5vw, 64px);
    align-items: center;
    margin-top: 36px;
    padding: clamp(24px, 5vw, 56px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    background:
        radial-gradient(circle at 15% 0%, rgba(239, 88, 68, 0.22), transparent 24rem),
        linear-gradient(135deg, rgba(35, 38, 47, 0.9), rgba(15, 17, 21, 0.93));
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4.1;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    color: var(--warm-400);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--maple-300);
}

.detail-info h1 {
    font-size: clamp(34px, 5vw, 62px);
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0;
}

.detail-meta div {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(15, 17, 21, 0.36);
    padding: 13px;
}

.detail-meta dt {
    margin-bottom: 5px;
    color: var(--warm-500);
    font-size: 12px;
}

.detail-meta dd {
    margin: 0;
    color: var(--warm-100);
    font-weight: 800;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    background: #000000;
    box-shadow: var(--shadow);
}

.player-shell video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    cursor: pointer;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle, rgba(220, 58, 38, 0.18), transparent 22rem),
        linear-gradient(0deg, rgba(15, 17, 21, 0.82), rgba(15, 17, 21, 0.36));
    transition: opacity 0.25s ease;
}

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

.player-start {
    display: grid;
    place-items: center;
    gap: 12px;
    width: 156px;
    height: 156px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(220, 58, 38, 0.96), rgba(127, 40, 29, 0.96));
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 24px 70px rgba(220, 58, 38, 0.36);
}

.player-start span {
    font-size: 38px;
}

.player-start strong {
    font-size: 18px;
}

.article-content {
    max-width: 980px;
    padding: 36px;
    border-radius: 24px;
    background: rgba(26, 28, 35, 0.72);
}

.article-content h2 + p {
    margin-top: 0;
}

.site-footer {
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 11, 14, 0.72);
}

.footer-grid,
.footer-bottom {
    width: min(100% - 32px, 1440px);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 36px;
    padding: 44px 0;
}

.footer-brand {
    margin-bottom: 18px;
}

.site-footer p,
.site-footer a,
.site-footer li,
.footer-bottom {
    color: var(--warm-400);
    line-height: 1.75;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--warm-50);
    font-size: 18px;
}

.site-footer a:hover {
    color: var(--maple-300);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

[data-search-item].is-hidden {
    display: none;
}

@media (max-width: 1180px) {
    .category-grid,
    .category-grid.large {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

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

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

    .hero-carousel {
        min-height: 74vh;
        border-radius: 22px;
    }

    .hero-content {
        left: 22px;
        bottom: 62px;
        width: calc(100% - 44px);
    }

    .hero-control {
        display: none;
    }

    .intro-panel,
    .feature-banner,
    .detail-hero,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .intro-actions {
        justify-content: flex-start;
    }

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

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

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

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

    .section-head,
    .footer-bottom,
    .channel-list a {
        align-items: flex-start;
        flex-direction: column;
    }

    .inline-search,
    .inline-search input {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .nav-wrap,
    .home-hero,
    .page-section,
    .sub-hero,
    .detail-hero,
    .footer-grid,
    .footer-bottom {
        width: min(100% - 24px, 1440px);
    }

    .brand {
        font-size: 17px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
    }

    .home-hero {
        padding-top: 18px;
    }

    .hero-carousel {
        min-height: 68vh;
    }

    .hero-dots {
        left: 22px;
    }

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

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

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

    .player-start {
        width: 118px;
        height: 118px;
    }
}
