:root {
    --bg: #0f172a;
    --bg-deep: #020617;
    --bg-soft: #111827;
    --panel: rgba(15, 23, 42, 0.78);
    --panel-strong: rgba(15, 23, 42, 0.94);
    --border: rgba(251, 191, 36, 0.18);
    --border-cool: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --soft: #94a3b8;
    --amber: #f59e0b;
    --amber-2: #f97316;
    --green: #22c55e;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 0%, rgba(245, 158, 11, 0.14), transparent 32rem),
        radial-gradient(circle at 90% 12%, rgba(249, 115, 22, 0.12), transparent 34rem),
        linear-gradient(180deg, #0f172a 0%, #111827 42%, #0f172a 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    border-bottom: 1px solid var(--border);
    background: rgba(2, 6, 23, 0.86);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 22px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.logo-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--amber-2));
    box-shadow: 0 16px 30px rgba(249, 115, 22, 0.28);
    transform: translateZ(0);
    transition: transform 0.25s ease;
}

.site-logo:hover .logo-mark {
    transform: scale(1.06) rotate(-4deg);
}

.logo-text {
    display: grid;
    line-height: 1.18;
}

.logo-text strong {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: transparent;
    background: linear-gradient(90deg, #fbbf24, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
}

.logo-text small {
    margin-top: 3px;
    color: var(--soft);
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.main-nav a {
    position: relative;
    color: var(--muted);
    font-weight: 650;
    transition: color 0.2s ease;
}

.main-nav a::after {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -11px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--amber), var(--amber-2));
    content: "";
    opacity: 0;
    transform: scaleX(0.5);
    transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: #fbbf24;
}

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

.header-search {
    display: flex;
    align-items: center;
    width: min(310px, 28vw);
    overflow: hidden;
    border: 1px solid var(--border-cool);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.78);
}

.header-search input,
.mobile-panel input,
.search-panel input,
.filter-bar input,
.search-page-form input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
}

.header-search input {
    padding: 10px 12px;
}

.header-search button,
.mobile-panel button,
.search-panel button,
.search-page-form button {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--amber-2));
    font-weight: 700;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.header-search button {
    padding: 10px 14px;
}

.header-search button:hover,
.mobile-panel button:hover,
.search-panel button:hover,
.search-page-form button:hover {
    filter: brightness(1.08);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-cool);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.9);
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: #e2e8f0;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--border-cool);
    background: rgba(2, 6, 23, 0.96);
}

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

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

.mobile-panel nav {
    display: grid;
    gap: 8px;
    padding: 16px 0 12px;
}

.mobile-panel nav a {
    padding: 11px 12px;
    border-radius: 12px;
    color: var(--muted);
    background: rgba(15, 23, 42, 0.48);
}

.mobile-panel nav a.is-active,
.mobile-panel nav a:hover {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.12);
}

.mobile-panel form {
    display: flex;
    margin-bottom: 18px;
    overflow: hidden;
    border: 1px solid var(--border-cool);
    border-radius: 14px;
}

.mobile-panel input {
    padding: 12px;
}

.mobile-panel button {
    padding: 0 18px;
}

.hero {
    position: relative;
    height: min(80vh, 780px);
    min-height: 560px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.9s ease;
}

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

.hero-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.03);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(15, 23, 42, 0.78) 36%, rgba(15, 23, 42, 0.18) 70%),
        linear-gradient(0deg, #0f172a 0%, rgba(15, 23, 42, 0.28) 48%, rgba(15, 23, 42, 0.12) 100%);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.48fr);
    align-items: center;
    gap: 48px;
    padding-top: 40px;
    padding-bottom: 72px;
}

.hero-copy {
    max-width: 740px;
}

.hero-pill,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: 999px;
    color: #fde68a;
    background: rgba(245, 158, 11, 0.16);
    font-size: 14px;
    font-weight: 750;
}

.hero h1,
.hero-title-text {
    margin: 18px 0 0;
    color: transparent;
    background: linear-gradient(90deg, #f8fafc, #fbbf24 52%, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    font-size: clamp(36px, 6.8vw, 76px);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.hero h2 {
    margin: 20px 0 16px;
    color: #fff;
    font-size: clamp(28px, 4vw, 50px);
    line-height: 1.05;
    font-weight: 850;
}

.hero p {
    max-width: 650px;
    margin: 0;
    color: #dbeafe;
    font-size: 18px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 20px;
    border-radius: 13px;
    font-weight: 780;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--amber-2));
    box-shadow: 0 16px 34px rgba(249, 115, 22, 0.24);
}

.btn-ghost {
    border: 1px solid var(--border-cool);
    color: var(--text);
    background: rgba(15, 23, 42, 0.68);
}

.btn-ghost:hover {
    border-color: rgba(251, 191, 36, 0.42);
    background: rgba(245, 158, 11, 0.12);
}

.hero-poster {
    position: relative;
    display: block;
    align-self: center;
    width: min(350px, 100%);
    margin-left: auto;
    overflow: hidden;
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow);
    transform: perspective(900px) rotateY(-7deg);
    transition: transform 0.25s ease;
}

.hero-poster:hover {
    transform: perspective(900px) rotateY(0deg) translateY(-6px);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.hero-poster::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.55), transparent 45%);
    content: "";
}

.hero-poster span,
.poster-play {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: rgba(245, 158, 11, 0.92);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.25);
}

.hero-poster span {
    right: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
    font-size: 20px;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #fff;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(10px);
    font-size: 34px;
    transform: translateY(-50%);
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(245, 158, 11, 0.92);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

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

.hero-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.54);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
    width: 34px;
    background: var(--amber);
}

.hero-quick-links {
    position: absolute;
    right: 0;
    bottom: 74px;
    left: 0;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    pointer-events: none;
}

.hero-quick-links a {
    display: inline-flex;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(10px);
    font-size: 13px;
    font-weight: 700;
    pointer-events: auto;
}

.search-panel-wrap {
    margin-top: -42px;
    position: relative;
    z-index: 9;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 0.8fr) auto;
    gap: 16px;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.88);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.search-panel span {
    color: #fbbf24;
    font-size: 13px;
    font-weight: 800;
}

.search-panel strong {
    display: block;
    color: #fff;
    font-size: 20px;
}

.search-panel input,
.search-page-form input,
.filter-bar input {
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--border-cool);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.72);
}

.search-panel button,
.search-page-form button {
    min-height: 48px;
    padding: 0 24px;
    border-radius: 14px;
}

.section-block {
    padding: 64px 0;
}

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

.section-heading h2 {
    margin: 12px 0 4px;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.1;
}

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

.soft-band {
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    background: rgba(2, 6, 23, 0.25);
}

.movie-grid,
.category-grid,
.featured-grid {
    display: grid;
    gap: 22px;
}

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

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

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

.featured-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
}

.featured-grid .movie-card-wide {
    grid-row: span 2;
}

.movie-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border-cool);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.78);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.movie-card:hover {
    border-color: rgba(251, 191, 36, 0.38);
    background: rgba(15, 23, 42, 0.94);
    transform: translateY(-6px);
}

.movie-card-link {
    display: grid;
    height: 100%;
}

.movie-poster {
    position: relative;
    overflow: hidden;
    background: #020617;
}

.movie-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.28s ease;
}

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

.movie-poster::after {
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent);
    content: "";
}

.poster-play {
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    opacity: 0;
    transform: translateY(8px);
    transition: 0.22s ease;
}

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

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: grid;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--amber-2));
    font-weight: 900;
}

.movie-card-body {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.movie-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #fbbf24;
    font-size: 13px;
    font-weight: 780;
}

.movie-card h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    line-height: 1.28;
}

.movie-card p {
    margin: 0;
    color: var(--soft);
    font-size: 14px;
}

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

.tag-row span,
.side-tags a {
    display: inline-flex;
    padding: 5px 9px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(2, 6, 23, 0.36);
    font-size: 12px;
}

.movie-card-wide .movie-poster img {
    aspect-ratio: 16 / 20;
}

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

.movie-card-compact h3 {
    font-size: 16px;
}

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

.category-card {
    overflow: hidden;
    border: 1px solid var(--border-cool);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.74);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
    border-color: rgba(251, 191, 36, 0.36);
    transform: translateY(-5px);
}

.category-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 8px;
}

.category-thumbs img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 13px;
}

.category-card-body {
    padding: 18px;
}

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

.category-card p {
    min-height: 48px;
    margin: 0 0 14px;
    color: var(--soft);
}

.category-arrow {
    color: #fbbf24;
    font-weight: 800;
}

.page-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(251, 191, 36, 0.14);
    background:
        radial-gradient(circle at 18% 12%, rgba(245, 158, 11, 0.20), transparent 28rem),
        linear-gradient(135deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.78));
}

.compact-hero .container {
    padding: 76px 0 58px;
}

.compact-hero h1 {
    max-width: 880px;
    margin: 18px 0 12px;
    color: #fff;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
}

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

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid var(--border-cool);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.66);
}

.filter-bar input {
    flex: 1 1 320px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 56px 58px minmax(0, 1fr) minmax(180px, 0.5fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border-cool);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.7);
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
    border-color: rgba(251, 191, 36, 0.34);
    background: rgba(15, 23, 42, 0.94);
    transform: translateX(4px);
}

.rank-row img {
    width: 58px;
    height: 78px;
    border-radius: 10px;
    object-fit: cover;
}

.rank-num {
    color: #fbbf24;
    font-size: 20px;
    font-weight: 900;
    text-align: center;
}

.rank-title {
    overflow: hidden;
    color: #fff;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-info {
    overflow: hidden;
    color: var(--soft);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-go {
    padding: 8px 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(245, 158, 11, 0.18);
    font-size: 13px;
    font-weight: 800;
}

.search-page-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-bottom: 26px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.78);
}

.search-results {
    display: grid;
    gap: 22px;
}

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

.search-empty {
    padding: 28px;
    border: 1px solid var(--border-cool);
    border-radius: 20px;
    color: var(--muted);
    background: rgba(15, 23, 42, 0.68);
}

.player-stage {
    padding: 28px 0 0;
    background: #020617;
}

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

.breadcrumb a {
    color: #fbbf24;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 24px 24px 0 0;
    background: #000;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    background: #000;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    gap: 14px;
    border: 0;
    color: #fff;
    background:
        linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.12)),
        rgba(2, 6, 23, 0.18);
    text-align: center;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.big-play {
    display: grid;
    width: 88px;
    height: 88px;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--amber-2));
    box-shadow: 0 18px 45px rgba(245, 158, 11, 0.26);
    font-size: 34px;
}

.player-overlay strong {
    max-width: min(640px, 90%);
    font-size: clamp(22px, 3vw, 34px);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 32px;
    padding: 44px 0 70px;
}

.detail-main {
    display: grid;
    gap: 28px;
}

.detail-head,
.detail-section,
.side-card {
    border: 1px solid var(--border-cool);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
}

.detail-head {
    padding: 26px;
}

.detail-head h1 {
    margin: 18px 0 12px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
}

.detail-head p {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 0;
}

.detail-meta span {
    padding: 6px 10px;
    border-radius: 999px;
    color: #fde68a;
    background: rgba(245, 158, 11, 0.12);
    font-size: 13px;
    font-weight: 800;
}

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

.detail-section {
    padding: 26px;
}

.detail-section h2,
.side-card h2 {
    margin: 0 0 16px;
    color: #fff;
    font-size: 24px;
}

.detail-section p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

.detail-sidebar {
    display: grid;
    align-content: start;
    gap: 18px;
}

.side-card {
    padding: 18px;
}

.poster-card img {
    width: 100%;
    margin-bottom: 16px;
    border-radius: 18px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.poster-card .btn {
    width: 100%;
}

.side-rank {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.side-rank a {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 8px;
    align-items: center;
    color: var(--muted);
}

.side-rank span {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: rgba(245, 158, 11, 0.72);
    font-size: 12px;
    font-weight: 900;
}

.side-rank a:hover,
.side-tags a:hover {
    color: #fbbf24;
}

.side-tags a {
    transition: color 0.2s ease, border-color 0.2s ease;
}

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(2, 6, 23, 0.88);
}

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

.footer-brand p {
    max-width: 560px;
    color: var(--soft);
}

.copyright {
    color: #64748b;
    font-size: 13px;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

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

.site-footer a {
    color: var(--muted);
}

.site-footer a:hover {
    color: #fbbf24;
}

.section-more {
    margin-top: 26px;
    text-align: center;
}

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

    .hero-content {
        grid-template-columns: 1fr 260px;
        gap: 28px;
    }

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

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

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

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

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

    .menu-toggle {
        display: block;
    }

    .header-inner {
        min-height: 66px;
    }

    .logo-text strong {
        font-size: 17px;
    }

    .hero {
        height: auto;
        min-height: 660px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        align-content: center;
        padding-top: 52px;
    }

    .hero-poster {
        width: 210px;
        margin: 0;
        transform: none;
    }

    .hero-arrow {
        display: none;
    }

    .hero-quick-links {
        bottom: 58px;
    }

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

    .movie-grid,
    .movie-grid-three,
    .movie-grid-four,
    .search-results.has-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rank-row {
        grid-template-columns: 42px 52px minmax(0, 1fr) auto;
    }

    .rank-info {
        display: none;
    }

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

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

    .logo-text small {
        display: none;
    }

    .hero {
        min-height: 650px;
    }

    .hero h1,
    .hero-title-text {
        font-size: 40px;
    }

    .hero h2 {
        font-size: 30px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-poster {
        display: none;
    }

    .hero-quick-links {
        display: none;
    }

    .section-block {
        padding: 44px 0;
    }

    .movie-grid,
    .movie-grid-three,
    .movie-grid-four,
    .featured-grid,
    .category-grid,
    .search-results.has-results,
    .detail-sidebar {
        grid-template-columns: 1fr;
    }

    .movie-card-link {
        grid-template-columns: 118px minmax(0, 1fr);
    }

    .movie-poster img,
    .movie-card-wide .movie-poster img {
        height: 100%;
        aspect-ratio: auto;
    }

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

    .movie-card p {
        display: none;
    }

    .search-page-form {
        grid-template-columns: 1fr;
    }

    .video-shell {
        border-radius: 16px 16px 0 0;
    }

    .big-play {
        width: 68px;
        height: 68px;
        font-size: 26px;
    }
}
