:root {
    --color-ink: #0f172a;
    --color-muted: #64748b;
    --color-soft: #f1f5f9;
    --color-line: #e2e8f0;
    --color-card: #ffffff;
    --color-teal: #0d9488;
    --color-teal-dark: #0f766e;
    --color-blue: #2563eb;
    --color-indigo: #4f46e5;
    --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-ink);
    background: #f8fafc;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "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;
}

.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(226, 232, 240, 0.9);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

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

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.site-logo {
    font-size: 24px;
    color: transparent;
    background: linear-gradient(135deg, var(--color-teal), var(--color-blue));
    -webkit-background-clip: text;
    background-clip: text;
    white-space: nowrap;
}

.site-logo-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #ffffff;
    font-size: 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-teal), var(--color-blue));
    box-shadow: 0 12px 26px rgba(13, 148, 136, 0.28);
}

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

.nav-link,
.dropdown-button {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    color: #334155;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.dropdown-button:hover {
    color: var(--color-teal-dark);
    background: #ccfbf1;
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 220px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid var(--color-line);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-panel a {
    display: block;
    padding: 10px 12px;
    color: #475569;
    border-radius: 12px;
    font-size: 14px;
}

.dropdown-panel a:hover {
    color: var(--color-teal-dark);
    background: #f0fdfa;
}

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

.header-search input {
    width: 190px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    outline: none;
    background: #ffffff;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.big-search input:focus,
.inline-filter input:focus {
    border-color: var(--color-teal);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.16);
}

.header-search button,
.big-search button {
    height: 40px;
    padding: 0 16px;
    color: #ffffff;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-teal), var(--color-blue));
    cursor: pointer;
    font-weight: 700;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #ecfeff;
    color: var(--color-teal-dark);
    cursor: pointer;
    font-size: 22px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--color-line);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

.mobile-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: #334155;
    font-weight: 650;
}

.mobile-nav a:hover {
    background: #f0fdfa;
    color: var(--color-teal-dark);
}

.mobile-nav.open {
    display: block;
}

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

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

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

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.34;
    filter: saturate(1.1) contrast(1.06);
    transform: scale(1.02);
}

.hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 22%, rgba(45, 212, 191, 0.36), transparent 32%), linear-gradient(135deg, rgba(15, 118, 110, 0.92), rgba(37, 99, 235, 0.82) 48%, rgba(79, 70, 229, 0.88));
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 390px;
    align-items: center;
    gap: 56px;
    color: #ffffff;
}

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

.hero-kicker,
.section-kicker {
    margin: 0 0 12px;
    color: #2dd4bf;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-text,
.page-hero p {
    max-width: 680px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

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

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

.hero-tags span,
.movie-tags span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
}

.hero-tags span {
    color: #ecfeff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.primary-button,
.secondary-button,
.text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 850;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, #14b8a6, #2563eb);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.32);
}

.primary-button:hover,
.secondary-button:hover,
.text-button:hover {
    transform: translateY(-2px);
}

.secondary-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(14px);
}

.text-button {
    min-height: 38px;
    padding: 0 14px;
    color: var(--color-teal-dark);
    background: #ccfbf1;
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 32px;
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.42);
    transform: rotate(2deg);
}

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

.hero-poster span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    padding: 10px 14px;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(12px);
    font-size: 13px;
    font-weight: 850;
}

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

.hero-dot {
    width: 28px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    cursor: pointer;
}

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

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

.quick-search-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 500px);
    gap: 24px;
    align-items: center;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(20px);
}

.quick-search-card h2,
.section-heading h2,
.footer-column h2,
.detail-main-text h2,
.aside-card h2 {
    margin: 0;
    letter-spacing: -0.04em;
}

.quick-search-card p,
.section-heading p,
.movie-info p,
.rank-row p,
.category-tile p,
.category-overview-body p,
.detail-main-text p,
.footer-brand p {
    color: var(--color-muted);
}

.big-search,
.inline-filter {
    display: flex;
    gap: 10px;
}

.big-search input,
.inline-filter input {
    flex: 1;
    height: 52px;
    min-width: 0;
    padding: 0 18px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    outline: none;
    background: #ffffff;
}

.big-search button {
    height: 52px;
    padding: 0 24px;
}

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

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

.section-heading h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.section-heading p {
    margin: 8px 0 0;
}

.section-link {
    display: inline-flex;
    align-items: center;
    height: 42px;
    padding: 0 16px;
    color: var(--color-teal-dark);
    border-radius: 999px;
    background: #ccfbf1;
    font-weight: 800;
    white-space: nowrap;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 22px;
    background: var(--color-card);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(20, 184, 166, 0.42);
    box-shadow: var(--shadow-card);
}

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

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

.movie-card-featured .movie-cover {
    aspect-ratio: 16 / 10.8;
}

.movie-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.25s ease;
}

.movie-card:hover .movie-cover img {
    transform: scale(1.08);
    opacity: 0.88;
}

.movie-badge,
.movie-year,
.movie-play {
    position: absolute;
    z-index: 2;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(12px);
}

.movie-badge {
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.movie-year {
    right: 12px;
    bottom: 12px;
    padding: 5px 9px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
}

.movie-play {
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.74);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.movie-info {
    padding: 16px;
}

.movie-info h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.32;
    letter-spacing: -0.02em;
}

.movie-info h3 a:hover,
.rank-row h3 a:hover,
.category-overview-body h2 a:hover {
    color: var(--color-teal-dark);
}

.movie-info p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 12px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 14px;
}

.movie-tags span,
.detail-meta span {
    color: #0f766e;
    background: #ccfbf1;
}

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

.category-tile {
    display: block;
    min-height: 240px;
    padding: 16px;
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.category-covers {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    height: 104px;
    margin-bottom: 16px;
}

.category-covers img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.category-tile h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.category-tile p {
    margin: 0;
    font-size: 14px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.rank-row-cover {
    overflow: hidden;
    border-radius: 16px;
    background: #0f172a;
    aspect-ratio: 16 / 10;
}

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

.rank-row-main {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

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

.rank-row h3 {
    margin: 0 0 4px;
    font-size: 19px;
}

.rank-row p {
    margin: 0;
    font-size: 14px;
}

.rank-meta {
    margin-bottom: 4px !important;
    color: #0f766e !important;
    font-weight: 750;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0;
    color: #ffffff;
    background: radial-gradient(circle at 82% 18%, rgba(45, 212, 191, 0.38), transparent 28%), linear-gradient(135deg, #0f766e, #2563eb 52%, #4338ca);
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 42px 42px;
    opacity: 0.5;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

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

.inline-filter {
    max-width: 560px;
    margin-top: 28px;
}

.toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 20px;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
    padding: 16px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.category-overview-art {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.category-overview-art img {
    width: 100%;
    height: 100%;
    min-height: 78px;
    object-fit: cover;
    border-radius: 16px;
}

.category-overview-art img:first-child {
    grid-row: span 2;
}

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

.category-overview-body p {
    margin: 0 0 10px;
}

.category-overview-body ul {
    display: grid;
    gap: 6px;
    margin: 0 0 14px;
    padding-left: 18px;
    color: #334155;
}

.detail-page {
    padding: 34px 0 0;
}

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

.breadcrumb a {
    color: var(--color-teal-dark);
    font-weight: 750;
}

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

.player-column,
.detail-aside,
.aside-card,
.detail-main-text {
    min-width: 0;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: 0 26px 70px rgba(2, 6, 23, 0.28);
    aspect-ratio: 16 / 9;
}

.movie-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #020617;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: #020617;
    cursor: pointer;
}

.player-cover.is-hidden {
    display: none;
}

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

.play-ring {
    position: relative;
    z-index: 2;
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-teal), var(--color-blue));
    box-shadow: 0 24px 44px rgba(37, 99, 235, 0.36);
    font-size: 28px;
}

.detail-main-text {
    margin-top: 24px;
    padding: 26px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.detail-main-text h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.detail-meta {
    margin-bottom: 14px;
}

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

.detail-one-line {
    font-size: 18px;
    color: #334155 !important;
    font-weight: 650;
}

.detail-main-text h2 {
    margin-top: 28px;
    font-size: 24px;
}

.aside-poster {
    display: block;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow-card);
}

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

.aside-card {
    margin-top: 18px;
    padding: 22px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.aside-card dl {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px 12px;
    margin: 18px 0;
}

.aside-card dt {
    color: var(--color-muted);
}

.aside-card dd {
    margin: 0;
    font-weight: 750;
}

.full-button {
    width: 100%;
}

.empty-state {
    display: none;
    padding: 28px;
    text-align: center;
    color: var(--color-muted);
    border: 1px dashed #cbd5e1;
    border-radius: 20px;
    background: #ffffff;
}

.empty-state.show {
    display: block;
}

.filter-card.hidden {
    display: none;
}

.site-footer {
    margin-top: 76px;
    color: #e2e8f0;
    background: linear-gradient(135deg, #1e293b, #0f172a 46%, #134e4a);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 36px;
    padding: 48px 0;
}

.footer-logo {
    color: #ffffff;
    font-size: 22px;
}

.footer-brand p {
    max-width: 420px;
    color: #cbd5e1;
}

.footer-column h2 {
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 18px;
}

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

.footer-column a {
    color: #cbd5e1;
}

.footer-column a:hover {
    color: #5eead4;
}

.footer-bottom {
    padding: 18px 0;
    text-align: center;
    color: #94a3b8;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

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

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

    .hero-content {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    .category-overview-card,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-aside {
        display: grid;
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 18px;
    }

    .aside-card {
        margin-top: 0;
    }
}

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

    .mobile-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

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

    .hero-slide {
        position: relative;
        display: none;
        min-height: 720px;
    }

    .hero-slide.active {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        align-content: center;
        padding: 74px 0 92px;
    }

    .hero-poster {
        max-width: 260px;
        transform: none;
    }

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

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

    .movie-card-featured {
        grid-column: span 1;
        grid-row: span 1;
    }

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

    .rank-row .text-button {
        grid-column: 2;
        justify-self: start;
    }

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

@media (max-width: 620px) {
    .site-header-inner {
        height: 62px;
    }

    .site-logo {
        font-size: 20px;
    }

    .hero-copy h1,
    .hero-copy h2,
    .page-hero h1 {
        font-size: 40px;
    }

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

    .big-search,
    .inline-filter {
        flex-direction: column;
    }

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

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

    .rank-row {
        grid-template-columns: 1fr;
    }

    .rank-row-cover {
        width: 100%;
    }

    .rank-row .text-button {
        grid-column: auto;
    }

    .detail-main-text,
    .aside-card {
        padding: 20px;
    }

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