:root {
    color-scheme: dark;
    --stone-950: #0c0a09;
    --stone-925: #12100e;
    --stone-900: #1c1917;
    --stone-850: #221f1c;
    --stone-800: #292524;
    --stone-700: #44403c;
    --stone-500: #78716c;
    --stone-400: #a8a29e;
    --stone-300: #d6d3d1;
    --amber-700: #b45309;
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --amber-300: #fcd34d;
    --white: #ffffff;
    --shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    --soft-shadow: 0 16px 35px rgba(0, 0, 0, 0.25);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(217, 119, 6, 0.14), transparent 32rem),
        linear-gradient(180deg, var(--stone-900), var(--stone-950) 42rem);
    color: var(--stone-300);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

body.is-menu-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(68, 64, 60, 0.8);
    background: rgba(28, 25, 23, 0.94);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.nav-shell,
.footer-shell,
.section-shell,
.hero-shell,
.detail-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 24px;
}

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

.brand-mark {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
    box-shadow: 0 10px 25px rgba(217, 119, 6, 0.28);
    font-size: 15px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text strong {
    color: #fff7ed;
    font-size: 20px;
    letter-spacing: 0.02em;
}

.brand-text small {
    margin-top: 3px;
    color: var(--stone-400);
    font-size: 12px;
}

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

.nav-links > a {
    color: var(--stone-300);
    font-weight: 650;
    transition: color 0.2s ease;
}

.nav-links > a:hover {
    color: var(--amber-500);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    border: 1px solid var(--stone-700);
    border-radius: 999px;
    background: var(--stone-800);
}

.nav-search input {
    width: 220px;
    border: 0;
    outline: 0;
    color: var(--stone-200);
    background: transparent;
    padding: 7px 8px 7px 14px;
}

.nav-search input::placeholder {
    color: var(--stone-500);
}

.nav-search button,
.primary-button,
.secondary-button,
.filter-button {
    border: 0;
    border-radius: 999px;
    font-weight: 750;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-search button,
.primary-button,
.filter-button {
    color: white;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
}

.nav-search button {
    padding: 7px 15px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
}

.primary-button:hover,
.secondary-button:hover,
.filter-button:hover,
.nav-search button:hover {
    transform: translateY(-1px);
}

.secondary-button {
    border: 1px solid rgba(245, 158, 11, 0.38);
    color: #ffedd5;
    background: rgba(41, 37, 36, 0.72);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--stone-700);
    border-radius: 12px;
    color: var(--stone-200);
    background: var(--stone-800);
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    border-bottom: 1px solid rgba(68, 64, 60, 0.45);
    background: linear-gradient(180deg, rgba(28, 25, 23, 0.4), rgba(12, 10, 9, 0.9));
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 15%, rgba(245, 158, 11, 0.22), transparent 28rem),
        radial-gradient(circle at 78% 18%, rgba(251, 191, 36, 0.1), transparent 22rem);
}

.hero-shell {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    align-items: center;
    gap: 42px;
    padding: 64px 0 48px;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 999px;
    color: var(--amber-300);
    background: rgba(41, 37, 36, 0.75);
    font-size: 13px;
    font-weight: 700;
}

.hero h1,
.page-hero h1,
.detail-title h1 {
    margin: 0;
    color: white;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero h1 {
    max-width: 780px;
    font-size: clamp(42px, 6vw, 72px);
}

.hero h1 span {
    color: var(--amber-500);
}

.hero p {
    max-width: 660px;
    margin: 0;
    color: var(--stone-300);
    font-size: 18px;
}

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

.hero-search {
    display: flex;
    width: min(100%, 620px);
    gap: 10px;
    padding: 8px;
    border: 1px solid rgba(120, 113, 108, 0.6);
    border-radius: 22px;
    background: rgba(28, 25, 23, 0.72);
    box-shadow: var(--soft-shadow);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    color: white;
    background: transparent;
    padding: 12px 14px;
}

.hero-search button {
    min-width: 92px;
    border: 0;
    border-radius: 16px;
    color: white;
    background: var(--amber-600);
    font-weight: 800;
}

.hero-categories {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    width: min(100%, 680px);
}

.hero-cat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px;
    border: 1px solid rgba(68, 64, 60, 0.8);
    border-radius: 16px;
    background: rgba(41, 37, 36, 0.72);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hero-cat strong {
    color: var(--stone-100);
    font-size: 15px;
}

.hero-cat span {
    color: var(--stone-500);
    font-size: 12px;
}

.hero-cat:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 158, 11, 0.55);
    background: rgba(68, 64, 60, 0.78);
}

.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 470px;
    border: 1px solid rgba(120, 113, 108, 0.38);
    border-radius: 30px;
    background: var(--stone-800);
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: end;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

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

.hero-slide.poster-fallback {
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.24), transparent),
        linear-gradient(160deg, var(--stone-700), var(--stone-950));
}

.hero-slide.poster-fallback::before,
.poster-wrap.poster-fallback::before,
.player-poster.poster-fallback::before {
    content: attr(data-poster-title);
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    color: rgba(255, 247, 237, 0.88);
    text-align: center;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.hero-gradient,
.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 10%, rgba(0, 0, 0, 0.35) 44%, rgba(0, 0, 0, 0.9));
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    padding: 30px;
}

.hero-slide-content h2 {
    margin: 8px 0 8px;
    color: white;
    font-size: clamp(26px, 4vw, 44px);
    line-height: 1.08;
}

.hero-slide-content p {
    display: -webkit-box;
    max-width: 94%;
    overflow: hidden;
    margin: 0 0 18px;
    color: var(--stone-300);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hero-slide-meta,
.detail-meta,
.movie-meta-line,
.rank-meta,
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.hero-slide-meta span,
.detail-meta span,
.breadcrumb a,
.breadcrumb span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 3px 10px;
    border-radius: 999px;
    color: var(--stone-300);
    background: rgba(28, 25, 23, 0.72);
    font-size: 12px;
}

.hero-slider-dots {
    position: absolute;
    right: 24px;
    bottom: 24px;
    z-index: 4;
    display: flex;
    gap: 7px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
}

.hero-dot.is-active {
    width: 24px;
    background: var(--amber-500);
}

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

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

.section-heading h2,
.page-hero h1,
.detail-section h2,
.filter-panel h2 {
    margin: 0;
    color: white;
}

.section-heading h2 {
    font-size: clamp(24px, 3vw, 34px);
}

.section-heading p,
.page-hero p,
.category-card p,
.detail-section p,
.filter-panel p {
    margin: 0;
    color: var(--stone-400);
}

.section-link {
    color: var(--amber-500);
    font-weight: 800;
}

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

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

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

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

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

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(68, 64, 60, 0.75);
    border-radius: var(--radius);
    background: rgba(41, 37, 36, 0.82);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-link:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.55);
    box-shadow: var(--soft-shadow);
}

.poster-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4.15;
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.2), transparent),
        var(--stone-700);
}

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

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

.poster-year {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    padding: 3px 8px;
    border-radius: 999px;
    color: white;
    background: rgba(0, 0, 0, 0.62);
    font-size: 12px;
    font-weight: 800;
}

.poster-tags {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.poster-tags span {
    padding: 3px 7px;
    border-radius: 999px;
    color: white;
    background: rgba(217, 119, 6, 0.82);
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.poster-play {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    margin: auto;
    border-radius: 999px;
    color: white;
    background: rgba(217, 119, 6, 0.88);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card-link:hover .poster-play {
    opacity: 1;
    transform: scale(1);
}

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

.movie-card-body h3 {
    display: -webkit-box;
    min-height: 2.8em;
    overflow: hidden;
    margin: 0 0 8px;
    color: var(--stone-100);
    font-size: 16px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.movie-card-link:hover h3 {
    color: var(--amber-500);
}

.movie-card-body p {
    display: -webkit-box;
    min-height: 3.1em;
    overflow: hidden;
    margin: 0 0 12px;
    color: var(--stone-400);
    font-size: 13px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta-line {
    color: var(--stone-500);
    font-size: 12px;
}

.movie-meta-line span:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
    color: var(--stone-700);
}

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

.category-card {
    display: flex;
    min-height: 190px;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border: 1px solid rgba(68, 64, 60, 0.75);
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 10rem),
        rgba(41, 37, 36, 0.84);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.55);
}

.category-card h2 {
    margin: 0 0 8px;
    color: white;
    font-size: 21px;
}

.category-card strong {
    color: var(--amber-500);
    font-size: 28px;
}

.page-hero {
    border-bottom: 1px solid rgba(68, 64, 60, 0.45);
    background:
        radial-gradient(circle at 12% 12%, rgba(245, 158, 11, 0.16), transparent 22rem),
        linear-gradient(180deg, rgba(28, 25, 23, 0.85), rgba(12, 10, 9, 0.86));
}

.page-hero .section-shell {
    padding-top: 54px;
    padding-bottom: 46px;
}

.page-hero h1 {
    font-size: clamp(36px, 5vw, 58px);
}

.page-hero p {
    max-width: 740px;
    margin-top: 12px;
    font-size: 17px;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 26px;
    padding: 16px;
    border: 1px solid rgba(68, 64, 60, 0.8);
    border-radius: 20px;
    background: rgba(28, 25, 23, 0.72);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--stone-700);
    border-radius: 14px;
    outline: 0;
    color: var(--stone-100);
    background: var(--stone-800);
    padding: 0 14px;
}

.filter-button {
    min-height: 44px;
    padding: 0 18px;
}

.result-count {
    color: var(--stone-400);
    font-size: 14px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 60px 88px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(68, 64, 60, 0.75);
    border-radius: 18px;
    background: rgba(41, 37, 36, 0.72);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    border-color: rgba(245, 158, 11, 0.45);
}

.rank-number {
    color: var(--amber-500);
    text-align: center;
    font-size: 28px;
    font-weight: 900;
}

.rank-cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    background: var(--stone-700);
}

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

.rank-info h2 {
    margin: 0 0 6px;
    color: white;
    font-size: 18px;
}

.rank-info p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--stone-400);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-action {
    padding: 9px 14px;
    border-radius: 999px;
    color: white;
    background: var(--amber-600);
    font-weight: 800;
}

.detail-main {
    background: linear-gradient(180deg, rgba(28, 25, 23, 0.9), rgba(12, 10, 9, 1) 620px);
}

.breadcrumb {
    padding: 24px 0 0;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: 30px;
    align-items: stretch;
    padding: 28px 0 34px;
}

.player-panel,
.detail-side-card,
.detail-section {
    border: 1px solid rgba(68, 64, 60, 0.75);
    border-radius: 24px;
    background: rgba(28, 25, 23, 0.76);
    box-shadow: var(--soft-shadow);
}

.player-panel {
    overflow: hidden;
}

.video-player {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: black;
}

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

.player-poster {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: var(--stone-800);
}

.player-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
    filter: saturate(1.05);
}

.player-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.78));
}

.video-player.is-playing .player-poster,
.video-player.is-playing .player-button,
.video-player.is-playing .player-state {
    opacity: 0;
    pointer-events: none;
}

.player-button {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    border: 0;
    color: white;
    background: transparent;
}

.player-button span {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.95);
    box-shadow: 0 18px 50px rgba(217, 119, 6, 0.3);
    font-size: 28px;
}

.player-state {
    position: absolute;
    left: 18px;
    bottom: 16px;
    z-index: 5;
    color: var(--stone-300);
    font-size: 14px;
}

.detail-title {
    padding: 24px;
}

.detail-title h1 {
    font-size: clamp(32px, 4vw, 52px);
}

.detail-title p {
    margin: 14px 0 0;
    color: var(--stone-300);
    font-size: 17px;
}

.detail-side-card {
    padding: 24px;
}

.detail-side-card h2 {
    margin: 0 0 14px;
    color: white;
}

.detail-side-card .poster-wrap {
    border-radius: 18px;
}

.detail-meta {
    margin-top: 18px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.tag-list a,
.tag-list span {
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffedd5;
    background: rgba(217, 119, 6, 0.18);
    font-size: 13px;
    font-weight: 700;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding-bottom: 52px;
}

.detail-section {
    padding: 24px;
}

.detail-section h2 {
    margin-bottom: 12px;
    font-size: 23px;
}

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

.site-footer {
    margin-top: 32px;
    border-top: 1px solid rgba(68, 64, 60, 0.75);
    background: rgba(28, 25, 23, 0.94);
}

.footer-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 48px;
    padding: 44px 0;
}

.footer-brand p {
    max-width: 520px;
    color: var(--stone-400);
}

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

.footer-columns h2 {
    margin: 0 0 12px;
    color: white;
    font-size: 17px;
}

.footer-columns ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-columns a {
    color: var(--stone-400);
}

.footer-columns a:hover {
    color: var(--amber-500);
}

.footer-bottom {
    border-top: 1px solid rgba(68, 64, 60, 0.58);
    padding: 18px 0;
    color: var(--stone-500);
    text-align: center;
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 90;
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: white;
    background: var(--amber-600);
    box-shadow: var(--soft-shadow);
}

.back-to-top.is-visible {
    display: block;
}

.empty-results {
    display: none;
    padding: 32px;
    border: 1px dashed rgba(120, 113, 108, 0.6);
    border-radius: 20px;
    color: var(--stone-400);
    text-align: center;
}

.empty-results.is-visible {
    display: block;
}

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

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

    .hero-shell,
    .detail-hero,
    .footer-shell {
        grid-template-columns: 1fr;
    }

    .hero-slider {
        min-height: 520px;
    }
}

@media (max-width: 820px) {
    .mobile-menu-button {
        display: inline-grid;
        place-items: center;
    }

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

    .nav-links {
        position: fixed;
        inset: 66px 0 auto 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 16px 18px;
        border-bottom: 1px solid rgba(68, 64, 60, 0.8);
        background: rgba(28, 25, 23, 0.98);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links > a {
        padding: 12px 4px;
    }

    .nav-search {
        border-radius: 16px;
    }

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

    .hero {
        min-height: auto;
    }

    .hero-shell {
        padding-top: 38px;
        gap: 26px;
    }

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

    .hero-slider {
        min-height: 440px;
        border-radius: 24px;
    }

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

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

    .rank-item {
        grid-template-columns: 44px 68px 1fr;
    }

    .rank-action {
        grid-column: 2 / -1;
        width: fit-content;
    }

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

@media (max-width: 560px) {
    .nav-shell,
    .footer-shell,
    .section-shell,
    .hero-shell,
    .detail-shell {
        width: min(100% - 22px, 1180px);
    }

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

    .brand-text small {
        display: none;
    }

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

    .hero-search button {
        min-height: 42px;
    }

    .hero-slide-content {
        padding: 22px;
    }

    .movie-grid,
    .movie-grid.medium-grid,
    .movie-grid.large-grid,
    .related-grid,
    .category-grid {
        gap: 12px;
    }

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

    .movie-card-body h3 {
        font-size: 14px;
    }

    .movie-card-body p {
        font-size: 12px;
    }

    .player-button span {
        width: 68px;
        height: 68px;
    }
}
