:root {
    --sand-50: #faf8f3;
    --sand-100: #f1ece3;
    --sand-200: #e8ddc9;
    --stone-50: #f7f6f4;
    --stone-100: #eeebe6;
    --stone-200: #ddd8cf;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
    --rose-50: #fff1f2;
    --rose-100: #ffe4e6;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --purple-50: #faf5ff;
    --purple-100: #f3e8ff;
    --purple-600: #9333ea;
    --pink-500: #ec4899;
    --desert-100: #f9ede0;
    --desert-500: #d4844b;
    --shadow-sand: 0 10px 30px -5px rgba(184, 144, 89, 0.2);
    --shadow-desert: 0 20px 50px -12px rgba(212, 132, 75, 0.35);
    --radius-lg: 18px;
    --radius-xl: 26px;
    --header-height: 80px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--stone-800);
    background: var(--sand-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

img {
    display: block;
    max-width: 100%;
    background: var(--stone-200);
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 50;
    background: rgba(250, 248, 243, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(232, 221, 201, 0.75);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
    box-shadow: var(--shadow-sand);
    background: rgba(250, 248, 243, 0.98);
}

.nav-shell {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose-500), var(--purple-600));
    box-shadow: 0 12px 26px rgba(244, 63, 94, 0.28);
}

.brand-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.mini-icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    box-shadow: none;
}

.mini-icon svg {
    width: 16px;
    height: 16px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-copy strong {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--rose-600), var(--purple-600));
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

.brand-copy small {
    margin-top: 4px;
    font-size: 12px;
    color: var(--stone-600);
}

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

.nav-link {
    position: relative;
    font-size: 15px;
    font-weight: 700;
    color: var(--stone-700);
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--desert-500);
    transition: width 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--rose-600);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: var(--shadow-sand);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-button span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--stone-700);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-button.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-button.is-open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    padding: 10px 16px 18px;
    background: rgba(250, 248, 243, 0.98);
    border-top: 1px solid var(--sand-200);
}

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

.mobile-link {
    padding: 12px 16px;
    border-radius: 14px;
    font-weight: 700;
    color: var(--stone-700);
}

.mobile-link:hover,
.mobile-link.active {
    background: var(--desert-100);
    color: var(--rose-600);
}

.page-main {
    min-height: 60vh;
    padding-top: var(--header-height);
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 72px 0 118px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose-600), var(--purple-600) 55%, var(--pink-500));
}

.hero-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    filter: blur(72px);
    pointer-events: none;
}

.hero-glow-left {
    top: 28px;
    left: 6%;
}

.hero-glow-right {
    right: 8%;
    bottom: 40px;
    width: 460px;
    height: 460px;
}

.hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    color: inherit;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.plain-kicker {
    background: rgba(244, 63, 94, 0.12);
    color: var(--rose-600);
}

.light-kicker {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.hero-content h1 {
    width: min(960px, 100%);
    margin: 24px auto 18px;
    font-size: clamp(40px, 8vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero-content p {
    width: min(760px, 100%);
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(17px, 2.5vw, 22px);
}

.hero-search {
    width: min(680px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin: 30px auto 0;
    padding: 8px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(18px);
}

.hero-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    padding: 12px 16px;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.hero-search button,
.hero-slide-link,
.section-more,
.detail-category-link {
    border: 0;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose-500), var(--purple-600));
    padding: 12px 20px;
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(147, 51, 234, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-search button:hover,
.hero-slide-link:hover,
.section-more:hover,
.detail-category-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-desert);
}

.hero-category-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

.hero-category-links a {
    padding: 8px 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 13px;
    font-weight: 700;
}

.hero-slider {
    width: min(980px, 100%);
    margin-top: 44px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(28, 25, 23, 0.34);
    background: rgba(0, 0, 0, 0.2);
}

.hero-slides {
    position: relative;
    aspect-ratio: 21 / 9;
    min-height: 300px;
}

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

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

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

.hero-slide-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.1));
}

.hero-slide-content {
    position: absolute;
    left: clamp(24px, 5vw, 56px);
    bottom: clamp(24px, 5vw, 50px);
    width: min(520px, calc(100% - 48px));
    text-align: left;
}

.hero-slide-content h2 {
    margin: 12px 0 8px;
    font-size: clamp(28px, 5vw, 48px);
    line-height: 1.1;
}

.hero-slide-content p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.88);
}

.hero-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 14px;
    background: rgba(28, 25, 23, 0.74);
}

.hero-controls button {
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.hero-controls > button {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    font-size: 26px;
    line-height: 1;
}

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

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

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

.featured-overlap {
    position: relative;
    z-index: 2;
    margin-top: -72px;
    margin-bottom: 30px;
}

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

.wide-feature {
    grid-column: 1 / -1;
}

.content-section {
    padding: 66px 0;
}

.white-section {
    background: #ffffff;
}

.soft-section {
    background: linear-gradient(135deg, var(--stone-50), var(--stone-100));
}

.rose-section {
    background: linear-gradient(135deg, var(--rose-50), var(--purple-50));
}

.dark-section {
    color: #ffffff;
    background: var(--stone-900);
}

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

.section-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.section-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 14px;
    color: var(--rose-600);
    background: linear-gradient(135deg, var(--rose-100), var(--purple-100));
    font-weight: 900;
}

.dark-section .section-icon {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.15;
}

.section-heading p {
    margin: 5px 0 0;
    color: var(--stone-600);
}

.dark-section .section-heading p {
    color: rgba(255, 255, 255, 0.72);
}

.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

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

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

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

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

.movie-rail {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
}

.movie-rail::-webkit-scrollbar {
    height: 8px;
}

.movie-rail::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--sand-200);
}

.rail-item {
    flex: 0 0 310px;
    scroll-snap-align: start;
}

.movie-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-sand);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-desert);
}

.dark-section .movie-card {
    color: var(--stone-800);
}

.thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--stone-200);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.movie-card:hover .thumb img,
.related-row:hover img,
.category-card:hover img {
    transform: scale(1.08);
}

.play-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.18);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.play-hover svg {
    width: 52px;
    height: 52px;
    padding: 14px;
    border-radius: 999px;
    fill: currentColor;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.movie-card:hover .play-hover {
    opacity: 1;
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    min-width: 42px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose-500), var(--purple-600));
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
}

.card-body strong {
    font-size: 18px;
    line-height: 1.25;
    transition: color 0.2s ease;
}

.movie-card:hover .card-body strong {
    color: var(--rose-600);
}

.card-line {
    min-height: 42px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--stone-600);
    font-size: 14px;
}

.tag-row,
.meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.tag-row span {
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--rose-700, #be123c);
    background: var(--rose-100);
    font-size: 12px;
    font-weight: 700;
}

.light-tags span {
    color: #ffffff;
    background: rgba(244, 63, 94, 0.88);
}

.meta-row {
    margin-top: auto;
    color: var(--stone-500);
    font-size: 13px;
}

.meta-row span {
    padding: 3px 8px;
    border-radius: 9px;
    background: var(--stone-100);
}

.featured-card {
    min-height: 310px;
}

.featured-card .thumb {
    position: absolute;
    inset: 0;
    height: 100%;
    aspect-ratio: auto;
}

.featured-card .thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.06));
}

.featured-card .card-body {
    position: relative;
    z-index: 2;
    min-height: 310px;
    justify-content: flex-end;
    color: #ffffff;
    padding: 28px;
}

.featured-card .card-line,
.featured-card .meta-row {
    color: rgba(255, 255, 255, 0.82);
}

.featured-card .meta-row span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.featured-card .card-body strong {
    font-size: clamp(24px, 4vw, 34px);
}

.small-card {
    flex-direction: row;
    min-height: 132px;
}

.small-card .thumb {
    flex: 0 0 150px;
    aspect-ratio: auto;
}

.small-card .card-body {
    flex: 1;
}

.small-card .card-body strong {
    font-size: 16px;
}

.small-card .card-line {
    min-height: 0;
    -webkit-line-clamp: 2;
}

.pill-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.pill-tab {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    color: var(--stone-700);
    background: var(--stone-100);
    font-weight: 800;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.pill-tab:hover,
.pill-tab.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose-500), var(--purple-600));
    transform: translateY(-2px);
}

.category-panel {
    display: none;
}

.category-panel.active {
    display: block;
}

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

.editor-grid .featured-card {
    grid-row: span 2;
}

.page-hero {
    position: relative;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose-600), var(--purple-600) 58%, var(--pink-500));
}

.compact-hero {
    padding: 76px 0 64px;
    overflow: hidden;
}

.compact-hero::before,
.compact-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    filter: blur(64px);
}

.compact-hero::before {
    width: 260px;
    height: 260px;
    top: 16px;
    left: 7%;
}

.compact-hero::after {
    width: 360px;
    height: 360px;
    right: 8%;
    bottom: -140px;
}

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

.compact-hero h1 {
    width: min(820px, 100%);
    margin: 20px 0 14px;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.compact-hero p {
    width: min(760px, 100%);
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 22px;
    color: var(--stone-600);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--rose-600);
}

.light-breadcrumb {
    color: rgba(255, 255, 255, 0.76);
}

.light-breadcrumb a:hover {
    color: #ffffff;
}

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

.category-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-sand);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-desert);
}

.category-thumb-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    min-height: 180px;
    overflow: hidden;
}

.category-thumb-stack img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.category-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 24px;
}

.category-card-body strong {
    color: var(--stone-800);
    font-size: 25px;
    line-height: 1.2;
}

.category-card-body span {
    color: var(--stone-600);
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 12px;
    margin-bottom: 28px;
    padding: 12px;
    border-radius: 22px;
    background: var(--sand-50);
    border: 1px solid var(--sand-200);
    box-shadow: var(--shadow-sand);
}

.expanded-filter {
    grid-template-columns: minmax(0, 1fr) 160px 160px 180px;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid var(--sand-200);
    border-radius: 16px;
    outline: 0;
    padding: 12px 14px;
    color: var(--stone-700);
    background: #ffffff;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--rose-500);
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.empty-state {
    display: none;
    margin-top: 28px;
    padding: 34px;
    border-radius: var(--radius-lg);
    color: var(--stone-600);
    text-align: center;
    background: var(--stone-50);
}

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

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    display: flex;
    align-items: end;
    color: #ffffff;
    background: var(--stone-900);
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(28, 25, 23, 0.92), rgba(28, 25, 23, 0.62), rgba(28, 25, 23, 0.26)), var(--detail-bg);
    background-position: center;
    background-size: cover;
    filter: saturate(1.1);
    transform: scale(1.02);
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    padding: 76px 0 64px;
}

.detail-title-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
}

.detail-title-wrap h1 {
    margin: 18px 0 14px;
    font-size: clamp(36px, 7vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.055em;
}

.detail-title-wrap p {
    max-width: 820px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

.detail-category-link {
    white-space: nowrap;
}

.detail-section {
    background: linear-gradient(180deg, var(--sand-50), #ffffff);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 360px;
    gap: 28px;
    align-items: start;
}

.detail-main {
    display: grid;
    gap: 24px;
}

.player-card,
.detail-card,
.review-card,
.related-card {
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-sand);
    overflow: hidden;
}

.video-player {
    position: relative;
    overflow: hidden;
    background: #000000;
    aspect-ratio: 16 / 9;
}

.video-player video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000000;
}

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.46));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.video-player.is-playing .player-start {
    opacity: 0;
    visibility: hidden;
}

.player-start-icon {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.player-start-icon svg {
    width: 38px;
    height: 38px;
    fill: currentColor;
}

.player-start span:last-child {
    font-size: 18px;
    font-weight: 900;
}

.player-error {
    position: absolute;
    right: 16px;
    bottom: 16px;
    left: 16px;
    display: none;
    padding: 12px 14px;
    border-radius: 14px;
    color: #ffffff;
    background: rgba(225, 29, 72, 0.9);
    text-align: center;
    font-weight: 700;
}

.player-error.is-visible {
    display: block;
}

.detail-card,
.review-card,
.related-card {
    padding: 26px;
}

.detail-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.detail-meta-line span {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--rose-700, #be123c);
    background: linear-gradient(135deg, var(--rose-100), var(--purple-100));
    font-size: 13px;
    font-weight: 800;
}

.detail-card h2,
.review-card h2,
.related-card h2 {
    margin: 0 0 16px;
    color: var(--stone-800);
    font-size: 24px;
}

.detail-card p,
.review-card p {
    color: var(--stone-700);
    font-size: 17px;
    line-height: 1.9;
}

.one-line-text {
    padding: 18px;
    border-left: 4px solid var(--rose-500);
    border-radius: 14px;
    background: var(--stone-50);
    font-style: italic;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-tags span {
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--stone-700);
    background: var(--stone-100);
    font-size: 14px;
    font-weight: 800;
}

.review-card {
    border-left: 5px solid var(--rose-500);
    background: linear-gradient(135deg, var(--rose-50), var(--purple-50));
}

.detail-aside {
    position: sticky;
    top: 104px;
}

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

.related-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 16px;
    transition: background 0.2s ease;
}

.related-row:hover {
    background: var(--stone-50);
}

.related-row img {
    width: 110px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.related-row strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--stone-800);
    line-height: 1.35;
}

.related-row small {
    display: block;
    margin-top: 5px;
    color: var(--stone-500);
}

.site-footer {
    color: var(--stone-300, #d6d3d1);
    background: var(--stone-900);
}

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

.footer-brand .brand-copy strong {
    color: #ffffff;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

.footer-brand .brand-copy small,
.footer-brand-block p,
.footer-links a,
.footer-bottom {
    color: rgba(255, 255, 255, 0.62);
}

.footer-brand-block p {
    max-width: 520px;
    margin: 18px 0 0;
}

.footer-column h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 16px;
}

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

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
}

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

@media (max-width: 1080px) {
    .four-grid,
    .rank-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .detail-aside {
        position: static;
    }

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

@media (max-width: 860px) {
    :root {
        --header-height: 66px;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu-button {
        display: flex;
    }

    .brand-copy strong {
        font-size: 18px;
    }

    .brand-copy small {
        display: none;
    }

    .hero-section {
        padding: 52px 0 92px;
    }

    .hero-search,
    .filter-bar,
    .expanded-filter {
        grid-template-columns: 1fr;
    }

    .hero-slides {
        aspect-ratio: 4 / 3;
        min-height: 360px;
    }

    .hero-slide-mask {
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.28));
    }

    .featured-grid,
    .category-grid,
    .footer-grid,
    .detail-title-wrap {
        grid-template-columns: 1fr;
    }

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

    .category-card {
        grid-template-columns: 150px minmax(0, 1fr);
    }
}

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

    .hero-content h1,
    .compact-hero h1,
    .detail-title-wrap h1 {
        letter-spacing: -0.035em;
    }

    .hero-slider {
        border-radius: 18px;
    }

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

    .hero-slide-content {
        left: 18px;
        bottom: 22px;
        width: calc(100% - 36px);
    }

    .four-grid,
    .three-grid,
    .rank-grid,
    .editor-grid {
        grid-template-columns: 1fr;
    }

    .small-card {
        min-height: 118px;
    }

    .small-card .thumb {
        flex-basis: 124px;
    }

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

    .category-thumb-stack {
        min-height: 210px;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .related-row {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .related-row img {
        width: 96px;
        height: 64px;
    }
}
