:root {
    color-scheme: light;
    --rose: #f43f5e;
    --rose-deep: #be123c;
    --pink: #ec4899;
    --orange: #f97316;
    --yellow: #facc15;
    --ink: #111827;
    --muted: #667085;
    --line: rgba(15, 23, 42, 0.08);
    --paper: #ffffff;
    --soft: #fff1f2;
    --soft-2: #fff7ed;
    --shadow: 0 20px 50px rgba(136, 19, 55, 0.14);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #fff1f2 0%, #fdf2f8 48%, #fff7ed 100%);
    color: var(--ink);
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--rose), var(--pink), var(--orange));
    color: #fff;
    box-shadow: 0 16px 40px rgba(190, 18, 60, 0.22);
}

.nav-shell {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

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

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-weight: 700;
    white-space: nowrap;
}

.main-nav a {
    opacity: 0.95;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.main-nav a:hover {
    color: #fef08a;
    opacity: 1;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    padding: 10px;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: #fff;
    border-radius: 999px;
}

.hero-carousel {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    padding: 58px 0 46px;
    background: linear-gradient(120deg, #f43f5e 0%, #ec4899 48%, #f97316 100%);
    color: #fff;
}

.hero-orb {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    filter: blur(22px);
}

.hero-orb-one {
    left: -110px;
    top: 38px;
}

.hero-orb-two {
    right: -90px;
    bottom: 20px;
    background: rgba(250, 204, 21, 0.25);
}

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

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    align-items: center;
    gap: 48px;
    padding: 46px;
    border-radius: 34px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px) scale(0.98);
    transition: opacity 0.45s ease, transform 0.45s ease;
    background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.84), rgba(136, 19, 55, 0.62)), var(--hero-image);
    background-size: cover;
    background-position: center;
    box-shadow: 0 35px 80px rgba(88, 28, 135, 0.24);
}

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

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

.hero-eyebrow,
.section-kicker,
.sub-hero span {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.08em;
    backdrop-filter: blur(10px);
}

.hero-copy h1,
.hero-copy h2 {
    margin: 14px 0 0;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy h1 {
    font-size: clamp(44px, 6vw, 76px);
}

.hero-copy h2 {
    font-size: clamp(34px, 4.4vw, 58px);
}

.hero-copy p {
    margin: 22px 0 0;
    max-width: 760px;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
}

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

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

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

.hero-tags span {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.btn-primary {
    background: #fff;
    color: var(--rose-deep);
    box-shadow: 0 16px 32px rgba(255, 255, 255, 0.2);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    backdrop-filter: blur(10px);
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.42);
    transform: rotate(2deg);
    transition: transform 0.25s ease;
}

.hero-poster:hover {
    transform: rotate(0deg) scale(1.03);
}

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

.hero-poster span,
.movie-rating {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(135deg, #facc15, #f97316);
    color: #111827;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(249, 115, 22, 0.3);
}

.hero-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.hero-prev,
.hero-next,
.hero-dot {
    border: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

.hero-prev,
.hero-next {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    font-size: 30px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    opacity: 0.65;
}

.hero-dot.is-active {
    width: 28px;
    background: #fff;
    opacity: 1;
}

.quick-panel {
    margin-top: -32px;
    position: relative;
    z-index: 3;
}

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

.quick-grid a {
    display: grid;
    gap: 5px;
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.quick-grid strong {
    color: var(--rose-deep);
    font-size: 20px;
}

.quick-grid span {
    color: var(--muted);
}

.page-section {
    padding: 76px 0;
}

.tinted {
    background: rgba(255, 255, 255, 0.55);
}

.tinted-soft {
    background: linear-gradient(135deg, rgba(255, 241, 242, 0.75), rgba(255, 247, 237, 0.85));
}

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

.section-kicker {
    background: linear-gradient(135deg, var(--rose), var(--orange));
    color: #fff;
}

.section-heading h2 {
    margin: 12px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
}

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

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--rose-deep);
    font-weight: 900;
}

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

.category-card {
    position: relative;
    min-height: 270px;
    overflow: hidden;
    border-radius: 28px;
    background: #111827;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.movie-card:hover,
.category-overview-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 70px rgba(136, 19, 55, 0.2);
}

.category-card img {
    width: 100%;
    height: 100%;
    min-height: 270px;
    object-fit: cover;
    opacity: 0.62;
    transition: transform 0.35s ease;
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-card div {
    position: absolute;
    inset: auto 0 0;
    padding: 22px;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.94), transparent);
    color: #fff;
}

.category-card h3 {
    margin: 0 0 8px;
    font-size: 24px;
}

.category-card p {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.84);
}

.category-card span,
.category-overview-copy strong {
    color: #fef08a;
    font-weight: 900;
}

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

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

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

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

.movie-card {
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card-link {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.movie-poster {
    position: relative;
    margin: 0;
    background: linear-gradient(135deg, #ffe4e6, #fed7aa);
    overflow: hidden;
}

.movie-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.movie-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px;
}

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--rose-deep);
    font-size: 12px;
    font-weight: 900;
}

.movie-card h3 {
    margin: 8px 0 8px;
    font-size: 19px;
    line-height: 1.25;
}

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

.movie-tags {
    margin-top: auto;
}

.movie-tags span {
    background: var(--soft);
    color: var(--rose-deep);
}

.movie-card-compact .movie-card-body {
    padding: 14px;
}

.movie-card-compact h3 {
    font-size: 17px;
}

.search-panel {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    padding: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.search-panel input {
    width: 100%;
    min-height: 48px;
    border: 0;
    outline: 0;
    padding: 0 18px;
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
}

.search-panel button {
    border: 0;
    border-radius: 999px;
    padding: 0 22px;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    color: #fff;
    font-weight: 900;
}

.ranking-list {
    list-style: none;
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
}

.ranking-list li a {
    display: grid;
    grid-template-columns: 58px 84px minmax(0, 1fr) 64px;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-list li a:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.rank-num {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    color: #fff;
    font-weight: 900;
}

.ranking-list img {
    width: 84px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 16px;
}

.ranking-list h3 {
    margin: 0 0 5px;
    font-size: 20px;
}

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

.ranking-list em {
    color: var(--rose-deep);
    font-style: normal;
    font-weight: 800;
    font-size: 13px;
}

.ranking-list strong {
    justify-self: end;
    color: var(--orange);
    font-size: 22px;
}

.sub-hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0;
    color: #fff;
    background: linear-gradient(120deg, var(--rose), var(--pink), var(--orange));
}

.sub-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.22), transparent 28%), radial-gradient(circle at 88% 70%, rgba(250, 204, 21, 0.24), transparent 30%);
}

.sub-hero .container {
    position: relative;
    z-index: 1;
}

.sub-hero h1 {
    margin: 16px 0 12px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.05;
}

.sub-hero p {
    max-width: 780px;
    margin: 0;
    font-size: 19px;
    color: rgba(255, 255, 255, 0.9);
}

.category-hero {
    background-image: linear-gradient(90deg, rgba(136, 19, 55, 0.9), rgba(249, 115, 22, 0.76)), var(--category-image);
    background-size: cover;
    background-position: center;
}

.sub-hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.sub-hero-links a {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-weight: 800;
}

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

.category-overview-card {
    overflow: hidden;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.93);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-collage {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 150px;
    overflow: hidden;
}

.category-collage img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.category-overview-copy {
    padding: 22px;
}

.category-overview-copy h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.category-overview-copy p {
    margin: 0 0 14px;
    color: var(--muted);
}

.sample-title-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.sample-title-list span {
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--rose-deep);
    font-size: 12px;
    font-weight: 800;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: #111827;
}

.detail-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.08);
}

.detail-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 38px;
    align-items: center;
    padding: 62px 0;
}

.detail-cover {
    margin: 0;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 800;
}

.breadcrumb a:hover {
    color: #fef08a;
}

.detail-title-block h1 {
    margin: 20px 0 16px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
}

.detail-title-block p {
    margin: 0 0 22px;
    max-width: 850px;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.88);
}

.detail-tags span {
    background: rgba(255, 255, 255, 0.17);
    color: #fff;
}

.detail-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.detail-facts span {
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-weight: 900;
}

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

.detail-content,
.detail-sidebar {
    display: grid;
    align-content: start;
    gap: 22px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.24);
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    cursor: pointer;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.34), rgba(15, 23, 42, 0.78));
    color: #fff;
    text-align: center;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-symbol {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 18px 42px rgba(244, 63, 94, 0.38);
    font-size: 32px;
    line-height: 1;
    padding-left: 5px;
}

.player-cover strong {
    max-width: 80%;
    font-size: clamp(22px, 4vw, 38px);
}

.player-cover em {
    font-style: normal;
    color: #fef08a;
    font-weight: 900;
}

.content-card,
.sidebar-card {
    border-radius: 28px;
    padding: 26px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.content-card h2,
.sidebar-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.content-card p {
    margin: 0;
    color: #344054;
    font-size: 17px;
    line-height: 1.9;
}

.sidebar-card dl {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 10px 14px;
    margin: 0;
}

.sidebar-card dt {
    color: var(--muted);
    font-weight: 800;
}

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

.sidebar-card a {
    color: var(--rose-deep);
}

.side-tags span {
    background: var(--soft);
    color: var(--rose-deep);
}

.prev-next-links {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.prev-next-links a {
    max-width: 48%;
    padding: 12px 16px;
    border-radius: 999px;
    background: #fff;
    color: var(--rose-deep);
    font-weight: 900;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.site-footer {
    background: linear-gradient(135deg, #111827, #1f2937 48%, #0f172a);
    color: #fff;
    padding: 54px 0 22px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 30px;
}

.footer-brand {
    font-size: 22px;
    margin-bottom: 16px;
}

.site-footer p {
    color: rgba(255, 255, 255, 0.68);
    margin: 0;
    max-width: 460px;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.72);
}

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 36px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.58);
}

@media (max-width: 1120px) {
    .main-nav {
        gap: 12px;
        font-size: 14px;
    }

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

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

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

    .main-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 14px;
        border-radius: 22px;
        background: linear-gradient(135deg, var(--rose-deep), var(--orange));
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 12px 14px;
        border-radius: 14px;
    }

    .main-nav a:hover {
        background: rgba(255, 255, 255, 0.12);
    }

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

    .hero-carousel {
        min-height: 760px;
        padding-top: 34px;
    }

    .hero-slides {
        min-height: 650px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        padding: 26px;
        gap: 24px;
    }

    .hero-poster {
        width: min(260px, 76vw);
        justify-self: center;
    }

    .quick-grid,
    .category-grid,
    .movie-grid,
    .feature-grid,
    .all-movie-grid,
    .related-grid,
    .category-overview-grid,
    .footer-grid,
    .detail-layout,
    .detail-hero-grid {
        grid-template-columns: 1fr;
    }

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

    .detail-hero-grid {
        padding: 42px 0;
    }

    .detail-cover {
        width: min(260px, 76vw);
    }

    .ranking-list li a {
        grid-template-columns: 46px 68px minmax(0, 1fr);
    }

    .ranking-list strong {
        grid-column: 3;
        justify-self: start;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .page-section {
        padding: 52px 0;
    }

    .hero-copy p,
    .detail-title-block p,
    .sub-hero p {
        font-size: 16px;
    }

    .hero-actions,
    .search-panel,
    .prev-next-links {
        flex-direction: column;
    }

    .search-panel {
        border-radius: 22px;
    }

    .search-panel button {
        min-height: 46px;
    }

    .prev-next-links a {
        max-width: none;
    }

    .ranking-list li a {
        grid-template-columns: 42px 64px minmax(0, 1fr);
        gap: 12px;
    }

    .ranking-list p {
        display: none;
    }
}
