:root {
    --bg: #070812;
    --panel: #11131f;
    --panel-2: #171a29;
    --text: #f7f7fb;
    --muted: #a9adbe;
    --line: rgba(255, 255, 255, 0.1);
    --accent: #ff4d67;
    --accent-2: #ff8a4c;
    --radius: 18px;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

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

button,
input {
    font: inherit;
}

button {
    color: inherit;
}

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

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 8, 18, 0.9);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1440px, calc(100% - 40px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    position: relative;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 10px 30px rgba(255, 77, 103, 0.3);
}

.brand-mark::before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 3px;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 11px solid white;
}

.brand-mark i {
    position: absolute;
    width: 7px;
    height: 7px;
    right: -2px;
    top: -2px;
    border-radius: 50%;
    background: #ffe36f;
}

.brand-name {
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 3px;
    overflow: auto;
    scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
    display: none;
}

.nav-link {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 11px;
    border-radius: 12px;
    color: #c9ccda;
    font-size: 0.92rem;
    white-space: nowrap;
}

.nav-link span {
    color: #ff637a;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.nav-blue span { color: #70a8ff; }
.nav-pink span { color: #ff72bd; }
.nav-violet span { color: #ab8cff; }
.nav-orange span { color: #ff974f; }
.nav-yellow span { color: #ffd45d; }
.nav-green span { color: #62d6a6; }
.nav-cyan span { color: #61d6e5; }

.search-open,
.menu-toggle {
    border: 1px solid var(--line);
    background: #171925;
    border-radius: 12px;
    cursor: pointer;
}

.search-open {
    height: 42px;
    margin-left: auto;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.menu-toggle {
    width: 44px;
    height: 42px;
    padding: 10px;
    display: none;
}

.menu-toggle span {
    height: 2px;
    display: block;
    margin: 4px 0;
    border-radius: 2px;
    background: white;
}

.hero {
    width: min(1480px, calc(100% - 32px));
    height: 620px;
    margin: 18px auto 0;
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #141522;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 6, 14, 0.97) 0%, rgba(5, 6, 14, 0.74) 44%, rgba(5, 6, 14, 0.12) 75%), linear-gradient(0deg, rgba(5, 6, 14, 0.76), transparent 45%);
}

.hero-content {
    position: absolute;
    left: clamp(28px, 6vw, 92px);
    top: 50%;
    width: min(650px, 58%);
    transform: translateY(-50%);
}

.status-label,
.eyebrow {
    display: inline-flex;
    margin: 0 0 12px;
    color: #ffb7c2;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.status-label {
    padding: 7px 12px;
    border: 1px solid rgba(255, 111, 133, 0.45);
    border-radius: 999px;
    background: rgba(255, 77, 103, 0.12);
}

.hero h1 {
    margin: 10px 0 12px;
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.hero-description {
    max-width: 610px;
    margin: 0;
    color: #e2e3eb;
    font-size: 1.08rem;
    line-height: 1.9;
}

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

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border-radius: 13px;
    font-weight: 800;
}

.button-primary {
    color: white;
    background: linear-gradient(135deg, var(--accent), #ff6d4a);
    box-shadow: 0 12px 32px rgba(255, 77, 103, 0.28);
}

.button-ghost {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(14, 15, 25, 0.56);
}

.hero-feature {
    position: absolute;
    right: 32px;
    bottom: 28px;
    width: min(340px, 30vw);
    padding: 18px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    background: rgba(10, 11, 19, 0.78);
    backdrop-filter: blur(14px);
}

.hero-feature-score {
    grid-row: 1 / 3;
    align-self: center;
    color: #ffe36f;
    font-size: 1.6rem;
    font-weight: 900;
}

.hero-feature span:not(.hero-feature-score) {
    color: var(--muted);
    font-size: 0.76rem;
}

.quick-bar,
.content-section,
.inner-main,
.article-main {
    width: min(1320px, calc(100% - 40px));
    margin-inline: auto;
}

.quick-bar {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--line);
}

.notice {
    color: var(--muted);
}

.notice span {
    margin-right: 12px;
    color: #ff8093;
    font-weight: 800;
}

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

.quick-links a {
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--panel);
    font-size: 0.88rem;
}

.content-section,
.listing-section,
.related-section {
    padding: 74px 0 6px;
}

.content-section + .content-section {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1.2;
}

.section-heading p:not(.eyebrow) {
    max-width: 690px;
    margin: 10px 0 0;
    color: var(--muted);
}

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

.media-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    transition: transform 180ms ease, border-color 180ms ease;
}

.media-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 111, 133, 0.42);
}

.card-media {
    height: 250px;
    display: block;
    position: relative;
    overflow: hidden;
    background: #202332;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.media-card:hover img {
    transform: scale(1.04);
}

.quality,
.score {
    position: absolute;
    top: 10px;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.quality {
    left: 10px;
    background: rgba(255, 77, 103, 0.86);
}

.score {
    right: 10px;
    color: #ffe36f;
    background: rgba(5, 6, 14, 0.78);
}

.card-body {
    height: 182px;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.card-meta,
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 0.76rem;
}

.card-meta span:not(:last-child)::after,
.article-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
}

.card-body h3 {
    margin: 10px 0 12px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 1rem;
    line-height: 1.55;
}

.card-actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.82rem;
}

.card-actions a {
    color: #ff91a2;
    font-weight: 800;
}

.collect-button {
    padding: 4px 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.app-banner {
    width: min(1320px, calc(100% - 40px));
    height: 210px;
    margin: 90px auto 0;
    padding: 36px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border-radius: 26px 26px 0 0;
    background: radial-gradient(circle at 80% 0%, rgba(255, 227, 111, 0.28), transparent 32%), linear-gradient(135deg, #ff4d67, #e23978 52%, #713c99);
}

.app-copy {
    display: flex;
    align-items: center;
    gap: 24px;
}

.app-icon {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.17);
    font-size: 1.8rem;
    font-weight: 900;
}

.app-banner .eyebrow {
    color: #ffe6eb;
    margin: 0;
}

.app-banner h2 {
    margin: 2px 0;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.app-banner p:not(.eyebrow) {
    margin: 0;
    color: #ffeef2;
}

.button-light {
    flex: 0 0 auto;
    color: #a8214d;
    background: white;
}

.site-footer {
    padding: 58px max(20px, calc((100% - 1240px) / 2)) 24px;
    background: #05060c;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 58px;
}

.footer-brand p {
    max-width: 440px;
    color: var(--muted);
}

.brand-footer {
    margin-bottom: 18px;
}

.footer-grid h3 {
    margin: 2px 0 16px;
    font-size: 1rem;
}

.footer-grid > div:not(.footer-brand) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
}

.footer-grid > div:not(.footer-brand) a,
.footer-grid > div:not(.footer-brand) span {
    color: var(--muted);
    font-size: 0.9rem;
}

.copyright {
    margin-top: 42px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    color: #777c90;
    font-size: 0.86rem;
}

.search-panel {
    position: fixed;
    z-index: 100;
    inset: 0;
    padding: 8vh 20px;
    background: rgba(3, 4, 10, 0.84);
    backdrop-filter: blur(16px);
}

.search-panel[hidden] {
    display: none;
}

.search-dialog {
    width: min(720px, 100%);
    max-height: 84vh;
    margin: 0 auto;
    padding: 34px;
    overflow: auto;
    position: relative;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #121421;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.search-close {
    position: absolute;
    top: 16px;
    right: 18px;
    border: 0;
    background: transparent;
    font-size: 1.8rem;
    cursor: pointer;
}

.search-dialog label {
    display: block;
    margin-bottom: 10px;
    font-size: 1.35rem;
    font-weight: 800;
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    min-width: 0;
    height: 52px;
    flex: 1;
    padding: 0 16px;
    color: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: none;
    background: #080914;
}

.search-box input:focus {
    border-color: #ff6f85;
}

.search-submit {
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    background: var(--accent);
    cursor: pointer;
}

.hot-search {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.hot-search span {
    color: var(--muted);
}

.hot-search button {
    padding: 3px 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.search-results {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.search-result {
    padding: 12px 14px;
    border-radius: 12px;
    background: #1b1e2d;
}

.search-result a {
    display: block;
    font-weight: 800;
}

.toast {
    position: fixed;
    z-index: 120;
    left: 50%;
    bottom: 28px;
    padding: 10px 16px;
    border-radius: 10px;
    background: white;
    color: #151522;
    transform: translate(-50%, 20px);
    opacity: 0;
    pointer-events: none;
    transition: 180ms ease;
}

.toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

.inner-main,
.article-main {
    padding-top: 28px;
}

.breadcrumb {
    min-height: 42px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 0.88rem;
}

.breadcrumb a:hover {
    color: white;
}

.category-hero {
    min-height: 320px;
    margin-top: 18px;
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: radial-gradient(circle at 85% 35%, rgba(255, 77, 103, 0.22), transparent 25%), linear-gradient(135deg, #151724, #0d0f19);
}

.category-hero > div:first-child {
    max-width: 770px;
}

.category-hero h1 {
    margin: 0;
    font-size: clamp(2.7rem, 6vw, 5rem);
    line-height: 1.1;
}

.category-hero p:not(.eyebrow) {
    margin: 18px 0 0;
    color: #c6c9d5;
    font-size: 1.05rem;
}

.category-symbol {
    width: 150px;
    height: 150px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 42px;
    background: rgba(255, 255, 255, 0.06);
    color: #ff7087;
    font-size: 4rem;
}

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

.listing-grid .card-media {
    height: 300px;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 860px) 320px;
    justify-content: space-between;
    gap: 64px;
    margin-top: 28px;
}

.article-header h1 {
    margin: 0 0 20px;
    font-size: clamp(2.1rem, 5vw, 4rem);
    line-height: 1.18;
}

.article-cover {
    margin: 34px 0;
}

.article-cover img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 24px;
}

.article-cover figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.82rem;
}

.article-lead {
    margin: 0 0 38px;
    padding: 24px;
    border-left: 4px solid var(--accent);
    background: var(--panel);
    color: #e5e6ed;
    font-size: 1.08rem;
}

.article-section {
    margin: 42px 0;
}

.article-section h2 {
    margin: 0 0 14px;
    font-size: 1.6rem;
}

.article-section p {
    margin: 0;
    color: #c9ccda;
    font-size: 1.03rem;
    line-height: 2;
}

.article-note {
    margin: 42px 0;
    padding: 22px 24px;
    border: 1px solid rgba(255, 227, 111, 0.22);
    border-radius: 16px;
    background: rgba(255, 227, 111, 0.06);
}

.article-note strong {
    color: #ffe36f;
}

.article-note p {
    margin: 6px 0 0;
    color: var(--muted);
}

.article-aside {
    position: relative;
}

.aside-box {
    position: sticky;
    top: 100px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--panel);
}

.aside-box h2 {
    margin: 0;
}

.aside-box p:not(.eyebrow) {
    color: var(--muted);
}

.aside-box a {
    color: #ff91a2;
    font-weight: 800;
}

.article-pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.article-pager a {
    min-height: 100px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
}

.article-pager a:last-child {
    text-align: right;
}

.article-pager span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
}

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

.three-grid .card-media {
    height: 320px;
}

.home-page .content-section {
    border-radius: 26px;
}

.home-page .content-section .media-card {
    position: relative;
}

.featured {
    margin-top: 72px;
    padding: 42px;
    background: radial-gradient(circle at 85% 15%, rgba(255, 77, 103, 0.2), transparent 28%), linear-gradient(145deg, #171522, #0c0e18);
}

.featured .card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 250px;
}

.featured .media-card {
    height: 250px;
}

.featured .media-card.card-wide {
    height: 518px;
    grid-column: span 2;
    grid-row: span 2;
}

.featured .card-media {
    width: 100%;
    height: 100%;
}

.featured .card-body {
    position: absolute;
    z-index: 2;
    inset: auto 0 0;
    height: auto;
    min-height: 128px;
    justify-content: flex-end;
    background: linear-gradient(0deg, rgba(5, 6, 14, 0.98), rgba(5, 6, 14, 0.76) 68%, transparent);
}

.featured .card-wide .card-body {
    min-height: 190px;
    padding: 26px;
}

.featured .card-wide .card-body h3 {
    font-size: 1.45rem;
}

.featured .card-actions {
    display: none;
}

.shorts {
    padding-inline: 0;
}

.shorts .section-heading {
    padding-left: 24px;
    border-left: 4px solid #ff8a4c;
}

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

.shorts .media-card {
    height: 210px;
    display: flex;
    border-radius: 14px;
}

.shorts .card-media {
    width: 42%;
    height: 210px;
    flex: 0 0 auto;
}

.shorts .card-body {
    width: 58%;
    height: 210px;
    padding: 18px 15px;
}

.shorts .card-actions {
    align-items: flex-start;
    flex-direction: column;
}

.updates {
    padding: 46px 42px;
    border: 1px solid rgba(97, 214, 229, 0.16);
    background: linear-gradient(135deg, rgba(23, 36, 47, 0.86), rgba(10, 13, 22, 0.9));
}

.updates .section-heading {
    align-items: end;
}

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

.updates .media-card {
    height: 160px;
    display: flex;
    border: 0;
    border-left: 3px solid #61d6e5;
    border-radius: 0 14px 14px 0;
    background: rgba(255, 255, 255, 0.045);
}

.updates .card-media {
    width: 150px;
    height: 160px;
    flex: 0 0 auto;
}

.updates .card-body {
    height: 160px;
    flex: 1;
}

.movies {
    padding-top: 80px;
    border-radius: 0;
}

.movies .section-heading {
    max-width: 720px;
}

.movies .card-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.movies .media-card {
    height: 432px;
    background: #10111a;
}

.movies .card-media {
    height: 250px;
}

.movies .card-body {
    height: 182px;
}

.series {
    padding: 44px;
    background: radial-gradient(circle at 10% 0%, rgba(112, 168, 255, 0.18), transparent 30%), #0e1320;
}

.series .section-heading {
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(112, 168, 255, 0.18);
}

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

.series .media-card {
    height: 360px;
}

.series .card-media {
    height: 178px;
}

.series .card-body {
    height: 182px;
}

.variety .section-heading {
    justify-content: center;
    text-align: center;
}

.variety .section-heading p:not(.eyebrow) {
    margin-inline: auto;
}

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

.variety .media-card {
    height: 300px;
    display: grid;
    grid-template-columns: 46% 54%;
    border-radius: 24px;
}

.variety .card-media {
    width: 100%;
    height: 300px;
}

.variety .card-body {
    width: 100%;
    height: 300px;
    padding: 28px;
    justify-content: center;
}

.variety .card-body h3 {
    font-size: 1.3rem;
}

.variety .card-actions {
    margin-top: 22px;
}

.ranking {
    padding: 46px 42px;
    background: linear-gradient(145deg, rgba(255, 212, 93, 0.11), rgba(17, 19, 31, 0.94) 46%);
}

.ranking .card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    counter-reset: ranking-card;
}

.ranking .media-card {
    height: 160px;
    display: flex;
    counter-increment: ranking-card;
    overflow: visible;
}

.ranking .media-card::before {
    content: counter(ranking-card, decimal-leading-zero);
    position: absolute;
    z-index: 3;
    left: -8px;
    top: -12px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #17130a;
    background: #ffd45d;
    font-weight: 900;
    box-shadow: 0 8px 22px rgba(255, 212, 93, 0.25);
}

.ranking .card-media {
    width: 110px;
    height: 158px;
    flex: 0 0 auto;
    border-radius: 17px 0 0 17px;
}

.ranking .card-body {
    height: 158px;
    flex: 1;
    padding: 15px 13px;
}

.ranking .card-actions {
    display: none;
}

.guides {
    padding-top: 74px;
    border-top: 1px dashed rgba(171, 140, 255, 0.45);
    border-radius: 0;
}

.guides .section-heading {
    width: min(680px, 100%);
    margin-left: auto;
    text-align: right;
}

.guides .section-heading p:not(.eyebrow) {
    margin-left: auto;
}

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

.guides .media-card {
    height: 330px;
    display: flex;
    flex-direction: column-reverse;
    background: linear-gradient(180deg, #18172a, #11131f);
}

.guides .card-media {
    width: 100%;
    height: 120px;
    flex: 0 0 auto;
}

.guides .card-body {
    width: 100%;
    height: 210px;
    padding: 22px;
}

.guides .card-body h3 {
    font-size: 1.08rem;
}

@media (max-width: 1180px) {
    .main-nav {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        max-height: 0;
        padding: 0 20px;
        flex-wrap: wrap;
        overflow: hidden;
        background: #090a13;
        transition: max-height 220ms ease, padding 220ms ease;
    }

    .main-nav.open {
        max-height: 360px;
        padding-block: 16px;
        border-bottom: 1px solid var(--line);
    }

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

    .search-open {
        margin-left: 0;
    }

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

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

    .shorts .card-grid,
    .updates .card-grid,
    .ranking .card-grid,
    .guides .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .article-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 36px;
    }
}

@media (max-width: 820px) {
    .hero {
        height: 580px;
    }

    .hero-shade {
        background: linear-gradient(90deg, rgba(5, 6, 14, 0.94), rgba(5, 6, 14, 0.45)), linear-gradient(0deg, rgba(5, 6, 14, 0.9), transparent 60%);
    }

    .hero-content {
        width: calc(100% - 56px);
    }

    .hero-feature {
        display: none;
    }

    .quick-bar {
        padding: 18px 0;
        align-items: flex-start;
        flex-direction: column;
    }

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

    .featured .card-grid,
    .shorts .card-grid,
    .updates .card-grid,
    .movies .card-grid,
    .series .card-grid,
    .variety .card-grid,
    .ranking .card-grid,
    .guides .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .featured .card-grid {
        grid-auto-rows: 280px;
    }

    .featured .media-card,
    .featured .media-card.card-wide {
        height: 280px;
        grid-row: auto;
    }

    .featured .media-card.card-wide {
        grid-column: span 2;
    }

    .shorts .media-card {
        height: 220px;
    }

    .shorts .card-media,
    .shorts .card-body {
        height: 220px;
    }

    .app-banner {
        height: 240px;
        padding: 28px;
    }

    .app-icon {
        display: none;
    }

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

    .category-hero {
        min-height: 280px;
        padding: 34px;
    }

    .category-symbol {
        width: 100px;
        height: 100px;
        border-radius: 28px;
        font-size: 2.8rem;
    }

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

    .article-aside {
        order: -1;
    }

    .aside-box {
        position: static;
    }

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

@media (max-width: 560px) {
    .header-inner,
    .quick-bar,
    .content-section,
    .inner-main,
    .article-main,
    .app-banner {
        width: min(100% - 24px, 1320px);
    }

    .header-inner {
        gap: 8px;
    }

    .brand-name {
        font-size: 1rem;
    }

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

    .search-open {
        width: 42px;
        padding: 0;
        justify-content: center;
        font-size: 0;
    }

    .search-open span {
        font-size: 1.1rem;
    }

    .hero {
        width: calc(100% - 16px);
        height: 570px;
        margin-top: 8px;
        border-radius: 20px;
    }

    .hero-content {
        left: 22px;
        width: calc(100% - 44px);
    }

    .hero h1 {
        font-size: 3.8rem;
    }

    .hero-description {
        font-size: 0.96rem;
        line-height: 1.75;
    }

    .hero-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .content-section,
    .listing-section,
    .related-section {
        padding-top: 52px;
    }

    .card-grid,
    .listing-grid,
    .three-grid {
        grid-template-columns: 1fr;
    }

    .featured .card-grid,
    .shorts .card-grid,
    .updates .card-grid,
    .movies .card-grid,
    .series .card-grid,
    .variety .card-grid,
    .ranking .card-grid,
    .guides .card-grid {
        grid-template-columns: 1fr;
    }

    .featured,
    .updates,
    .series,
    .ranking {
        padding: 28px 18px;
    }

    .featured .media-card.card-wide {
        grid-column: span 1;
    }

    .variety .media-card {
        height: 270px;
        grid-template-columns: 44% 56%;
    }

    .variety .card-media,
    .variety .card-body {
        height: 270px;
    }

    .variety .card-body {
        padding: 20px;
    }

    .guides .section-heading {
        text-align: left;
    }

    .guides .section-heading p:not(.eyebrow) {
        margin-left: 0;
    }

    .card-media,
    .listing-grid .card-media,
    .three-grid .card-media {
        height: 330px;
    }

    .app-banner {
        height: 310px;
        padding: 28px 22px;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
    }

    .app-banner .button {
        width: 100%;
    }

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

    .category-hero {
        min-height: 340px;
        padding: 26px;
        align-items: flex-start;
        flex-direction: column-reverse;
    }

    .category-symbol {
        width: 72px;
        height: 72px;
        border-radius: 20px;
        font-size: 2rem;
    }

    .article-cover img {
        height: 300px;
    }

    .article-pager {
        grid-template-columns: 1fr;
    }

    .article-pager a:last-child {
        text-align: left;
    }

    .search-dialog {
        padding: 28px 20px;
    }
}
