:root {
    color-scheme: dark;
    --bg-deep: #020617;
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --bg-soft: rgba(15, 23, 42, 0.82);
    --line: rgba(148, 163, 184, 0.18);
    --text-main: #ffffff;
    --text-muted: #cbd5e1;
    --text-soft: #94a3b8;
    --cyan: #06b6d4;
    --cyan-soft: rgba(6, 182, 212, 0.16);
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 8%, rgba(6, 182, 212, 0.14), transparent 28rem),
        linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
    color: var(--text-main);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(14px);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(15, 23, 42, 0.96);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

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

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

.brand-text {
    font-size: 1.35rem;
    white-space: nowrap;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), #2563eb);
    box-shadow: 0 0 28px rgba(6, 182, 212, 0.48);
}

.brand-mark.small {
    width: 26px;
    height: 26px;
}

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

.brand-mark.small span {
    border-top-width: 5px;
    border-bottom-width: 5px;
    border-left-width: 8px;
}

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

.desktop-nav a,
.mobile-panel a {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
    color: #ffffff;
}

.header-search {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.9);
}

.header-search input,
.mobile-search input,
.filter-bar input,
.search-panel input {
    min-width: 0;
    border: 0;
    outline: none;
    color: #ffffff;
    background: transparent;
}

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

.header-search button,
.mobile-search button,
.search-panel button {
    border: 0;
    color: #ffffff;
    background: var(--cyan);
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.search-panel button:hover,
.primary-button:hover {
    background: #0891b2;
}

.mobile-menu-button {
    display: none;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: #ffffff;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0 18px;
    border-top: 1px solid var(--line);
}

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

.mobile-search {
    display: flex;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.82);
}

.mobile-search input {
    flex: 1;
    padding: 11px 14px;
}

main {
    padding-top: 68px;
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 560px;
    overflow: hidden;
    background: #020617;
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.88) 0%, rgba(2, 6, 23, 0.48) 42%, rgba(2, 6, 23, 0.08) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.3) 54%, rgba(2, 6, 23, 0.16) 100%);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding-bottom: 82px;
}

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

.hero-eyebrow,
.page-kicker,
.panel-kicker {
    margin: 0 0 10px;
    color: var(--cyan);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1,
.hero h2 {
    margin: 0 0 14px;
    font-size: clamp(2.4rem, 7vw, 5.2rem);
    line-height: 1;
    letter-spacing: -0.07em;
}

.hero h2 {
    font-size: clamp(2rem, 5vw, 4.2rem);
}

.hero p {
    max-width: 680px;
    margin: 0 0 22px;
    color: var(--text-muted);
    font-size: clamp(1rem, 2vw, 1.24rem);
    line-height: 1.72;
}

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

.hero-meta {
    margin-bottom: 24px;
}

.hero-meta span,
.detail-meta span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border: 1px solid rgba(6, 182, 212, 0.28);
    border-radius: 999px;
    color: #e0f2fe;
    background: rgba(6, 182, 212, 0.13);
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: var(--cyan);
}

.ghost-button {
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    background: rgba(0, 0, 0, 0.22);
}

.ghost-button:hover {
    border-color: rgba(6, 182, 212, 0.76);
    background: rgba(6, 182, 212, 0.16);
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-1px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.48);
    font-size: 2rem;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.74);
}

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

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

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

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
    width: 32px;
    background: var(--cyan);
}

.search-panel,
.page-main,
.site-footer,
.content-section {
    width: min(1180px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 460px);
    gap: 24px;
    align-items: center;
    margin-top: 36px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(30, 41, 59, 0.62);
    box-shadow: var(--shadow);
}

.search-panel h2 {
    margin: 0;
    font-size: clamp(1.45rem, 3vw, 2.2rem);
    line-height: 1.22;
}

.search-panel form {
    display: flex;
    overflow: hidden;
    border: 1px solid rgba(6, 182, 212, 0.24);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.7);
}

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

.search-panel button {
    padding-left: 22px;
    padding-right: 22px;
}

.content-section {
    margin-top: 58px;
}

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

.section-heading h2,
.site-footer h2,
.detail-article h2,
.player-section h2 {
    margin: 0;
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    line-height: 1.2;
}

.section-more {
    color: #67e8f9;
    font-weight: 700;
}

.section-intro {
    max-width: 760px;
    margin: -8px 0 24px;
    color: var(--text-soft);
    line-height: 1.75;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(30, 41, 59, 0.92);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    border-color: rgba(6, 182, 212, 0.44);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.44);
    transform: translateY(-4px) scale(1.015);
}

.poster-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: #0f172a;
}

.small .poster-frame {
    aspect-ratio: 16 / 9;
}

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

.movie-card:hover .poster-frame img {
    transform: scale(1.08);
}

.poster-mask {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.12));
    transition: opacity 0.25s ease;
}

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

.poster-play {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(6, 182, 212, 0.92);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.44);
}

.poster-badge,
.poster-score {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.68);
}

.poster-badge {
    top: 10px;
    right: 10px;
    color: #ffffff;
}

.poster-score {
    left: 10px;
    bottom: 10px;
    color: #facc15;
}

.movie-card-body {
    padding: 15px;
}

.movie-card h2,
.compact-card h2,
.rank-card h2 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.movie-card:hover h2,
.compact-card:hover h2,
.rank-card:hover h2 {
    color: #22d3ee;
}

.card-line {
    min-height: 42px;
    margin: 9px 0 12px;
    color: var(--text-soft);
    font-size: 0.9rem;
    line-height: 1.55;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    color: var(--text-soft);
    font-size: 0.82rem;
}

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

.category-tile {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(6, 182, 212, 0.18), transparent 44%),
        rgba(30, 41, 59, 0.78);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile.large {
    min-height: 240px;
}

.category-tile:hover {
    border-color: rgba(6, 182, 212, 0.52);
    transform: translateY(-4px);
}

.category-tile strong {
    font-size: 1.42rem;
}

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

.category-tile div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-tile span {
    max-width: 100%;
    overflow: hidden;
    padding: 5px 9px;
    border-radius: 999px;
    color: #cffafe;
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: rgba(6, 182, 212, 0.12);
}

.ranking-block {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.74);
}

.ranking-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ranking-list a {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.72);
}

.ranking-list span,
.rank-number {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #ffffff;
    font-weight: 900;
    background: var(--cyan);
}

.ranking-list strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-list em {
    color: #facc15;
    font-style: normal;
    font-weight: 900;
}

.page-main {
    padding-top: 110px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 44px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(6, 182, 212, 0.16), transparent 40%),
        rgba(30, 41, 59, 0.72);
    box-shadow: var(--shadow);
}

.page-hero.compact {
    margin-bottom: 34px;
}

.page-hero h1 {
    max-width: 850px;
    margin: 0;
    font-size: clamp(2rem, 5vw, 4.2rem);
    line-height: 1.08;
    letter-spacing: -0.06em;
}

.page-hero p:not(.page-kicker) {
    max-width: 780px;
    color: var(--text-muted);
    line-height: 1.75;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
    color: var(--text-soft);
    font-size: 0.94rem;
}

.breadcrumb a:hover {
    color: #22d3ee;
}

.filter-bar {
    display: grid;
    gap: 14px;
    margin: 0 0 30px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.74);
}

.filter-bar input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(6, 182, 212, 0.24);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.58);
}

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

.filter-chips button {
    border: 1px solid rgba(6, 182, 212, 0.24);
    border-radius: 999px;
    color: #dffbff;
    background: rgba(6, 182, 212, 0.12);
    padding: 8px 13px;
    cursor: pointer;
}

.filter-chips button:hover,
.filter-chips button.is-active {
    background: rgba(6, 182, 212, 0.34);
}

.empty-state {
    display: none;
    padding: 36px;
    text-align: center;
    color: var(--text-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.72);
}

.empty-state.is-visible {
    display: block;
}

.searchable-card.is-hidden {
    display: none;
}

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

.rank-card a {
    display: grid;
    grid-template-columns: 48px 160px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(30, 41, 59, 0.82);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-card a:hover {
    border-color: rgba(6, 182, 212, 0.44);
    transform: translateY(-2px);
}

.rank-card img {
    width: 160px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
}

.rank-card p {
    margin: 8px 0 12px;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-card strong:last-child {
    color: #facc15;
    font-size: 1.3rem;
}

.detail-main {
    max-width: 1180px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 32px;
    align-items: center;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(6, 182, 212, 0.14), transparent 42%),
        rgba(30, 41, 59, 0.72);
    box-shadow: var(--shadow);
}

.detail-cover {
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.34);
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.detail-info h1 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.1;
    letter-spacing: -0.06em;
}

.detail-line {
    margin: 0 0 20px;
    color: var(--text-muted);
    font-size: 1.12rem;
    line-height: 1.78;
}

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

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.player-section,
.detail-article {
    margin-top: 42px;
}

.player-section h2,
.detail-article h2 {
    margin-bottom: 18px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(6, 182, 212, 0.22);
    border-radius: 22px;
    background: #000000;
    box-shadow: var(--shadow);
}

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

.player-start {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.28), rgba(0, 0, 0, 0.58));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.big-play {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.92);
    box-shadow: 0 0 34px rgba(6, 182, 212, 0.48);
    font-size: 2.2rem;
}

.player-start strong {
    font-size: 1.15rem;
}

.detail-article {
    display: grid;
    gap: 18px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.72);
}

.detail-article p {
    margin: 0 0 12px;
    color: var(--text-muted);
    font-size: 1.03rem;
    line-height: 1.86;
}

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

.compact-card a {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 14px;
    height: 100%;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(30, 41, 59, 0.82);
}

.compact-card img {
    width: 132px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
}

.compact-card p {
    margin: 8px 0 0;
    color: var(--text-soft);
    font-size: 0.86rem;
}

.site-footer {
    margin-top: 80px;
    padding: 40px 0 24px;
    border-top: 1px solid var(--line);
    color: var(--text-muted);
}

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

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

.site-footer p {
    max-width: 460px;
    line-height: 1.7;
}

.site-footer h2 {
    margin-bottom: 14px;
    font-size: 1.05rem;
}

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

.site-footer a:hover {
    color: #22d3ee;
}

.footer-bottom {
    margin-top: 32px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--text-soft);
    font-size: 0.9rem;
}

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

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

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

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

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

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

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

    .hero {
        min-height: 620px;
    }

    .hero-content {
        padding-bottom: 92px;
    }

    .hero-arrow {
        display: none;
    }

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

    .medium-grid,
    .small-grid,
    .category-grid,
    .ranking-list,
    .compact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .detail-cover {
        max-width: 360px;
    }

    .rank-card a {
        grid-template-columns: 40px 112px 1fr;
    }

    .rank-card strong:last-child {
        grid-column: 3;
    }

    .rank-card img {
        width: 112px;
    }

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

@media (max-width: 560px) {
    .header-inner {
        width: min(100% - 24px, 1180px);
    }

    .brand-text {
        font-size: 1.08rem;
    }

    .hero {
        height: 76vh;
        min-height: 620px;
    }

    .hero-content,
    .search-panel,
    .page-main,
    .site-footer,
    .content-section {
        width: min(100% - 24px, 1180px);
    }

    .hero p {
        -webkit-line-clamp: 3;
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
    }

    .search-panel,
    .page-hero,
    .detail-layout,
    .detail-article,
    .ranking-block {
        padding: 18px;
        border-radius: 18px;
    }

    .medium-grid,
    .small-grid,
    .category-grid,
    .ranking-list,
    .compact-grid {
        grid-template-columns: 1fr;
    }

    .compact-card a {
        grid-template-columns: 110px 1fr;
    }

    .compact-card img {
        width: 110px;
    }

    .rank-card a {
        grid-template-columns: 38px 96px 1fr;
        gap: 12px;
    }

    .rank-card img {
        width: 96px;
    }
}
