:root {
    --bg: #f8fafc;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --card: #ffffff;
    --blue: #2563eb;
    --cyan: #06b6d4;
    --teal: #14b8a6;
    --slate: #0f172a;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

img,
video {
    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;
    background: rgba(255, 255, 255, 0.84);
    border-bottom: 1px solid rgba(226, 232, 240, 0.86);
    backdrop-filter: blur(18px);
}

.site-nav {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
}

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

.brand-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.brand-text {
    font-size: 20px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    position: relative;
    font-size: 15px;
    font-weight: 700;
    color: #334155;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    border-radius: 999px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--blue);
}

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

.header-search {
    width: 260px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
}

.header-search input,
.mobile-search input,
.hero-search input,
.search-console input,
.filter-bar input,
.filter-bar select,
.search-console select {
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
}

.header-search input {
    flex: 1;
    padding: 5px 4px 5px 12px;
    font-size: 14px;
}

.header-search button,
.mobile-search button,
.hero-search button,
.search-console button {
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    padding: 8px 14px;
    font-weight: 700;
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #eff6ff;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: var(--blue);
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

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

.mobile-link {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    color: #334155;
    font-weight: 700;
}

.mobile-link:hover,
.mobile-link.is-active {
    color: var(--blue);
    background: #eff6ff;
}

.mobile-search {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding: 8px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
}

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

.hero {
    position: relative;
    height: 640px;
    overflow: hidden;
    background: linear-gradient(135deg, #2563eb, #06b6d4 54%, #14b8a6);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image: radial-gradient(circle at 20% 20%, #ffffff 0 2px, transparent 2px), radial-gradient(circle at 70% 60%, #ffffff 0 1px, transparent 1px);
    background-size: 56px 56px, 32px 32px;
}

.hero-track,
.hero-slide,
.hero-image-layer,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease;
}

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

.hero-image-layer {
    transform: scale(1.04);
}

.hero-image-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.32;
}

.hero-image-layer img.is-missing {
    opacity: 0;
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.45), rgba(15, 23, 42, 0.18)),
        linear-gradient(0deg, rgba(15, 23, 42, 0.36), rgba(15, 23, 42, 0.08));
}

.hero-content {
    position: relative;
    z-index: 3;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #ffffff;
}

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

.hero h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 760px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(18px, 2.3vw, 26px);
}

.hero-tags,
.hero-actions,
.tag-row,
.movie-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    font-size: 13px;
}

.hero-actions {
    margin-top: 34px;
}

.primary-button,
.ghost-button,
.text-button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    min-height: 48px;
    padding: 12px 24px;
    color: var(--blue);
    background: #ffffff;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.22);
}

.primary-button:hover,
.ghost-button:hover,
.movie-card:hover,
.category-card:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
}

.ghost-button {
    min-height: 48px;
    padding: 12px 24px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(12px);
}

.hero-controls {
    position: absolute;
    right: max(24px, calc((100vw - 1180px) / 2));
    bottom: 110px;
    z-index: 4;
    display: flex;
    gap: 12px;
}

.hero-controls button {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    font-size: 34px;
    line-height: 1;
}

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

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

.hero-dot.is-active {
    width: 32px;
    background: #ffffff;
}

.hero-search {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 4;
    width: min(760px, calc(100% - 32px));
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.24);
    transform: translateX(-50%);
}

.hero-search input {
    flex: 1;
    padding: 12px 18px;
}

.page-section {
    padding: 72px 0;
}

.white-section {
    background: #ffffff;
}

.soft-section {
    background: linear-gradient(135deg, #f8fafc, #eff6ff 58%, #ecfeff);
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--muted);
}

.section-more,
.text-button {
    color: var(--blue);
    background: #eff6ff;
    padding: 10px 16px;
}

.featured-grid,
.poster-grid,
.category-grid,
.category-overview-grid {
    display: grid;
    gap: 24px;
}

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

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

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

.movie-card,
.category-card,
.category-overview-card,
.rank-row,
.detail-side,
.detail-article,
.player-card,
.rank-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.movie-card {
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    box-shadow: var(--shadow);
}

.poster-shell {
    position: relative;
    display: block;
    overflow: hidden;
    background:
        radial-gradient(circle at 28% 20%, rgba(6, 182, 212, 0.5), transparent 30%),
        linear-gradient(135deg, #1e3a8a, #0f172a);
    aspect-ratio: 2 / 3;
}

.movie-card-wide .poster-shell,
.compact-thumb,
.category-cover,
.category-overview-cover,
.rank-row-cover {
    background:
        radial-gradient(circle at 28% 20%, rgba(6, 182, 212, 0.5), transparent 30%),
        linear-gradient(135deg, #1e3a8a, #0f172a);
}

.poster-shell img,
.category-cover img,
.category-overview-cover img,
.compact-thumb img,
.rank-row-cover img,
.detail-backdrop img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.2s ease;
}

.poster-shell img.is-missing,
.category-cover img.is-missing,
.category-overview-cover img.is-missing,
.compact-thumb img.is-missing,
.rank-row-cover img.is-missing,
.detail-backdrop img.is-missing,
.detail-poster img.is-missing {
    opacity: 0;
}

.movie-card:hover .poster-shell img,
.category-card:hover img,
.category-overview-card:hover img,
.rank-row:hover img {
    transform: scale(1.08);
}

.poster-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 800;
}

.play-dot {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

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

.movie-card-meta {
    margin-bottom: 9px;
    color: var(--muted);
    font-size: 12px;
}

.movie-card-meta a,
.movie-card-meta span {
    color: var(--muted);
}

.movie-card h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-row h2 a:hover,
.compact-item:hover strong {
    color: var(--blue);
}

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

.movie-card .tag-row span {
    color: var(--blue);
    background: #eff6ff;
    border-color: #dbeafe;
}

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

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

.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    font-weight: 900;
}

.panel-title a {
    color: var(--blue);
    font-size: 14px;
}

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

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

.compact-item:hover {
    background: #f8fafc;
}

.rank-number {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    font-size: 12px;
    font-weight: 900;
}

.compact-thumb {
    width: 76px;
    height: 54px;
    overflow: hidden;
    border-radius: 14px;
}

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

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

.compact-info em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.category-card {
    min-height: 240px;
    overflow: hidden;
    padding: 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-cover {
    display: block;
    height: 130px;
    overflow: hidden;
    border-radius: 18px;
    margin-bottom: 14px;
}

.category-card strong,
.category-card em {
    display: block;
}

.category-card strong {
    font-size: 18px;
}

.category-card em {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0;
    color: #ffffff;
    background: linear-gradient(135deg, #1d4ed8, #0891b2 55%, #0f766e);
}

.page-hero::after,
.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.16;
    background-image: radial-gradient(circle at 15% 20%, #ffffff 0 2px, transparent 2px), radial-gradient(circle at 70% 60%, #ffffff 0 1px, transparent 1px);
    background-size: 54px 54px, 30px 30px;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

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

.small-hero {
    padding: 70px 0;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 22px;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-overview-cover {
    display: block;
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 4 / 3;
}

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

.category-overview-card p {
    margin: 8px 0 16px;
    color: var(--muted);
}

.filter-bar,
.search-console {
    display: grid;
    gap: 12px;
    margin-bottom: 28px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.filter-bar {
    grid-template-columns: minmax(0, 1fr) 160px 160px;
}

.search-console {
    grid-template-columns: minmax(0, 1.4fr) 180px 150px 150px auto;
}

.filter-bar input,
.filter-bar select,
.search-console input,
.search-console select {
    min-height: 46px;
    padding: 0 14px;
    border-radius: 16px;
    background: #f8fafc;
}

.search-console button {
    min-height: 46px;
    padding: 0 22px;
}

.rank-lead-grid {
    margin-bottom: 28px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 100px 52px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
}

.rank-row-cover {
    display: block;
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 4 / 3;
}

.rank-row-number {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    font-weight: 900;
}

.rank-row h2 {
    margin: 0;
    font-size: 20px;
}

.rank-row p {
    margin: 6px 0 8px;
    color: var(--muted);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #0f172a;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.28;
    filter: blur(8px);
    transform: scale(1.05);
}

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.72));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 42px 0 72px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #ffffff;
}

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

.detail-poster {
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.detail-copy h1 {
    font-size: clamp(38px, 5vw, 68px);
}

.detail-one-line {
    max-width: 820px;
    margin: 18px 0 22px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 20px;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 700px;
    margin-bottom: 18px;
}

.detail-meta-grid span {
    padding: 10px 14px;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.detail-tags {
    margin-bottom: 26px;
}

.player-card {
    position: relative;
    overflow: hidden;
    background: #020617;
    aspect-ratio: 16 / 9;
}

.movie-player {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.66));
    cursor: pointer;
}

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

.player-start span {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 18px 46px rgba(37, 99, 235, 0.36);
    font-size: 28px;
}

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

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 30px;
    align-items: start;
}

.detail-article,
.detail-side {
    padding: 28px;
}

.detail-article h2,
.detail-side h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.detail-article p {
    margin: 0 0 24px;
    color: #334155;
    font-size: 17px;
}

.detail-side dl {
    margin: 0;
}

.detail-side dt {
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
}

.detail-side dd {
    margin: 4px 0 0;
    font-weight: 800;
}

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

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(135deg, #0f172a, #1e293b 58%, #0f172a);
}

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

.brand-footer .brand-text {
    color: #ffffff;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

.footer-brand p {
    max-width: 460px;
    margin: 16px 0 0;
    color: #94a3b8;
}

.footer-block h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
}

.footer-block a {
    display: block;
    margin-top: 8px;
    color: #94a3b8;
}

.footer-block a:hover {
    color: #67e8f9;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 48px;
    border-radius: 24px;
    text-align: center;
    color: var(--muted);
    background: #f8fafc;
}

@media (max-width: 1100px) {
    .poster-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .split-layout,
    .article-layout {
        grid-template-columns: 1fr;
    }

    .rank-panel {
        position: static;
    }
}

@media (max-width: 860px) {
    .site-nav {
        gap: 12px;
    }

    .nav-links,
    .header-search {
        display: none;
    }

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

    .hero {
        height: 720px;
    }

    .hero-content {
        justify-content: flex-start;
        padding-top: 96px;
    }

    .hero h1 {
        font-size: 46px;
    }

    .hero-search {
        flex-direction: column;
        border-radius: 24px;
    }

    .hero-controls {
        right: 20px;
        bottom: 156px;
    }

    .hero-dots {
        bottom: 124px;
    }

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

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

    .filter-bar,
    .search-console {
        grid-template-columns: 1fr;
    }

    .category-overview-card,
    .detail-layout,
    .rank-row {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: min(260px, 100%);
    }

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

    .rank-row-number {
        position: absolute;
        margin: 12px;
    }

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

@media (max-width: 560px) {
    .container,
    .site-nav,
    .mobile-panel,
    .footer-inner {
        width: min(100% - 24px, 1180px);
    }

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

    .hero {
        height: 760px;
    }

    .page-section {
        padding: 52px 0;
    }

    .featured-grid,
    .poster-grid,
    .category-grid,
    .category-overview-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .compact-item {
        grid-template-columns: auto 70px minmax(0, 1fr);
    }

    .detail-hero-inner {
        padding-bottom: 52px;
    }
}
