* {
    box-sizing: border-box;
}

:root {
    --emerald: #059669;
    --emerald-dark: #047857;
    --teal: #0d9488;
    --sky: #0284c7;
    --rose: #e11d48;
    --amber: #f59e0b;
    --purple: #7c3aed;
    --ink: #111827;
    --muted: #6b7280;
    --soft: #f8fafc;
    --line: #e5e7eb;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 48%, #ecfdf5 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.75);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.nav-shell {
    width: min(1200px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 900;
    font-size: 22px;
    background: linear-gradient(135deg, var(--emerald), var(--teal));
    box-shadow: 0 12px 24px rgba(5, 150, 105, 0.28);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-copy strong {
    font-size: 20px;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--emerald), var(--teal));
    -webkit-background-clip: text;
    color: transparent;
}

.brand-copy small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

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

.nav-link {
    padding: 10px 12px;
    border-radius: 999px;
    color: #374151;
    font-weight: 600;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--emerald);
    background: rgba(16, 185, 129, 0.1);
}

.nav-search,
.mobile-search,
.big-search,
.search-page-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-search input,
.mobile-search input,
.big-search input,
.search-page-form input,
.filter-search input,
.filter-panel select {
    border: 1px solid transparent;
    outline: none;
    border-radius: 999px;
    background: #f3f4f6;
    padding: 12px 16px;
    color: var(--ink);
    transition: border 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
    width: 250px;
}

.nav-search input:focus,
.mobile-search input:focus,
.big-search input:focus,
.search-page-form input:focus,
.filter-search input:focus,
.filter-panel select:focus {
    background: #ffffff;
    border-color: rgba(5, 150, 105, 0.35);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.nav-search button,
.mobile-search button,
.big-search button,
.search-page-form button {
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    color: #ffffff;
    cursor: pointer;
    font-weight: 700;
    background: linear-gradient(135deg, var(--emerald), var(--teal));
    box-shadow: 0 10px 20px rgba(5, 150, 105, 0.22);
}

.menu-toggle {
    display: none;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #f3f4f6;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: #374151;
}

.mobile-panel {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 16px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

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

.mobile-search {
    margin-bottom: 12px;
}

.mobile-search input {
    flex: 1;
}

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

.mobile-link:hover,
.mobile-link.active {
    color: var(--emerald);
    background: rgba(16, 185, 129, 0.1);
}

.home-main,
.inner-main {
    min-height: 70vh;
}

.hero {
    position: relative;
    height: 610px;
    overflow: hidden;
    margin-top: 72px;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.56) 42%, rgba(0, 0, 0, 0.2) 100%);
}

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

.hero-content h1 {
    max-width: 720px;
    margin: 16px 0;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.03;
    letter-spacing: -0.05em;
}

.hero-content p {
    max-width: 640px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

.hero-kicker,
.detail-labels {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-kicker span,
.hero-kicker a,
.detail-labels span,
.detail-labels a {
    display: inline-flex;
    border-radius: 999px;
    padding: 7px 12px;
    font-weight: 700;
    font-size: 13px;
}

.hero-kicker span,
.detail-labels a {
    color: #ffffff;
    background: var(--emerald);
}

.hero-kicker a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

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

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

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--emerald), var(--teal));
    box-shadow: 0 16px 28px rgba(5, 150, 105, 0.28);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

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

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

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

.quick-search-section {
    width: min(1080px, calc(100% - 32px));
    margin: -38px auto 0;
    position: relative;
    z-index: 6;
    padding: 20px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.big-search input {
    flex: 1;
    min-height: 54px;
    font-size: 16px;
}

.big-search button {
    min-height: 54px;
    padding-inline: 26px;
}

.quick-category-row,
.category-chip-row,
.popular-searches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.quick-category-row a,
.category-chip-row a,
.popular-searches a {
    border-radius: 999px;
    padding: 9px 13px;
    font-size: 14px;
    font-weight: 700;
    color: #047857;
    background: rgba(16, 185, 129, 0.11);
}

.page-shell {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 58px 0;
}

.section-block {
    margin-bottom: 72px;
}

.section-heading {
    margin-bottom: 24px;
}

.section-heading span,
.page-hero span,
.rank-copy span {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--emerald);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-heading h2,
.page-hero h1,
.rank-copy h2,
.text-section h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -0.04em;
}

.split-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.split-heading a,
.text-link {
    color: var(--emerald);
    font-weight: 800;
}

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

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

.movie-card,
.featured-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover,
.featured-card:hover,
.category-tile:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #e5e7eb, #f3f4f6);
}

.movie-card-wide .card-cover {
    aspect-ratio: 16 / 10;
}

.card-cover img,
.featured-card img,
.category-tile img,
.poster-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .card-cover img,
.featured-card:hover img,
.category-tile:hover img {
    transform: scale(1.08);
}

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 3;
    top: 12px;
    left: 12px;
    border-radius: 999px;
    padding: 7px 10px;
    color: #ffffff;
    font-weight: 800;
    font-size: 12px;
    background: rgba(5, 150, 105, 0.92);
    backdrop-filter: blur(10px);
}

.rank-badge {
    background: rgba(225, 29, 72, 0.92);
}

.card-body {
    padding: 18px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.card-body h3 {
    margin: 0 0 10px;
    font-size: 19px;
    line-height: 1.35;
}

.card-body h3 a:hover {
    color: var(--emerald);
}

.card-body p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-row span {
    border-radius: 999px;
    padding: 6px 9px;
    font-size: 12px;
    color: #047857;
    background: rgba(16, 185, 129, 0.11);
}

.highlight-panel {
    padding: 30px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.8), rgba(255, 247, 237, 0.92));
}

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

.featured-card a {
    position: relative;
    display: block;
    min-height: 380px;
    color: #ffffff;
    overflow: hidden;
}

.featured-shade,
.category-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.18));
}

.featured-label {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    border-radius: 999px;
    padding: 7px 12px;
    background: var(--emerald);
    font-weight: 800;
}

.featured-copy {
    position: absolute;
    z-index: 2;
    left: 22px;
    right: 22px;
    bottom: 22px;
}

.featured-copy strong,
.featured-copy em {
    display: block;
}

.featured-copy strong {
    margin-bottom: 8px;
    font-size: 24px;
    line-height: 1.2;
}

.featured-copy em {
    color: rgba(255, 255, 255, 0.82);
    font-style: normal;
    line-height: 1.6;
}

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

.category-tile {
    position: relative;
    min-height: 210px;
    border-radius: 22px;
    overflow: hidden;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-tile strong {
    bottom: 72px;
    font-size: 24px;
}

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

.tone-1 .category-mask { background: linear-gradient(0deg, rgba(5, 150, 105, 0.84), rgba(5, 150, 105, 0.14)); }
.tone-2 .category-mask { background: linear-gradient(0deg, rgba(2, 132, 199, 0.84), rgba(2, 132, 199, 0.14)); }
.tone-3 .category-mask { background: linear-gradient(0deg, rgba(225, 29, 72, 0.84), rgba(225, 29, 72, 0.14)); }
.tone-4 .category-mask { background: linear-gradient(0deg, rgba(245, 158, 11, 0.86), rgba(245, 158, 11, 0.14)); }
.tone-5 .category-mask { background: linear-gradient(0deg, rgba(124, 58, 237, 0.84), rgba(124, 58, 237, 0.14)); }

.rank-entry {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
    padding: 34px;
    border-radius: 30px;
    color: #ffffff;
    background: linear-gradient(135deg, #064e3b, #0f766e 48%, #111827);
    box-shadow: var(--shadow);
}

.rank-copy p {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.8;
    max-width: 480px;
}

.rank-copy span {
    color: #a7f3d0;
}

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

.rank-line {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-line:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.rank-line span {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 900;
}

.rank-line strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-line em {
    color: rgba(255, 255, 255, 0.72);
    font-style: normal;
    font-size: 13px;
}

.inner-main {
    padding-top: 72px;
}

.page-hero {
    min-height: 320px;
    display: flex;
    align-items: center;
    color: #ffffff;
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.72), transparent 42%), linear-gradient(135deg, #111827, #064e3b);
}

.page-hero > div {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

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

.small-hero,
.category-hero,
.rank-hero,
.search-hero {
    min-height: 300px;
}

.compact-actions {
    margin-top: 22px;
}

.filter-panel,
.search-panel {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.filter-search {
    flex: 1;
}

.filter-search input {
    width: 100%;
}

.filter-panel select {
    min-width: 170px;
    cursor: pointer;
}

.category-movie-grid {
    margin-top: 26px;
}

.rank-card-grid {
    margin-bottom: 34px;
}

.full-rank-list .rank-line {
    color: var(--ink);
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.full-rank-list .rank-line:hover {
    background: #f9fafb;
}

.full-rank-list .rank-line span {
    background: var(--emerald);
}

.full-rank-list .rank-line em {
    color: var(--muted);
}

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

.search-page-form input {
    flex: 1;
    min-height: 54px;
}

.search-results {
    min-height: 240px;
}

.empty-state {
    text-align: center;
    padding: 70px 20px;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}

.empty-state h2 {
    margin: 0 0 10px;
}

.empty-state p {
    margin: 0;
    color: var(--muted);
}

.detail-layout {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 58px;
}

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

.breadcrumb a {
    color: var(--emerald);
    font-weight: 800;
}

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

.video-frame {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background: #020617;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.video-frame video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.2));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
    width: 82px;
    height: 82px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    font-size: 34px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--emerald), var(--teal));
    box-shadow: 0 18px 38px rgba(5, 150, 105, 0.36);
}

.player-overlay strong {
    font-size: clamp(22px, 4vw, 36px);
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.45);
}

.detail-info {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    align-items: start;
    margin-bottom: 30px;
}

.poster-card {
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: var(--shadow);
    background: #e5e7eb;
}

.detail-copy {
    padding: 30px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.detail-labels span {
    color: #047857;
    background: rgba(16, 185, 129, 0.11);
}

.detail-copy h1 {
    margin: 18px 0 12px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.one-line {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

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

.movie-fields div {
    padding: 14px;
    border-radius: 16px;
    background: #f9fafb;
}

.movie-fields dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.movie-fields dd {
    margin: 6px 0 0;
    font-weight: 900;
}

.text-section {
    margin-bottom: 28px;
    padding: 30px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
}

.text-section p {
    margin: 16px 0 0;
    color: #374151;
    font-size: 17px;
    line-height: 2;
}

.related-section {
    margin-top: 42px;
}

.site-footer {
    background: #0f172a;
    color: #ffffff;
}

.footer-shell {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
}

.footer-brand {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.footer-brand p {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.66);
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    align-content: flex-start;
}

.footer-links a {
    border-radius: 999px;
    padding: 9px 12px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.58);
}

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

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

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

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

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

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

    .menu-toggle {
        display: inline-flex;
    }

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

    .hero {
        height: 560px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .quick-search-section {
        margin-top: -24px;
    }

    .big-search,
    .search-page-form,
    .filter-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .movie-grid,
    .wide-grid,
    .featured-grid,
    .category-grid,
    .rank-entry,
    .footer-shell,
    .detail-info {
        grid-template-columns: 1fr;
    }

    .rank-line {
        grid-template-columns: 38px 1fr;
    }

    .rank-line em {
        grid-column: 2;
    }

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

@media (max-width: 560px) {
    .nav-shell {
        height: 64px;
    }

    .brand-copy small {
        display: none;
    }

    .hero,
    .inner-main {
        margin-top: 64px;
        padding-top: 0;
    }

    .hero {
        height: 520px;
    }

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

    .hero-actions,
    .compact-actions {
        width: 100%;
    }

    .btn {
        flex: 1;
    }

    .page-shell,
    .detail-layout {
        width: min(100% - 22px, 1200px);
        padding-top: 34px;
    }

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

    .highlight-panel,
    .rank-entry,
    .detail-copy,
    .text-section {
        padding: 22px;
    }

    .movie-fields {
        grid-template-columns: 1fr;
    }

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