:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.82);
    --panel: rgba(15, 23, 42, 0.72);
    --panel-strong: rgba(15, 23, 42, 0.95);
    --line: rgba(96, 165, 250, 0.22);
    --text: #e5edf8;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --cyan: #22d3ee;
    --blue: #3b82f6;
    --deep-blue: #1d4ed8;
    --violet: #8b5cf6;
    --gold: #fbbf24;
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --shadow-glow: 0 24px 80px rgba(14, 165, 233, 0.20);
    --shadow-card: 0 18px 50px rgba(2, 6, 23, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 0%, rgba(34, 211, 238, 0.14), transparent 34rem),
        radial-gradient(circle at 90% 10%, rgba(59, 130, 246, 0.16), transparent 38rem),
        linear-gradient(180deg, #020617 0%, #06111f 42%, #020617 100%);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-height: 100vh;
}

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(30, 64, 175, 0.82), rgba(15, 23, 42, 0.94));
    border-bottom: 1px solid rgba(96, 165, 250, 0.22);
    backdrop-filter: blur(22px);
    box-shadow: 0 14px 40px rgba(2, 6, 23, 0.35);
}

.nav-wrap {
    width: min(1240px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 10px 30px rgba(34, 211, 238, 0.22);
}

.brand-text {
    font-size: 22px;
    background: linear-gradient(90deg, #60a5fa, #67e8f9, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

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

.desktop-nav a,
.nav-dropdown > button {
    color: #dbeafe;
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.nav-dropdown > button:hover {
    color: var(--cyan);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 16px);
    width: 190px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.2s ease;
}

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

.nav-dropdown-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: #cbd5e1;
}

.nav-dropdown-panel a:hover {
    background: rgba(37, 99, 235, 0.22);
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.68);
}

.header-search input,
.mobile-search input,
.search-hero input {
    width: 220px;
    min-width: 0;
    color: var(--text);
    border: 0;
    outline: 0;
    background: transparent;
    padding: 8px 12px;
}

.header-search button,
.mobile-search button,
.search-hero button,
.primary-btn,
.secondary-btn {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 10px 30px rgba(34, 211, 238, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.secondary-btn {
    color: #dbeafe;
    border: 1px solid rgba(125, 211, 252, 0.35);
    background: rgba(15, 23, 42, 0.62);
}

.header-search button:hover,
.mobile-search button:hover,
.search-hero button:hover,
.primary-btn:hover,
.secondary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(34, 211, 238, 0.24);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.72);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 2px;
    background: #dbeafe;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.98);
}

.mobile-panel nav {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 8px;
    display: grid;
    gap: 12px;
}

.mobile-panel nav a {
    color: #dbeafe;
    padding: 10px 0;
}

.mobile-search {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto 18px;
}

.mobile-search input {
    width: 100%;
}

main {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.hero-carousel {
    position: relative;
    margin: 34px auto 52px;
    min-height: 610px;
    overflow: hidden;
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: var(--radius-xl);
    background: rgba(15, 23, 42, 0.62);
    box-shadow: var(--shadow-glow);
}

.hero-slides {
    position: relative;
    min-height: 610px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.72fr);
    gap: 38px;
    align-items: center;
    padding: clamp(28px, 6vw, 72px);
    opacity: 0;
    transform: scale(1.015);
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.7s ease;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.64), rgba(2, 6, 23, 0.22)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.18)),
        var(--poster);
    background-size: cover;
    background-position: center;
    filter: saturate(1.08);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.22), transparent 24rem),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.18), transparent 24rem);
}

.hero-content,
.hero-poster-card {
    position: relative;
    z-index: 2;
}

.kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 8px;
    color: var(--cyan);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-content h1,
.hero-content h2 {
    margin: 16px 0 18px;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-content .site-slogan {
    margin: 0 0 14px;
    color: #dbeafe;
    font-size: clamp(17px, 2.2vw, 24px);
    font-weight: 700;
}

.hero-content p {
    max-width: 680px;
    color: #cbd5e1;
    font-size: 17px;
    line-height: 1.85;
}

.hero-meta,
.detail-meta,
.rank-meta,
.card-meta,
.card-foot {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta span,
.detail-meta span,
.card-meta span,
.card-foot span,
.rank-meta span,
.meta-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(125, 211, 252, 0.24);
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.56);
    padding: 6px 10px;
    font-size: 13px;
}

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

.hero-poster-card {
    align-self: stretch;
    min-height: 430px;
    overflow: hidden;
    border: 1px solid rgba(125, 211, 252, 0.30);
    border-radius: 26px;
    background-image:
        linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.04)),
        var(--poster);
    background-size: cover;
    background-position: center;
    box-shadow: 0 28px 80px rgba(2, 6, 23, 0.56);
}

.hero-poster-overlay {
    height: 100%;
    min-height: 430px;
    display: flex;
    align-items: flex-end;
    padding: 28px;
}

.hero-poster-overlay div {
    width: 100%;
    padding: 20px;
    border: 1px solid rgba(125, 211, 252, 0.22);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(14px);
}

.hero-dots {
    position: absolute;
    z-index: 4;
    left: clamp(28px, 6vw, 72px);
    bottom: 28px;
    display: flex;
    gap: 10px;
}

.hero-dots button {
    width: 34px;
    height: 7px;
    border: 0;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.32);
    cursor: pointer;
    transition: 0.2s ease;
}

.hero-dots button.is-active {
    width: 54px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.section-block {
    margin: 56px 0;
}

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

.section-head h2,
.page-hero h1,
.detail-title h1 {
    margin: 8px 0 10px;
    color: #ffffff;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-head p,
.page-hero p,
.detail-title p {
    max-width: 760px;
    color: var(--muted);
    line-height: 1.8;
}

.section-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cyan);
    font-weight: 700;
}

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

.movie-card {
    min-width: 0;
}

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.48));
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card-link:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.50);
    box-shadow: 0 24px 70px rgba(14, 165, 233, 0.16);
}

.poster-bg {
    background-image:
        linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.04)),
        radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.24), transparent 14rem),
        var(--poster);
    background-size: cover;
    background-position: center;
}

.card-poster {
    position: relative;
    aspect-ratio: 3 / 4.08;
    overflow: hidden;
}

.card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.card-badges span {
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    background: rgba(2, 6, 23, 0.62);
    backdrop-filter: blur(12px);
}

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 18px 48px rgba(34, 211, 238, 0.30);
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    transition: 0.2s ease;
}

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

.card-body {
    display: flex;
    min-height: 230px;
    flex-direction: column;
    padding: 17px;
}

.card-meta,
.card-foot {
    color: var(--muted);
    font-size: 12px;
}

.card-body h3 {
    margin: 12px 0 10px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
}

.card-body p {
    color: var(--muted-strong);
    font-size: 14px;
    line-height: 1.65;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.card-tags span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: #bae6fd;
    background: rgba(14, 165, 233, 0.13);
    padding: 5px 9px;
    font-size: 12px;
}

.card-foot {
    justify-content: space-between;
    margin-top: auto;
}

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

.category-tile {
    min-height: 168px;
    padding: 22px;
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 22px;
    background:
        radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.16), transparent 9rem),
        linear-gradient(145deg, rgba(15, 23, 42, 0.86), rgba(30, 64, 175, 0.28));
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.48);
}

.category-tile h3 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 21px;
    font-weight: 800;
}

.category-tile p {
    color: var(--muted);
    line-height: 1.7;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 60px 96px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.64);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
    transform: translateX(4px);
    border-color: rgba(34, 211, 238, 0.45);
}

.rank-number {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    font-weight: 900;
}

.rank-thumb {
    height: 126px;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(2, 6, 23, 0.36);
}

.rank-info h3 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
}

.rank-info p {
    color: var(--muted);
    line-height: 1.65;
}

.page-hero,
.detail-hero {
    margin: 34px 0 38px;
    padding: clamp(26px, 5vw, 48px);
    border: 1px solid rgba(96, 165, 250, 0.20);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 88% 16%, rgba(34, 211, 238, 0.18), transparent 18rem),
        linear-gradient(145deg, rgba(15, 23, 42, 0.86), rgba(30, 64, 175, 0.22));
    box-shadow: var(--shadow-card);
}

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

.breadcrumb a {
    color: #bae6fd;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 20px 0 24px;
    padding: 14px;
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.58);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chips button {
    border: 1px solid rgba(125, 211, 252, 0.24);
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.64);
    padding: 8px 12px;
    cursor: pointer;
}

.filter-chips button.active,
.filter-chips button:hover {
    color: #ffffff;
    border-color: rgba(34, 211, 238, 0.52);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.70), rgba(14, 165, 233, 0.70));
}

.sorter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
}

.sorter select {
    color: var(--text);
    border: 1px solid rgba(125, 211, 252, 0.24);
    border-radius: 999px;
    background: #0f172a;
    padding: 8px 12px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 36px 0 8px;
}

.pagination a,
.pagination span {
    min-width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(125, 211, 252, 0.24);
    border-radius: 14px;
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.64);
    padding: 0 12px;
}

.pagination .current {
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}

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

.player-panel,
.content-panel,
.side-panel {
    border: 1px solid rgba(96, 165, 250, 0.20);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.66);
    box-shadow: var(--shadow-card);
}

.player-panel {
    overflow: hidden;
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background:
        linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.26)),
        var(--poster);
    background-size: cover;
    background-position: center;
}

.video-shell video {
    width: 100%;
    height: 100%;
    background: #020617;
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-shell.is-playing .video-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-button {
    width: min(260px, 78vw);
    display: grid;
    gap: 12px;
    justify-items: center;
    border: 1px solid rgba(125, 211, 252, 0.36);
    border-radius: 24px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    padding: 24px 26px;
    cursor: pointer;
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
}

.play-button strong {
    font-size: 22px;
}

.play-button span:first-child {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    font-size: 28px;
}

.player-status {
    color: #bae6fd;
    font-size: 13px;
}

.player-info {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    color: var(--muted);
}

.content-panel {
    padding: 28px;
    margin-top: 22px;
}

.content-panel h2,
.side-panel h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 850;
}

.content-panel p {
    color: #dbeafe;
    line-height: 1.95;
    margin: 0 0 18px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 12px;
}

.side-panel {
    padding: 20px;
}

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

.side-card {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.side-thumb {
    height: 104px;
    border-radius: 14px;
}

.side-card h3 {
    color: #ffffff;
    font-size: 15px;
    font-weight: 780;
    line-height: 1.4;
    margin: 0 0 8px;
}

.side-card p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.search-hero {
    display: grid;
    gap: 18px;
}

.search-hero form {
    display: flex;
    max-width: 780px;
    border: 1px solid rgba(125, 211, 252, 0.26);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.74);
    padding: 8px;
}

.search-hero input {
    width: 100%;
}

.search-empty {
    display: none;
    border: 1px solid rgba(125, 211, 252, 0.20);
    border-radius: 20px;
    color: var(--muted);
    background: rgba(15, 23, 42, 0.60);
    padding: 26px;
}

.site-footer {
    margin-top: 72px;
    border-top: 1px solid rgba(96, 165, 250, 0.18);
    background: rgba(2, 6, 23, 0.82);
}

.footer-grid {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0 30px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
}

.footer-brand {
    color: #ffffff;
    margin-bottom: 14px;
}

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

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

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

.footer-links a:hover {
    color: var(--cyan);
}

.footer-bottom {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid rgba(96, 165, 250, 0.14);
}

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

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

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

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

    .hero-slide {
        grid-template-columns: 1fr;
    }

    .hero-poster-card {
        display: none;
    }

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

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

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

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

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

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

    .hero-slide {
        padding: 28px;
    }

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

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

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

    .rank-row .primary-btn {
        grid-column: 1 / -1;
        justify-content: center;
        text-align: center;
    }

    .toolbar,
    .section-head,
    .player-info,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

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

@media (max-width: 560px) {
    main,
    .nav-wrap,
    .footer-grid,
    .footer-bottom {
        width: min(100% - 22px, 1240px);
    }

    .brand-mark {
        width: 32px;
        height: 32px;
    }

    .hero-carousel,
    .hero-slides {
        min-height: 620px;
        border-radius: 20px;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 38px;
    }

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

    .search-hero form {
        border-radius: 22px;
    }

    .search-hero button,
    .search-hero input {
        width: 100%;
    }

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

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

    .rank-number {
        width: 100%;
    }

    .rank-thumb {
        height: 220px;
    }

    .content-panel,
    .side-panel {
        padding: 20px;
    }
}
