:root {
    --bg: #f7fbff;
    --panel: #ffffff;
    --ink: #102033;
    --muted: #66788f;
    --line: #dbeafe;
    --soft: #ecfeff;
    --blue: #2563eb;
    --cyan: #06b6d4;
    --teal: #0d9488;
    --indigo: #4f46e5;
    --shadow: 0 18px 45px rgba(37, 99, 235, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(239, 246, 255, 0.96), rgba(236, 254, 255, 0.96), rgba(240, 253, 250, 0.96));
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.nav-shell {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 26px;
}

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

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

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

.brand-title {
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    -webkit-background-clip: text;
    color: transparent;
}

.brand-subtitle {
    margin-top: 3px;
    font-size: 12px;
    color: var(--muted);
}

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

.nav-link {
    border: 0;
    background: transparent;
    color: #334155;
    font-weight: 650;
    padding: 8px 0;
    transition: color 0.2s ease;
}

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

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 14px);
    left: -16px;
    width: 180px;
    padding: 10px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.dropdown-panel a {
    display: block;
    padding: 9px 12px;
    border-radius: 12px;
    color: #475569;
    font-size: 14px;
}

.dropdown-panel a:hover {
    background: #eff6ff;
    color: var(--blue);
}

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

.top-search {
    position: relative;
    display: flex;
    align-items: center;
}

.top-search input {
    width: 230px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 10px 44px 10px 16px;
    background: rgba(255, 255, 255, 0.85);
    outline: none;
    transition: all 0.2s ease;
}

.top-search input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.top-search button {
    position: absolute;
    right: 4px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    padding: 8px 11px;
    color: var(--blue);
    background: #e0f2fe;
}

.mobile-panel {
    display: none;
    border-top: 1px solid #dbeafe;
    padding: 14px 16px 18px;
    background: rgba(255, 255, 255, 0.96);
}

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

.mobile-panel nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.mobile-panel a {
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
    color: #334155;
    font-weight: 650;
}

.mobile-search {
    display: flex;
    gap: 8px;
}

.mobile-search input {
    flex: 1;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 10px 12px;
}

.mobile-search button {
    border: 0;
    border-radius: 12px;
    padding: 10px 16px;
    color: #ffffff;
    background: var(--blue);
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 78px 0 84px;
    background: linear-gradient(135deg, #eff6ff 0%, #ecfeff 48%, #f0fdfa 100%);
}

.hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(58px);
    opacity: 0.45;
    animation: softPulse 6s ease-in-out infinite alternate;
}

.hero-glow-a {
    width: 320px;
    height: 320px;
    top: 28px;
    left: 5%;
    background: #93c5fd;
}

.hero-glow-b {
    width: 420px;
    height: 420px;
    right: 4%;
    bottom: -120px;
    background: #67e8f9;
    animation-delay: 1.2s;
}

@keyframes softPulse {
    from {
        transform: scale(0.94);
    }
    to {
        transform: scale(1.04);
    }
}

.hero-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
    gap: 56px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--blue);
    background: rgba(219, 234, 254, 0.9);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 18px 0 22px;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.065em;
    background: linear-gradient(90deg, var(--blue), var(--cyan), var(--teal));
    -webkit-background-clip: text;
    color: transparent;
}

.hero-copy p {
    max-width: 600px;
    margin: 0 0 30px;
    color: #475569;
    font-size: 20px;
}

.hero-actions,
.center-more {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

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

.primary-button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.22);
}

.ghost-button {
    color: var(--blue);
    background: #ffffff;
    border: 2px solid #bfdbfe;
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.22);
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #2563eb;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
}

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

.hero-card {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: 28px;
    background: #dbeafe;
    box-shadow: var(--shadow);
    transform: translateZ(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-card-large {
    grid-column: span 2;
    min-height: 286px;
}

.hero-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 52px rgba(37, 99, 235, 0.22);
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.hero-card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0));
}

.hero-card-copy {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 18px;
    color: #ffffff;
}

.hero-card-copy strong {
    display: block;
    font-size: 20px;
    line-height: 1.25;
}

.hero-card-copy small {
    display: block;
    margin-top: 6px;
    color: #e0f2fe;
}

.play-dot {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--blue);
    background: rgba(255, 255, 255, 0.92);
}

.signal-strip {
    background: #ffffff;
    border-top: 1px solid #dbeafe;
    border-bottom: 1px solid #dbeafe;
}

.signal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding: 28px 0;
}

.signal-grid div {
    text-align: center;
}

.signal-grid strong {
    display: block;
    font-size: 22px;
    color: var(--blue);
}

.signal-grid span {
    color: var(--muted);
    font-size: 14px;
}

.section-block {
    padding: 72px 0;
    background: #ffffff;
}

.section-soft {
    background: #f8fbff;
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 34px;
    text-align: center;
}

.section-heading.align-left {
    margin: 0;
    text-align: left;
}

.section-heading span {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--cyan);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0 0 10px;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.15;
}

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

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

.category-card,
.category-overview-card {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    padding: 24px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card::before,
.category-overview-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(6, 182, 212, 0.12));
    transition: opacity 0.24s ease;
}

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

.category-card:hover::before,
.category-overview-card:hover::before {
    opacity: 1;
}

.category-icon {
    position: relative;
    display: block;
    font-size: 38px;
    margin-bottom: 14px;
}

.category-card strong,
.category-card small,
.category-overview-card p,
.category-overview-title,
.category-samples,
.category-overview-card .inline-link {
    position: relative;
}

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

.category-card small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
}

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

.category-overview-card {
    min-height: 250px;
}

.category-overview-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 24px;
}

.category-overview-title span {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.category-overview-card p {
    color: var(--muted);
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.category-samples a {
    max-width: 100%;
    padding: 6px 10px;
    border-radius: 999px;
    color: #2563eb;
    background: #eff6ff;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
    gap: 34px;
    align-items: start;
}

.inline-link {
    display: inline-flex;
    align-items: center;
    margin-top: 18px;
    color: var(--blue);
    font-weight: 800;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 44px 74px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: #f8fafc;
    transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    background: #eff6ff;
}

.rank-num,
.ranking-index {
    font-weight: 900;
    color: var(--blue);
    font-variant-numeric: tabular-nums;
}

.rank-item img {
    width: 74px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
    background: #dbeafe;
}

.rank-copy strong,
.ranking-title strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-copy small,
.ranking-title small {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.rank-item em,
.ranking-row em {
    font-style: normal;
    color: var(--cyan);
    font-weight: 900;
}

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

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

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

.movie-poster {
    position: relative;
    margin: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #dbeafe;
}

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

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

.movie-type,
.movie-score {
    position: absolute;
    top: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(15, 23, 42, 0.72);
}

.movie-type {
    left: 12px;
}

.movie-score {
    right: 12px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.movie-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px;
}

.movie-body h2 {
    margin: 0 0 9px;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.32;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-body p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    gap: 10px;
    margin-top: auto;
    color: #64748b;
    font-size: 13px;
}

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

.tag-row span {
    padding: 5px 9px;
    border-radius: 999px;
    color: #2563eb;
    background: #eff6ff;
    font-size: 12px;
}

.center-more {
    justify-content: center;
    margin-top: 34px;
}

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

.page-hero,
.detail-hero {
    position: relative;
    padding: 54px 0;
    background: linear-gradient(135deg, #eff6ff, #ecfeff, #f0fdfa);
}

.compact-hero h1 {
    max-width: 780px;
    margin: 16px 0 14px;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.compact-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
    color: #64748b;
    font-size: 14px;
}

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

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(150px, 0.6fr));
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
}

.filter-panel label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    padding: 11px 12px;
    color: var(--ink);
    background: #ffffff;
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.empty-state {
    padding: 18px;
    border-radius: 18px;
    color: #475569;
    background: #ffffff;
    text-align: center;
}

.ranking-table {
    display: grid;
    gap: 10px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 70px 92px minmax(0, 1fr) 58px;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-row:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.ranking-row img {
    width: 92px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 14px;
    background: #dbeafe;
}

.detail-main {
    background: #f8fbff;
}

.detail-hero {
    padding-bottom: 22px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    padding-top: 28px;
    padding-bottom: 72px;
}

.player-card,
.detail-card,
.related-panel {
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
}

.player-card {
    overflow: hidden;
    margin-bottom: 24px;
    background: #020617;
}

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

.player-frame video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.18), rgba(2, 6, 23, 0.62));
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 3;
}

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

.play-circle {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--blue);
    background: #ffffff;
    box-shadow: 0 20px 38px rgba(0, 0, 0, 0.28);
}

.detail-card {
    padding: 30px;
}

.detail-card h1 {
    margin: 18px 0 12px;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.detail-meta span {
    padding: 7px 11px;
    border-radius: 999px;
    color: #2563eb;
    background: #eff6ff;
    font-size: 13px;
    font-weight: 750;
}

.detail-lead {
    font-size: 18px;
    color: #475569;
}

.detail-card h2 {
    margin: 26px 0 10px;
    font-size: 22px;
}

.detail-card p {
    color: #334155;
}

.detail-tags {
    margin-top: 22px;
}

.related-panel {
    position: sticky;
    top: 100px;
    align-self: start;
    padding: 22px;
}

.related-panel h2 {
    margin: 0 0 16px;
    font-size: 22px;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 16px;
    transition: background 0.2s ease;
}

.compact-card:hover {
    background: #eff6ff;
}

.compact-card img {
    width: 92px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
    background: #dbeafe;
}

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

.compact-card small {
    color: var(--muted);
    font-size: 12px;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(2, 1fr);
    gap: 34px;
    padding: 54px 0;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: 24px;
}

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

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

.footer-links a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    color: #cbd5e1;
}

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

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.footer-bottom .container {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-bottom p {
    margin: 0;
    color: #94a3b8;
}

.footer-bottom button {
    border: 0;
    color: #cbd5e1;
    background: transparent;
}

.footer-bottom button:hover {
    color: #67e8f9;
}

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

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

    .hero-layout,
    .ranking-layout,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .related-panel {
        position: static;
    }

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

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

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

    .nav-shell {
        min-height: 66px;
    }

    .brand-title {
        font-size: 20px;
    }

    .hero-section {
        padding: 50px 0 58px;
    }

    .hero-layout {
        gap: 32px;
    }

    .hero-grid,
    .signal-grid,
    .footer-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .hero-card-large {
        grid-column: auto;
    }

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

    .movie-body {
        padding: 14px;
    }

    .filter-panel {
        grid-template-columns: 1fr;
    }

    .ranking-row {
        grid-template-columns: 48px 78px minmax(0, 1fr);
    }

    .ranking-row em {
        grid-column: 2 / 4;
        justify-self: start;
    }

    .detail-card {
        padding: 22px;
    }

    .footer-bottom .container {
        flex-direction: column;
        justify-content: center;
        padding: 16px 0;
    }
}

@media (max-width: 520px) {
    .mobile-panel nav,
    .category-grid,
    .movie-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .primary-button,
    .ghost-button {
        width: 100%;
    }

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

    .rank-item em {
        grid-column: 2 / 4;
    }
}
