:root {
    --emerald: #10b981;
    --emerald-dark: #059669;
    --teal: #14b8a6;
    --cyan: #06b6d4;
    --amber: #f59e0b;
    --text: #111827;
    --muted: #6b7280;
    --soft: #f3f4f6;
    --line: #e5e7eb;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
    --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, #f9fafb 0%, #ecfdf5 45%, #f8fafc 100%);
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.75);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: linear-gradient(135deg, #34d399, #14b8a6);
    box-shadow: 0 12px 24px rgba(20, 184, 166, 0.25);
    transition: transform 0.25s ease;
}

.brand:hover .brand-icon,
.footer-brand:hover .brand-icon {
    transform: scale(1.08) rotate(4deg);
}

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

.brand-name {
    font-size: 20px;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--emerald-dark), var(--teal));
    -webkit-background-clip: text;
    color: transparent;
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 12px;
    color: #374151;
    font-weight: 650;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--emerald-dark);
    background: #ecfdf5;
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 180px;
    padding: 10px;
    display: none;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.nav-dropdown:hover .dropdown-menu {
    display: grid;
    gap: 4px;
}

.dropdown-link {
    padding: 10px 12px;
    border-radius: 12px;
    color: #374151;
    font-weight: 600;
}

.dropdown-link:hover {
    background: #ecfdf5;
    color: var(--emerald-dark);
}

.header-search,
.mobile-search,
.big-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.big-search input,
.page-filter-input {
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--text);
    outline: none;
    border-radius: 999px;
    transition: 0.2s ease;
}

.header-search input {
    width: 220px;
    padding: 10px 14px;
}

.header-search input:focus,
.mobile-search input:focus,
.big-search input:focus,
.page-filter-input:focus {
    border-color: var(--emerald);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.header-search button,
.mobile-search button,
.big-search button,
.primary-button {
    border: 0;
    color: var(--white);
    background: linear-gradient(135deg, var(--emerald), var(--teal));
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 25px rgba(16, 185, 129, 0.24);
    transition: 0.25s ease;
}

.header-search button,
.mobile-search button {
    padding: 10px 16px;
}

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
}

.primary-button.small {
    min-height: 40px;
    padding: 0 16px;
    font-size: 14px;
}

.header-search button:hover,
.mobile-search button:hover,
.big-search button:hover,
.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(16, 185, 129, 0.30);
}

.ghost-button {
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: var(--white);
    border-radius: 999px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    transition: 0.25s ease;
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
    padding: 10px;
}

.mobile-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #374151;
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    padding: 16px;
    border-top: 1px solid var(--line);
    background: var(--white);
}

.mobile-panel.open {
    display: grid;
    gap: 12px;
}

.mobile-panel > a,
.mobile-category-grid a {
    padding: 12px 14px;
    border-radius: 12px;
    background: #f9fafb;
    color: #374151;
    font-weight: 650;
}

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

.hero-carousel {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    transition: opacity 0.7s ease;
}

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

.hero-overlay,
.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 30%, rgba(16, 185, 129, 0.35), transparent 30%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.66) 48%, rgba(2, 6, 23, 0.25) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.65), rgba(2, 6, 23, 0.10));
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 680px;
    display: grid;
    grid-template-columns: 1.1fr 0.62fr;
    align-items: center;
    gap: 58px;
    color: var(--white);
}

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

.hero-kicker {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    color: #a7f3d0;
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(167, 243, 208, 0.26);
    font-size: 14px;
    font-weight: 800;
}

.hero-copy h1,
.page-hero h1,
.detail-title-block h1 {
    margin: 0;
    letter-spacing: -0.05em;
    line-height: 1.05;
}

.hero-copy h1 {
    font-size: clamp(42px, 7vw, 76px);
}

.hero-copy p {
    max-width: 720px;
    margin: 24px 0 0;
    color: #e5e7eb;
    font-size: 19px;
    line-height: 1.9;
}

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

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

.hero-tags span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ecfdf5;
    font-size: 14px;
}

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

.hero-poster {
    position: relative;
    display: block;
    border-radius: 30px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.38);
    transform: rotate(2deg);
    transition: 0.35s ease;
}

.hero-poster:hover {
    transform: rotate(0deg) translateY(-8px);
}

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

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    font-size: 30px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    padding: 0;
    transition: 0.25s ease;
}

.hero-dot.active {
    width: 30px;
    background: var(--emerald);
}

.quick-search-band {
    position: relative;
    z-index: 5;
    margin-top: -42px;
}

.quick-search-inner {
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.quick-search-inner h2 {
    margin: 0 0 6px;
    font-size: 26px;
}

.quick-search-inner p {
    margin: 0;
    color: var(--muted);
}

.big-search {
    margin-top: 20px;
}

.big-search input {
    flex: 1;
    min-height: 54px;
    padding: 0 20px;
    font-size: 16px;
}

.big-search button {
    min-height: 54px;
    padding: 0 26px;
}

.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.category-chips a {
    padding: 9px 13px;
    border-radius: 999px;
    color: #047857;
    background: #ecfdf5;
    font-weight: 700;
    transition: 0.2s ease;
}

.category-chips a:hover {
    color: var(--white);
    background: var(--emerald);
    transform: translateY(-2px);
}

.page-sections {
    padding: 64px 0;
    display: grid;
    gap: 72px;
}

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

.section-heading h2 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 38px);
    letter-spacing: -0.04em;
}

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

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--emerald-dark);
    font-weight: 800;
}

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

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

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

.compact-grid {
    margin-top: 22px;
}

.large-gap {
    gap: 28px;
}

.movie-card,
.movie-row,
.ranking-item,
.category-overview-card,
.content-card,
.side-card,
.player-card,
.category-panel {
    background: var(--white);
    border: 1px solid rgba(229, 231, 235, 0.85);
    box-shadow: var(--shadow-soft);
}

.movie-card {
    display: block;
    overflow: hidden;
    border-radius: 20px;
    transition: 0.3s ease;
}

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

.poster-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #d1fae5;
}

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

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

.movie-card:hover .poster-wrap img,
.movie-row:hover .row-poster img,
.ranking-item:hover .ranking-poster img {
    transform: scale(1.08);
}

.poster-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.54), transparent 55%);
    opacity: 0;
    transition: 0.3s ease;
}

.movie-card:hover .poster-gradient {
    opacity: 1;
}

.poster-tag,
.rank-badge {
    position: absolute;
    border-radius: 999px;
    color: var(--white);
    font-weight: 800;
    font-size: 12px;
}

.poster-tag {
    right: 12px;
    bottom: 12px;
    padding: 7px 10px;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(8px);
}

.rank-badge {
    left: 12px;
    top: 12px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--amber), #ef4444);
}

.card-body {
    padding: 18px;
}

.card-kicker,
.row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}

.card-kicker {
    justify-content: space-between;
    margin-bottom: 10px;
}

.movie-card h3,
.movie-row h3,
.ranking-item h3 {
    margin: 0;
    line-height: 1.35;
    transition: 0.2s ease;
}

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

.movie-card p,
.movie-row p,
.ranking-item p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    color: var(--muted);
    line-height: 1.65;
}

.movie-card p {
    min-height: 52px;
    margin: 10px 0 14px;
    -webkit-line-clamp: 2;
}

.movie-card:hover h3,
.movie-row:hover h3,
.ranking-item:hover h3 {
    color: var(--emerald-dark);
}

.tag-list span,
.tag-cloud span,
.detail-meta-tags span {
    padding: 6px 10px;
    border-radius: 999px;
    color: #047857;
    background: #ecfdf5;
    font-size: 12px;
    font-weight: 750;
}

.movie-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 16px;
    padding: 12px;
    border-radius: 18px;
    overflow: hidden;
    transition: 0.25s ease;
}

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

.row-poster {
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 16 / 10;
    background: #d1fae5;
}

.row-info {
    min-width: 0;
    align-self: center;
}

.movie-row p {
    margin: 8px 0 0;
    -webkit-line-clamp: 2;
}

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

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

.ranking-item {
    display: grid;
    grid-template-columns: 56px 118px 1fr;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 20px;
    transition: 0.25s ease;
}

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

.ranking-number {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--emerald), var(--teal));
    font-weight: 900;
}

.ranking-poster {
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 16 / 10;
}

.ranking-item p {
    margin: 8px 0;
    -webkit-line-clamp: 1;
}

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

.category-panel {
    overflow: hidden;
    border-radius: 26px;
}

.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
    color: var(--white);
    background: linear-gradient(135deg, var(--emerald), var(--teal));
}

.panel-title h3 {
    margin: 0 0 6px;
    font-size: 24px;
}

.panel-title p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
}

.panel-title a {
    flex: none;
    font-weight: 800;
}

.panel-list {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(135deg, #10b981, #14b8a6 58%, #0f766e);
}

.page-hero {
    padding: 82px 0;
}

.compact-hero {
    padding: 70px 0;
}

.page-hero h1 {
    max-width: 820px;
    font-size: clamp(36px, 6vw, 58px);
}

.page-hero p {
    max-width: 720px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 20px;
    color: #047857;
    font-weight: 750;
}

.breadcrumb.light {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.86);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.category-overview-list {
    gap: 32px;
}

.category-overview-card {
    padding: 26px;
    border-radius: 26px;
}

.category-overview-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.category-overview-head span {
    color: var(--emerald-dark);
    font-weight: 850;
}

.category-overview-head h2 {
    margin: 6px 0;
    font-size: 28px;
}

.category-overview-head p {
    margin: 0;
    color: var(--muted);
}

.listing-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    padding: 48px 0 72px;
}

.filter-panel {
    position: sticky;
    top: 96px;
    align-self: start;
    padding: 22px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--line);
}

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

.page-filter-input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.filter-links {
    display: grid;
    gap: 8px;
}

.filter-links a {
    padding: 11px 12px;
    border-radius: 12px;
    color: #374151;
    font-weight: 700;
    background: #f9fafb;
    transition: 0.2s ease;
}

.filter-links a:hover,
.filter-links a.active {
    color: var(--white);
    background: linear-gradient(135deg, var(--emerald), var(--teal));
}

.listing-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    padding: 18px 20px;
    border-radius: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.empty-result {
    display: none;
    margin: 26px 0 0;
    padding: 24px;
    text-align: center;
    color: var(--muted);
    background: var(--white);
    border-radius: 18px;
}

.detail-hero {
    min-height: 430px;
    background-size: cover;
    background-position: center;
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    min-height: 430px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-title-block {
    max-width: 800px;
}

.detail-title-block h1 {
    font-size: clamp(38px, 6vw, 64px);
}

.detail-title-block p {
    max-width: 760px;
    margin: 18px 0 0;
    color: #e5e7eb;
    font-size: 19px;
    line-height: 1.8;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 0.85fr);
    gap: 30px;
    padding: 42px 0 72px;
}

.detail-main,
.detail-side,
.side-list {
    display: grid;
    gap: 22px;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #020617;
}

.movie-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-poster {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #020617;
    transition: 0.25s ease;
}

.player-poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
}

.player-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.12));
}

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

.play-circle {
    position: relative;
    z-index: 2;
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--emerald), var(--teal));
    box-shadow: 0 18px 45px rgba(16, 185, 129, 0.35);
    font-size: 30px;
}

.content-card,
.side-card {
    padding: 26px;
    border-radius: 24px;
}

.content-card h2,
.side-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.content-card p {
    margin: 0 0 22px;
    color: #374151;
    line-height: 1.9;
    font-size: 16px;
}

.detail-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0;
}

.info-grid div {
    padding: 14px;
    border-radius: 16px;
    background: #f9fafb;
}

.info-grid span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 13px;
}

.info-grid strong {
    display: block;
    color: var(--text);
    line-height: 1.5;
}

.tag-cloud span {
    font-size: 14px;
}

.sticky-side {
    position: sticky;
    top: 96px;
}

.search-page-form {
    max-width: 760px;
}

.search-status {
    padding: 18px 20px;
    border-radius: 18px;
    color: #047857;
    background: #ecfdf5;
    font-weight: 750;
}

.site-footer {
    background: linear-gradient(135deg, #f8fafc, #ecfdf5);
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 34px;
    padding: 48px 0;
}

.site-footer h3 {
    margin: 0 0 14px;
}

.site-footer p,
.site-footer li,
.footer-bottom {
    color: var(--muted);
    line-height: 1.8;
}

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

.site-footer a:hover {
    color: var(--emerald-dark);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
    font-size: 14px;
}

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

    .mobile-toggle {
        display: block;
    }

    .hero-content,
    .detail-layout,
    .listing-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        display: none;
    }

    .filter-panel,
    .sticky-side {
        position: static;
    }

    .three-col,
    .four-col,
    .compact-grid,
    .ranking-grid,
    .dual-panels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .brand-subtitle {
        display: none;
    }

    .brand-name {
        font-size: 17px;
    }

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

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

    .quick-search-band {
        margin-top: 0;
    }

    .quick-search-inner {
        border-radius: 0;
        width: calc(100% + 22px);
        margin-left: -11px;
    }

    .big-search,
    .section-heading,
    .category-overview-head,
    .footer-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .three-col,
    .four-col,
    .compact-grid,
    .ranking-grid,
    .dual-panels {
        grid-template-columns: 1fr;
    }

    .movie-row,
    .ranking-item {
        grid-template-columns: 98px 1fr;
    }

    .ranking-number {
        position: absolute;
        margin: 8px;
        z-index: 2;
    }

    .ranking-item {
        position: relative;
        padding-left: 14px;
    }

    .ranking-poster {
        grid-column: 1;
    }

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

    .content-card,
    .side-card,
    .category-overview-card {
        padding: 20px;
    }
}
