:root {
    --blue: #2563eb;
    --cyan: #06b6d4;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --soft: #f8fafc;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 12px 30px rgba(37, 99, 235, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #f8fbff 0%, #eef7ff 42%, #ffffff 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

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

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

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 14px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.28);
}

.brand-text,
.footer-brand {
    font-size: 25px;
    background: linear-gradient(120deg, var(--blue), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link,
.mobile-link {
    color: #334155;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--blue);
}

.header-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    width: min(360px, 34vw);
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f8fafc;
    overflow: hidden;
}

.header-search input,
.mobile-search input,
.toolbar input,
.search-panel input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
}

.header-search input {
    padding: 11px 16px;
}

.header-search button,
.mobile-search button,
.search-panel button {
    border: 0;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    padding: 11px 18px;
}

.menu-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 4px;
    background: var(--ink);
}

.mobile-nav {
    display: none;
    padding: 14px 22px 20px;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

.mobile-nav.open {
    display: grid;
    gap: 14px;
}

.mobile-search {
    display: flex;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}

.mobile-search input {
    padding: 12px 14px;
}

.quick-strip {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 22px 12px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
}

.quick-strip a,
.topic-links a,
.detail-tags a,
.tag-row span,
.hero-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.quick-strip a,
.topic-links a,
.detail-tags a {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
    padding: 7px 12px;
}

main {
    min-height: 70vh;
}

.hero {
    position: relative;
    min-height: calc(100vh - 92px);
    overflow: hidden;
    background: #07111f;
}

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

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

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(4px) saturate(1.12);
    transform: scale(1.04);
    opacity: 0.72;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 74% 26%, rgba(6, 182, 212, 0.35), transparent 30%),
        linear-gradient(90deg, rgba(7, 17, 31, 0.96) 0%, rgba(15, 23, 42, 0.76) 46%, rgba(15, 23, 42, 0.34) 100%),
        linear-gradient(0deg, rgba(7, 17, 31, 1) 0%, rgba(7, 17, 31, 0.2) 54%, rgba(7, 17, 31, 0.84) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 92px);
    max-width: 1280px;
    margin: 0 auto;
    padding: 70px 22px 150px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: center;
    gap: 58px;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 12px;
    color: #bfdbfe;
    border: 1px solid rgba(191, 219, 254, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
    max-width: 820px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 1.02;
    font-weight: 1000;
    letter-spacing: -0.08em;
}

.hero-copy p {
    max-width: 720px;
    margin: 24px 0 0;
    color: rgba(226, 232, 240, 0.92);
    font-size: clamp(17px, 2.2vw, 22px);
}

.hero-tags,
.tag-row,
.topic-links,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

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

.hero-tags span,
.tag-row span {
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.13);
    padding: 7px 12px;
}

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

.primary-btn,
.ghost-btn,
.text-btn,
.section-link,
.toolbar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    padding: 13px 22px;
    box-shadow: 0 20px 38px rgba(37, 99, 235, 0.32);
}

.ghost-btn {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    backdrop-filter: blur(12px);
}

.primary-btn:hover,
.ghost-btn:hover,
.text-btn:hover,
.section-link:hover,
.toolbar a:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 30px;
    overflow: hidden;
    min-height: 520px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
}

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

.hero-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 46px;
    height: 46px;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    color: #ffffff;
    font-size: 34px;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(12px);
}

.hero-arrow.prev {
    left: 24px;
}

.hero-arrow.next {
    right: 24px;
}

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

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

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

.hero-rail {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 22px;
    width: min(980px, calc(100% - 44px));
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.hero-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
}

.hero-mini img {
    width: 46px;
    height: 62px;
    border-radius: 12px;
    object-fit: cover;
}

.hero-mini span {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-weight: 800;
    line-height: 1.3;
}

.search-panel,
.content-section,
.hot-section,
.detail-layout,
.page-hero,
.site-footer {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 22px;
    padding-right: 22px;
}

.search-panel {
    margin-top: 34px;
    padding-top: 24px;
    padding-bottom: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 26px;
    align-items: center;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.search-panel h2,
.section-heading h2,
.category-large-card h2,
.side-card h2,
.detail-article h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
    font-weight: 1000;
    letter-spacing: -0.04em;
}

.search-panel p,
.section-heading p,
.category-large-card p,
.page-hero p,
.movie-info p,
.detail-article p,
.site-footer p {
    color: var(--muted);
}

.search-panel form {
    display: flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: #f8fafc;
}

.search-panel input {
    padding: 15px 18px;
}

.content-section,
.hot-section {
    padding-top: 64px;
}

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

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

.section-link,
.toolbar a,
.text-btn {
    color: var(--blue);
    background: rgba(37, 99, 235, 0.08);
    padding: 10px 15px;
}

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

.category-card {
    min-height: 170px;
    padding: 22px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at right top, rgba(6, 182, 212, 0.18), transparent 34%),
        linear-gradient(135deg, #ffffff, #f1f7ff);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.movie-card:hover,
.category-large-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-card span {
    display: block;
    color: var(--ink);
    font-size: 20px;
    font-weight: 1000;
}

.category-card p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
}

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(6, 182, 212, 0.18));
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.year-badge,
.poster-play {
    position: absolute;
    color: #ffffff;
    font-weight: 900;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(10px);
}

.year-badge {
    top: 10px;
    left: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
}

.poster-play {
    right: 10px;
    bottom: 10px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.movie-info {
    padding: 14px;
}

.movie-title {
    display: block;
    overflow: hidden;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.35;
    font-weight: 1000;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.movie-meta {
    margin-top: 6px;
    display: flex;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
}

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

.tag-row span {
    color: var(--blue);
    background: rgba(37, 99, 235, 0.08);
    padding: 5px 8px;
}

.hot-section {
    margin-top: 64px;
    padding-top: 42px;
    padding-bottom: 48px;
    border-radius: 30px;
    color: #ffffff;
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.22), transparent 26%),
        linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 25px 70px rgba(37, 99, 235, 0.25);
}

.hot-section .section-heading h2,
.hot-section .section-heading p,
.hot-section .section-link {
    color: #ffffff;
}

.hot-section .section-link {
    background: rgba(255, 255, 255, 0.18);
}

.rank-grid {
    display: grid;
    gap: 12px;
}

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

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

.rank-item {
    min-width: 0;
    display: grid;
    grid-template-columns: auto 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.hot-section .rank-item {
    background: rgba(255, 255, 255, 0.13);
    color: #ffffff;
    box-shadow: none;
    backdrop-filter: blur(12px);
}

.rank-num,
.rank-dot {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 1000;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.rank-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.rank-item img {
    width: 58px;
    height: 76px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-title {
    overflow: hidden;
    font-weight: 1000;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-type {
    color: #64748b;
    font-size: 13px;
    white-space: nowrap;
}

.hot-section .rank-type {
    color: rgba(255, 255, 255, 0.76);
}

.page-hero {
    margin-top: 34px;
    min-height: 310px;
    display: flex;
    align-items: center;
    border-radius: 30px;
    color: #ffffff;
    background:
        radial-gradient(circle at 78% 18%, rgba(6, 182, 212, 0.36), transparent 30%),
        linear-gradient(135deg, #0f172a, #1e40af 54%, #0891b2);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.04;
    font-weight: 1000;
    letter-spacing: -0.07em;
}

.page-hero p {
    max-width: 760px;
    color: rgba(226, 232, 240, 0.9);
    font-size: 18px;
}

.topic-links {
    margin-top: 22px;
}

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

.category-large-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-cover {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    min-height: 180px;
}

.category-cover img {
    width: 100%;
    height: 100%;
    min-height: 86px;
    border-radius: 12px;
    object-fit: cover;
}

.inline-links {
    margin: 12px 0 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inline-links a {
    max-width: 150px;
    overflow: hidden;
    color: var(--blue);
    font-size: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.toolbar {
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.toolbar input {
    min-height: 50px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.detail-layout {
    padding-top: 34px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
}

.breadcrumbs {
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    color: #64748b;
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--blue);
    font-weight: 800;
}

.watch-player {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.26);
    aspect-ratio: 16 / 9;
}

.watch-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #020617;
}

.watch-cover {
    position: absolute;
    inset: 0;
    z-index: 4;
    border: 0;
    color: #ffffff;
    display: grid;
    place-items: center;
    gap: 12px;
    padding: 28px;
    text-align: center;
    background:
        radial-gradient(circle at center, rgba(37, 99, 235, 0.22), transparent 34%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.35), rgba(2, 6, 23, 0.82));
}

.watch-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.watch-play-icon {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    font-size: 28px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.38);
}

.watch-cover strong {
    max-width: 720px;
    font-size: clamp(26px, 4vw, 48px);
    line-height: 1.12;
}

.watch-cover em {
    font-style: normal;
    font-weight: 900;
    color: #dbeafe;
}

.detail-article,
.side-card {
    margin-top: 22px;
    padding: 26px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.detail-article h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.08;
    font-weight: 1000;
    letter-spacing: -0.06em;
}

.detail-article .lead {
    color: #334155;
    font-size: 19px;
}

.detail-article h2 {
    margin-top: 28px;
    font-size: 26px;
}

.detail-tags {
    margin: 18px 0 4px;
}

.detail-side {
    min-width: 0;
}

.poster-card {
    margin-top: 38px;
}

.poster-card img {
    width: 100%;
    border-radius: 20px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.wide {
    width: 100%;
    margin-top: 16px;
}

.meta-list {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 10px 14px;
    margin: 14px 0 0;
}

.meta-list dt {
    color: #64748b;
    font-weight: 800;
}

.meta-list dd {
    margin: 0;
    color: var(--ink);
    font-weight: 800;
}

.side-rank .rank-item {
    grid-template-columns: 30px 48px minmax(0, 1fr);
}

.side-rank .rank-type {
    display: none;
}

.side-rank .rank-item img {
    width: 48px;
    height: 64px;
}

.related-section {
    padding-bottom: 80px;
}

.site-footer {
    margin-top: 70px;
    padding-top: 52px;
    padding-bottom: 30px;
    color: #94a3b8;
    background: #0f172a;
    max-width: none;
}

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

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

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

.copyright {
    max-width: 1280px;
    margin: 34px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    font-size: 14px;
}

[data-card].hidden {
    display: none;
}

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

    .menu-toggle {
        display: flex;
    }

    .header-search {
        width: min(420px, 48vw);
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-poster {
        display: none;
    }

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

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

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

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

@media (max-width: 820px) {
    .topbar {
        height: 62px;
        gap: 12px;
    }

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

    .header-search {
        display: none;
    }

    .quick-strip {
        padding-bottom: 10px;
    }

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

    .hero-content {
        padding-top: 54px;
        padding-bottom: 180px;
    }

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

    .hero-arrow {
        display: none;
    }

    .hero-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        bottom: 24px;
    }

    .hero-mini:nth-child(n+5) {
        display: none;
    }

    .hero-dots {
        bottom: 140px;
    }

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

    .category-grid,
    .category-list-grid,
    .rank-grid.compact,
    .rank-grid.full,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

    .section-heading,
    .toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .page-hero {
        min-height: 260px;
    }

    .rank-item {
        grid-template-columns: auto 54px minmax(0, 1fr);
    }

    .rank-type {
        display: none;
    }
}

@media (max-width: 520px) {
    .topbar,
    .quick-strip,
    .search-panel,
    .content-section,
    .hot-section,
    .detail-layout,
    .page-hero {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-content {
        padding-left: 16px;
        padding-right: 16px;
    }

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

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

    .movie-info {
        padding: 12px;
    }

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

    .movie-info p {
        display: none;
    }

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