* {
    box-sizing: border-box;
}

:root {
    --color-page: #f9fafb;
    --color-card: #ffffff;
    --color-text: #111827;
    --color-muted: #6b7280;
    --color-line: #e5e7eb;
    --color-orange: #f97316;
    --color-orange-dark: #ea580c;
    --color-red: #ef4444;
    --color-pink: #ec4899;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.10);
    --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.08);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --container: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--color-text);
    background: var(--color-page);
    line-height: 1.6;
}

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

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

img.is-missing {
    opacity: 0;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.96), rgba(239, 68, 68, 0.96), rgba(236, 72, 153, 0.94));
    box-shadow: 0 12px 30px rgba(239, 68, 68, 0.24);
    backdrop-filter: blur(18px);
}

.site-header-inner {
    width: min(100% - 32px, var(--container));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.brand-text {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

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

.nav-link {
    padding: 9px 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.header-search {
    margin-left: auto;
    width: 310px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.20);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    overflow: hidden;
}

.header-search input,
.mobile-search input,
.wide-search input,
.search-page-form input,
.toolbar-controls input,
.toolbar-controls select {
    border: 0;
    outline: 0;
}

.header-search input,
.mobile-search input {
    width: 100%;
    min-width: 0;
    padding: 11px 14px 11px 18px;
    color: #ffffff;
    background: transparent;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.header-search button,
.mobile-search button,
.wide-search button,
.search-page-form button {
    border: 0;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.28);
    padding: 11px 18px;
    white-space: nowrap;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-button span {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: #ffffff;
}

.mobile-panel {
    display: none;
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

.mobile-search {
    display: flex;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
    margin-bottom: 12px;
}

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

.mobile-link {
    padding: 11px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
}

.mobile-link.muted {
    color: rgba(255, 255, 255, 0.82);
}

.hero {
    position: relative;
    min-height: 690px;
    color: #ffffff;
    overflow: hidden;
    background: #111827;
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 1.2s ease;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hero-slide img {
    filter: saturate(1.08) contrast(1.03);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.96) 0%, rgba(17, 24, 39, 0.74) 38%, rgba(17, 24, 39, 0.15) 100%), linear-gradient(0deg, rgba(17, 24, 39, 0.84), rgba(17, 24, 39, 0.08) 48%, rgba(17, 24, 39, 0.42));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    min-height: 690px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 92px 0 110px;
}

.hero-kicker,
.detail-kicker,
.page-hero span {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    color: #fff7ed;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(249, 115, 22, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.24);
    padding: 8px 14px;
    border-radius: 999px;
}

.hero-content h1 {
    width: min(760px, 100%);
    margin: 22px 0 18px;
    font-size: clamp(44px, 7vw, 86px);
    line-height: 1.02;
    letter-spacing: -0.05em;
    font-weight: 950;
    text-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.hero-content p {
    width: min(660px, 100%);
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

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

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

.hero-tags span,
.tag-row span {
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.tag-row span {
    color: var(--color-orange-dark);
    background: #fff7ed;
}

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

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

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-orange), var(--color-red));
    box-shadow: 0 16px 35px rgba(249, 115, 22, 0.36);
}

.btn-glass {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(12px);
}

.btn-link {
    color: #fed7aa;
    padding-left: 8px;
    padding-right: 8px;
}

.hero-nav {
    position: absolute;
    z-index: 4;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.45);
    font-size: 42px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    transition: width 0.25s ease, background 0.25s ease;
}

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

.home-search-band {
    margin-top: -44px;
    position: relative;
    z-index: 8;
}

.home-search-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
    border-radius: var(--radius-xl);
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #1f2937);
    box-shadow: var(--shadow-soft);
}

.home-search-card h2 {
    margin: 0 0 5px;
    font-size: 24px;
}

.home-search-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
}

.wide-search,
.search-page-form {
    display: flex;
    width: min(100%, 520px);
    border-radius: 999px;
    overflow: hidden;
    background: #ffffff;
}

.wide-search input,
.search-page-form input {
    flex: 1;
    min-width: 0;
    padding: 15px 18px;
    color: var(--color-text);
}

.wide-search button,
.search-page-form button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-orange), var(--color-red));
    padding-left: 26px;
    padding-right: 26px;
}

.content-section {
    padding: 58px 0;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

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

.section-link {
    flex-shrink: 0;
    color: var(--color-orange-dark);
    font-weight: 800;
}

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

.category-card {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    color: #ffffff;
    box-shadow: var(--shadow-card);
    background: linear-gradient(135deg, #111827, #374151);
}

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

.category-card img {
    transition: transform 0.45s ease;
}

.category-overlay {
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.24));
}

.category-card strong,
.category-card em {
    position: relative;
    z-index: 2;
    display: block;
    padding: 0 20px;
}

.category-card strong {
    margin-top: 112px;
    font-size: 23px;
    font-style: normal;
    font-weight: 900;
}

.category-card em {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    font-style: normal;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--color-card);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.14);
}

.poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: radial-gradient(circle at 28% 20%, rgba(249, 115, 22, 0.45), transparent 36%), linear-gradient(135deg, #111827, #374151);
}

.movie-card-compact .poster {
    aspect-ratio: 16 / 9;
}

.poster img {
    transition: transform 0.45s ease;
}

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

.poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.45), rgba(17, 24, 39, 0));
}

.poster-play {
    position: absolute;
    z-index: 2;
    left: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-orange), var(--color-red));
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.35);
}

.rank-badge {
    position: absolute;
    z-index: 3;
    top: 12px;
    left: 12px;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-orange), var(--color-red));
    box-shadow: 0 12px 25px rgba(239, 68, 68, 0.32);
}

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

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

.movie-meta span + span::before {
    content: "·";
    margin-right: 8px;
    color: #d1d5db;
}

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

.movie-card h3 a:hover {
    color: var(--color-orange-dark);
}

.movie-card p {
    min-height: 47px;
    margin: 9px 0 14px;
    color: var(--color-muted);
    font-size: 14px;
}

.two-column-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.rank-panel,
.side-card,
.detail-card,
.category-overview-card {
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.rank-panel {
    position: sticky;
    top: 96px;
    padding: 22px;
}

.rank-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.rank-panel-head h2 {
    margin: 0;
    font-size: 26px;
}

.rank-panel-head a {
    color: var(--color-orange-dark);
    font-weight: 800;
}

.rank-line {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 8px 12px;
    padding: 13px 0;
    border-top: 1px solid var(--color-line);
}

.rank-line span {
    grid-row: span 2;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: #ffffff;
    background: #111827;
    font-weight: 900;
}

.rank-line strong {
    font-size: 15px;
}

.rank-line em {
    color: var(--color-muted);
    font-style: normal;
    font-size: 13px;
}

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

.page-hero {
    color: #ffffff;
    background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.86), transparent 36%), linear-gradient(135deg, #111827, #1f2937 54%, #7c2d12);
    padding: 82px 0 74px;
    overflow: hidden;
}

.compact-hero {
    padding: 78px 0 64px;
}

.category-hero {
    background: radial-gradient(circle at 20% 20%, rgba(236, 72, 153, 0.62), transparent 30%), linear-gradient(135deg, #111827, #9a3412);
}

.rank-hero {
    background: radial-gradient(circle at 70% 5%, rgba(249, 115, 22, 0.72), transparent 32%), linear-gradient(135deg, #111827, #7f1d1d);
}

.page-hero h1 {
    width: min(760px, 100%);
    margin: 20px 0 14px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.page-hero p {
    width: min(720px, 100%);
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
}

.crumb {
    color: #fed7aa;
    font-weight: 900;
}

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

.category-overview-card {
    overflow: hidden;
}

.category-overview-link {
    display: block;
}

.category-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 150px;
    background: linear-gradient(135deg, #111827, #374151);
}

.category-thumbs img {
    min-width: 0;
}

.category-overview-body {
    padding: 22px;
}

.category-overview-body span {
    color: var(--color-orange-dark);
    font-weight: 900;
    font-size: 13px;
}

.category-overview-body h2 {
    margin: 8px 0 8px;
    font-size: 26px;
}

.category-overview-body p {
    min-height: 48px;
    color: var(--color-muted);
    margin: 0 0 18px;
}

.category-overview-body strong {
    color: var(--color-orange-dark);
}

.list-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding: 22px;
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.list-toolbar h2 {
    margin: 0 0 4px;
    font-size: 28px;
}

.list-toolbar p {
    margin: 0;
    color: var(--color-muted);
}

.toolbar-controls {
    display: flex;
    gap: 10px;
}

.toolbar-controls input,
.toolbar-controls select {
    min-height: 44px;
    border-radius: 999px;
    padding: 0 16px;
    background: #f3f4f6;
    color: var(--color-text);
}

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

.rank-wide-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.rank-wide-line {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 2px 14px;
    padding: 16px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.rank-wide-line span {
    grid-row: span 2;
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-orange), var(--color-red));
    font-weight: 950;
}

.rank-wide-line strong {
    font-size: 18px;
}

.rank-wide-line em {
    color: var(--color-muted);
    font-style: normal;
}

.search-page-form {
    margin-top: 28px;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.24);
}

.search-status {
    margin-bottom: 22px;
    padding: 18px 22px;
    border-radius: var(--radius-lg);
    color: var(--color-muted);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
    padding-top: 34px;
    padding-bottom: 70px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--color-muted);
    margin: 0 0 18px;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #000000;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.22);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.20), rgba(0, 0, 0, 0.38));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 7px;
    color: #ffffff;
    font-size: 42px;
    background: linear-gradient(135deg, var(--color-orange), var(--color-red));
    box-shadow: 0 24px 60px rgba(249, 115, 22, 0.45);
}

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

.detail-card {
    margin-top: 24px;
    padding: 28px;
}

.detail-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.detail-kicker {
    color: #ffffff;
    margin-bottom: 12px;
}

.detail-card h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.detail-category-link {
    flex-shrink: 0;
    color: var(--color-orange-dark);
    font-weight: 900;
    padding-top: 10px;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 24px 0;
}

.detail-meta-grid span {
    padding: 12px 14px;
    border-radius: 14px;
    color: #374151;
    background: #f3f4f6;
    font-weight: 700;
}

.detail-tags {
    margin-bottom: 26px;
}

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

.detail-card p {
    margin: 0;
    color: #374151;
    font-size: 17px;
}

.detail-side {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 22px;
}

.side-card {
    overflow: hidden;
    padding: 22px;
}

.cover-card {
    padding: 0;
}

.cover-card img {
    aspect-ratio: 4 / 5;
    background: linear-gradient(135deg, #111827, #374151);
}

.side-watch {
    margin: 18px;
}

.side-card h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.related-list {
    display: grid;
    gap: 13px;
}

.related-card {
    display: grid;
    grid-template-columns: 116px 1fr;
    gap: 12px;
    align-items: center;
}

.related-thumb {
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #374151);
}

.related-info strong,
.related-info em {
    display: block;
}

.related-info strong {
    line-height: 1.35;
}

.related-info em {
    margin-top: 4px;
    color: var(--color-muted);
    font-style: normal;
    font-size: 13px;
}

.site-footer {
    color: #d1d5db;
    background: #111827;
}

.footer-inner {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    padding: 42px 0 28px;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
}

.footer-logo {
    color: #ffffff;
}

.footer-brand p {
    color: #9ca3af;
    margin: 16px 0 0;
}

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

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

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

@media (max-width: 1100px) {
    .category-grid,
    .movie-grid,
    .rank-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .two-column-section,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .rank-panel,
    .detail-side {
        position: static;
    }

    .detail-side {
        grid-template-columns: 330px 1fr;
    }
}

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

    .mobile-menu-button {
        display: inline-flex;
    }

    .site-header-inner {
        min-height: 64px;
    }

    .brand-text {
        font-size: 21px;
    }

    .hero,
    .hero-content {
        min-height: 620px;
    }

    .hero-nav {
        display: none;
    }

    .home-search-card,
    .list-toolbar,
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .wide-search,
    .search-page-form {
        width: 100%;
    }

    .category-grid,
    .movie-grid,
    .movie-grid-featured,
    .rank-grid,
    .rank-wide-list {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

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

@media (max-width: 580px) {
    .container,
    .site-header-inner,
    .mobile-panel,
    .footer-inner {
        width: min(100% - 24px, var(--container));
    }

    .hero,
    .hero-content {
        min-height: 560px;
    }

    .hero-content {
        padding-top: 72px;
        padding-bottom: 82px;
    }

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

    .hero-actions,
    .compact-actions,
    .toolbar-controls {
        width: 100%;
        flex-direction: column;
    }

    .btn,
    .toolbar-controls input,
    .toolbar-controls select {
        width: 100%;
    }

    .category-grid,
    .movie-grid,
    .movie-grid-featured,
    .rank-grid,
    .rank-wide-list,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        min-height: 190px;
    }

    .detail-card,
    .side-card {
        padding: 20px;
    }

    .cover-card {
        padding: 0;
    }

    .detail-title-row {
        flex-direction: column;
    }

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

    .related-card {
        grid-template-columns: 104px 1fr;
    }
}
