:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.74);
    --bg-card-solid: #111827;
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-2: #64748b;
    --orange: #f97316;
    --orange-dark: #ea580c;
    --amber: #f59e0b;
    --teal: #14b8a6;
    --radius: 20px;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 0%, rgba(249, 115, 22, 0.14), transparent 34rem),
        radial-gradient(circle at 86% 18%, rgba(20, 184, 166, 0.10), transparent 30rem),
        linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px);
}

.nav-shell {
    max-width: 1280px;
    height: 68px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 800;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.site-logo span:last-child,
.footer-logo span:last-child {
    background: linear-gradient(90deg, #fb923c, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    color: #ffffff;
    font-size: 13px;
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.28);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.nav-links a,
.mobile-links a {
    padding: 9px 13px;
    border-radius: 12px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.mobile-links a:hover,
.nav-links a.active,
.mobile-links a.active {
    background: var(--orange);
    color: #ffffff;
    transform: translateY(-1px);
}

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

.nav-search input,
.mobile-search input,
.search-panel input,
.filter-panel input,
.filter-panel select {
    height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.20);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.78);
    color: #ffffff;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input {
    width: 245px;
    padding: 0 46px 0 16px;
}

.nav-search input:focus,
.mobile-search input:focus,
.search-panel input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(249, 115, 22, 0.72);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
    background: rgba(15, 23, 42, 0.94);
}

.nav-search button {
    position: absolute;
    right: 6px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 10px;
    background: rgba(249, 115, 22, 0.18);
    color: #fed7aa;
    cursor: pointer;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.8);
    cursor: pointer;
    padding: 10px;
}

.menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 999px;
    background: #cbd5e1;
}

.mobile-panel {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 18px;
}

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

.mobile-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

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

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

.mobile-search button,
.search-panel button,
.filter-panel button {
    border: 0;
    border-radius: 14px;
    padding: 0 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    cursor: pointer;
    font-weight: 800;
}

.hero-carousel {
    position: relative;
    min-height: 640px;
    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;
    transform: scale(1.03);
    transition: transform 6s ease;
}

.hero-slide.is-active img {
    transform: scale(1.09);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.14)),
        linear-gradient(0deg, #020617 0%, transparent 44%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    padding: 110px 24px 210px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.hero-kicker,
.simple-hero > span,
.category-hero > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fb923c;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.hero-content h1,
.page-hero h1 {
    max-width: 780px;
    margin: 0 0 18px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.06;
    letter-spacing: -0.045em;
    font-weight: 900;
}

.hero-content p,
.page-hero p {
    max-width: 720px;
    margin: 0 0 26px;
    color: #cbd5e1;
    font-size: 20px;
}

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

.hero-meta {
    margin-bottom: 32px;
}

.hero-meta span,
.movie-meta-line span,
.detail-meta span {
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(15, 23, 42, 0.72);
    color: #cbd5e1;
    font-size: 13px;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.hero-meta span:first-child,
.pill,
.pill-link,
.tag {
    background: rgba(249, 115, 22, 0.18);
    color: #fdba74;
    border-color: rgba(249, 115, 22, 0.22);
}

.hero-actions,
.explore-panel div {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.primary-button,
.ghost-button,
.pill-link,
.rank-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 14px;
    padding: 0 20px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 18px 38px rgba(249, 115, 22, 0.25);
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(15, 23, 42, 0.58);
}

.primary-button:hover,
.ghost-button:hover,
.rank-action:hover {
    transform: translateY(-2px);
}

.hero-search-card {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 46px;
    width: min(1080px, calc(100% - 48px));
    transform: translateX(-50%);
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.76);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-search-card form {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.hero-search-card input {
    flex: 1;
    min-width: 0;
    height: 48px;
    border: 1px solid rgba(148, 163, 184, 0.20);
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.72);
    color: #ffffff;
    padding: 0 18px;
    outline: none;
}

.hero-search-card button {
    border: 0;
    border-radius: 16px;
    padding: 0 28px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    cursor: pointer;
    font-weight: 900;
}

.hero-category-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.hero-category-strip::-webkit-scrollbar {
    display: none;
}

.hero-category-strip a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(30, 41, 59, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.18);
    font-size: 13px;
    font-weight: 800;
}

.hero-category-strip span {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.18);
    color: #fb923c;
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.page-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 24px 72px;
}

.home-shell {
    padding-top: 64px;
}

.content-section {
    margin-bottom: 76px;
}

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

.section-heading span {
    display: inline-block;
    color: #fb923c;
    font-weight: 800;
    margin-bottom: 7px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.18;
}

.section-link {
    color: #fb923c;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.76), rgba(15, 23, 42, 0.92));
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.18);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(249, 115, 22, 0.36);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(249, 115, 22, 0.10);
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #0f172a;
}

.movie-cover img,
.featured-link img,
.category-card img,
.rank-cover img,
.poster-card img,
.category-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.movie-card:hover .movie-cover img,
.movie-card-featured:hover img,
.category-card:hover img,
.rank-item:hover img {
    transform: scale(1.07);
}

.cover-mask,
.featured-shade,
.category-shade {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, transparent 28%, rgba(0, 0, 0, 0.78));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .cover-mask,
.movie-card-featured:hover .featured-shade,
.category-card:hover .category-shade {
    opacity: 1;
}

.play-icon,
.floating-play {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--orange);
    color: #ffffff;
    box-shadow: 0 18px 34px rgba(249, 115, 22, 0.38);
}

.year-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 4px 9px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.72);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

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

.movie-card-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 28px;
    color: #ffffff;
    font-weight: 900;
    font-size: 17px;
    line-height: 1.35;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.movie-card:hover .movie-card-title {
    color: #fb923c;
}

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

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 180px 1fr;
}

.horizontal-cover {
    aspect-ratio: auto;
    min-height: 128px;
}

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

.panel-section {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 28px;
    padding: 28px;
    background: linear-gradient(90deg, rgba(30, 41, 59, 0.54), rgba(15, 23, 42, 0.76));
}

.split-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: 20px;
}

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

.movie-card-featured {
    min-height: 430px;
}

.featured-link {
    position: relative;
    display: block;
    height: 100%;
    overflow: hidden;
}

.featured-content {
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    display: grid;
    gap: 9px;
    padding: 28px;
}

.featured-content strong {
    font-size: 28px;
    line-height: 1.18;
}

.featured-content small {
    color: #cbd5e1;
    font-size: 14px;
}

.floating-play {
    position: absolute;
    top: 50%;
    left: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card-featured:hover .floating-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 92px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
    border-color: rgba(249, 115, 22, 0.34);
    background: rgba(30, 41, 59, 0.86);
    transform: translateX(4px);
}

.rank-number {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(249, 115, 22, 0.16);
    color: #fb923c;
    font-weight: 900;
}

.rank-cover {
    display: block;
    width: 92px;
    height: 62px;
    overflow: hidden;
    border-radius: 14px;
    background: #0f172a;
}

.rank-info a {
    display: inline-block;
    color: #ffffff;
    font-weight: 900;
    margin-bottom: 5px;
}

.rank-info p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 14px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.rank-action {
    min-height: 38px;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.18);
}

.explore-panel,
.page-hero,
.filter-panel,
.detail-card,
.side-panel,
.poster-card {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.74);
    box-shadow: 0 22px 62px rgba(0, 0, 0, 0.20);
}

.explore-panel {
    padding: 42px;
    text-align: center;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(245, 158, 11, 0.08));
}

.explore-panel h2 {
    margin: 0 0 12px;
    font-size: 34px;
}

.explore-panel p {
    max-width: 680px;
    margin: 0 auto 24px;
    color: #cbd5e1;
}

.explore-panel div {
    justify-content: center;
}

.page-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 34px;
    padding: 46px;
    background:
        linear-gradient(135deg, rgba(249, 115, 22, 0.12), transparent 52%),
        rgba(15, 23, 42, 0.74);
}

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

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

.breadcrumb a {
    color: #fdba74;
}

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

.category-card {
    position: relative;
    min-height: 280px;
    overflow: hidden;
    border-radius: 28px;
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 22px 62px rgba(0, 0, 0, 0.20);
}

.category-card img {
    position: absolute;
    inset: 0;
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.88));
}

.category-card strong,
.category-card small,
.category-card .category-icon,
.category-preview {
    position: relative;
    z-index: 2;
}

.category-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}

.category-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(249, 115, 22, 0.88);
    color: #ffffff;
    font-weight: 900;
}

.category-card strong {
    font-size: 26px;
    margin-bottom: 8px;
}

.category-card small {
    color: #cbd5e1;
}

.category-preview {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.category-preview span {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 12px;
    color: #e2e8f0;
}

.category-featured {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 20px;
    align-items: center;
    margin-top: 28px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    background: rgba(2, 6, 23, 0.42);
}

.category-featured img {
    height: 220px;
    border-radius: 18px;
}

.category-featured h2 {
    margin: 8px 0;
    font-size: 28px;
}

.category-featured p {
    font-size: 16px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 180px 180px;
    gap: 12px;
    padding: 18px;
    margin-bottom: 30px;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    padding: 0 14px;
}

.watch-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}

.watch-main {
    min-width: 0;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.movie-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    cursor: pointer;
}

.player-toggle {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 82px;
    height: 82px;
    transform: translate(-50%, -50%);
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    color: #ffffff;
    box-shadow: 0 22px 46px rgba(249, 115, 22, 0.34);
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.player-toggle span {
    display: inline-block;
    margin-left: 5px;
    font-size: 28px;
}

.player-shell.is-playing .player-toggle {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.84);
    pointer-events: none;
}

.detail-card {
    padding: 28px;
}

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

.detail-card h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.16;
}

.detail-card h2 {
    margin: 28px 0 10px;
    font-size: 24px;
}

.detail-card p {
    color: #cbd5e1;
    margin: 0 0 14px;
    font-size: 16px;
}

.lead-text {
    font-size: 18px;
    color: #f8fafc !important;
}

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

.tag {
    display: inline-flex;
    border: 1px solid rgba(249, 115, 22, 0.22);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 13px;
}

.watch-side {
    display: grid;
    gap: 18px;
}

.poster-card,
.side-panel {
    padding: 18px;
}

.poster-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 18px;
    margin-bottom: 16px;
    background: #0f172a;
}

.poster-card .primary-button {
    width: 100%;
}

.side-panel h2 {
    margin: 0 0 16px;
}

.mini-rank .rank-item {
    grid-template-columns: 36px 62px 1fr;
    gap: 10px;
    padding: 10px;
}

.mini-rank .rank-cover {
    width: 62px;
    height: 48px;
}

.mini-rank .rank-action {
    display: none;
}

.mini-rank .rank-info p,
.mini-rank .movie-meta-line {
    display: none;
}

.search-panel {
    display: flex;
    gap: 12px;
    max-width: 780px;
}

.search-panel input {
    flex: 1;
    padding: 0 16px;
}

.search-results-section:has(#search-results:empty) {
    display: none;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.8), #020617);
    padding: 52px 24px 28px;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 0.7fr 1fr;
    gap: 34px;
}

.footer-grid h2 {
    margin: 0 0 14px;
    font-size: 16px;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
    color: var(--muted);
    font-size: 14px;
}

.footer-grid a {
    display: block;
    margin-bottom: 9px;
    transition: color 0.2s ease;
}

.footer-grid a:hover {
    color: #fb923c;
}

.footer-bottom {
    max-width: 1280px;
    margin: 34px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

[hidden] {
    display: none !important;
}

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

    .menu-button {
        display: block;
    }

    .nav-search {
        margin-left: auto;
    }

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

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

    .watch-side {
        grid-template-columns: 280px 1fr;
    }

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

@media (max-width: 820px) {
    .nav-shell {
        padding: 0 16px;
    }

    .nav-search {
        display: none;
    }

    .hero-carousel {
        min-height: 720px;
    }

    .hero-content {
        padding: 90px 18px 260px;
    }

    .hero-search-card {
        bottom: 52px;
        width: calc(100% - 28px);
    }

    .hero-search-card form,
    .search-panel {
        flex-direction: column;
    }

    .movie-grid,
    .compact-grid,
    .horizontal-grid,
    .category-grid,
    .split-showcase,
    .filter-panel,
    .watch-side,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .movie-card-horizontal {
        grid-template-columns: 132px 1fr;
    }

    .horizontal-cover {
        min-height: 112px;
    }

    .rank-item {
        grid-template-columns: 42px 74px 1fr;
    }

    .rank-action {
        grid-column: 3;
        justify-self: start;
    }

    .page-shell {
        padding: 28px 16px 58px;
    }

    .page-hero,
    .detail-card,
    .panel-section,
    .explore-panel {
        padding: 24px;
    }

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

    .category-featured img {
        height: 260px;
    }

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

@media (max-width: 520px) {
    .site-logo,
    .footer-logo {
        font-size: 18px;
    }

    .logo-mark {
        width: 30px;
        height: 30px;
    }

    .hero-content h1,
    .page-hero h1 {
        font-size: 36px;
    }

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

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

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

    .movie-card-title {
        font-size: 15px;
    }

    .movie-card-desc,
    .movie-meta-line {
        display: none;
    }

    .movie-card-horizontal {
        grid-template-columns: 108px 1fr;
    }

    .rank-info p {
        display: none;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
