:root {
    --brand-50: #fff1f2;
    --brand-100: #ffe4e6;
    --brand-500: #ef4444;
    --brand-600: #dc2626;
    --brand-700: #b91c1c;
    --brand-800: #991b1b;
    --brand-900: #7f1d1d;
    --ink-900: #111827;
    --ink-800: #1f2937;
    --ink-700: #374151;
    --ink-600: #4b5563;
    --ink-500: #6b7280;
    --ink-300: #d1d5db;
    --ink-200: #e5e7eb;
    --ink-100: #f3f4f6;
    --paper: #ffffff;
    --bg: #f9fafb;
    --shadow-sm: 0 6px 18px rgba(17, 24, 39, 0.08);
    --shadow-md: 0 12px 30px rgba(17, 24, 39, 0.12);
    --shadow-xl: 0 24px 60px rgba(127, 29, 29, 0.22);
    --radius-lg: 18px;
    --radius-xl: 24px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink-800);
    background: var(--bg);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

button,
input,
select {
    font: inherit;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    backdrop-filter: blur(18px);
    box-shadow: 0 4px 20px rgba(17, 24, 39, 0.04);
}

.nav-shell {
    display: flex;
    align-items: center;
    gap: 22px;
    max-width: var(--max);
    min-height: 74px;
    margin: 0 auto;
    padding: 0 20px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: white;
    background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(220, 38, 38, 0.28);
}

.brand-copy,
.footer-brand span:last-child {
    display: grid;
    gap: 1px;
}

.brand strong,
.footer-brand strong {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
    color: transparent;
    background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
    -webkit-background-clip: text;
    background-clip: text;
}

.brand small,
.footer-brand small {
    color: var(--ink-500);
    font-size: 12px;
}

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

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

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-600), var(--brand-700));
    transition: width 0.25s ease;
}

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

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

.nav-dropdown {
    position: relative;
}

.nav-drop-button {
    border: 0;
    background: none;
    cursor: pointer;
}

.nav-drop-panel {
    position: absolute;
    top: 32px;
    left: 0;
    display: grid;
    min-width: 170px;
    padding: 10px;
    background: white;
    border: 1px solid var(--ink-200);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.nav-dropdown:hover .nav-drop-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-drop-panel a {
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--ink-700);
    font-size: 14px;
}

.nav-drop-panel a:hover {
    color: var(--brand-600);
    background: linear-gradient(90deg, var(--brand-50), var(--brand-100));
}

.nav-search {
    position: relative;
    display: flex;
    align-items: center;
    width: min(260px, 22vw);
}

.nav-search input {
    width: 100%;
    padding: 10px 42px 10px 16px;
    border: 2px solid var(--ink-200);
    border-radius: 999px;
    outline: none;
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus {
    border-color: var(--brand-600);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

.nav-search button {
    position: absolute;
    right: 6px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    color: white;
    background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
    cursor: pointer;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    color: white;
    background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
}

.mobile-panel {
    display: none;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px 18px;
}

.mobile-panel.is-open {
    display: block;
}

.mobile-search {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.mobile-search input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--ink-200);
    border-radius: 12px;
}

.mobile-search button {
    border: 0;
    border-radius: 12px;
    color: white;
    background: var(--brand-600);
    padding: 0 16px;
}

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

.mobile-link,
.mobile-sub-link {
    padding: 10px 12px;
    border-radius: 12px;
    background: white;
}

.mobile-link.is-active,
.mobile-link:hover,
.mobile-sub-link:hover {
    color: var(--brand-600);
    background: var(--brand-50);
}

.mobile-group-title {
    color: var(--ink-500);
    font-weight: 800;
    margin-top: 6px;
}

.hero-section {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: white;
    background: linear-gradient(135deg, var(--brand-600), var(--brand-700) 48%, var(--brand-900));
}

.hero-grid-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image: linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-shell {
    position: relative;
    z-index: 1;
    max-width: var(--max);
    min-height: 620px;
    margin: 0 auto;
    padding: 60px 20px 90px;
    display: grid;
    align-items: center;
}

.hero-slide {
    display: none;
    align-items: center;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 60px;
    animation: fadeUp 0.55s ease both;
}

.hero-slide.is-active {
    display: grid;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    color: white;
    font-weight: 800;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero-text h1 {
    margin: 20px 0 22px;
    font-size: clamp(44px, 7vw, 78px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-text h1 span {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 18px;
    font-size: 0.76em;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
}

.hero-text p {
    max-width: 740px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(18px, 2vw, 24px);
}

.hero-tags,
.detail-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

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

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

.primary-button {
    color: white;
    background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
    box-shadow: 0 16px 34px rgba(220, 38, 38, 0.26);
}

.hero-section .primary-button,
.cta-band .primary-button {
    color: var(--brand-700);
    background: white;
}

.ghost-button {
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.ghost-dark-button {
    color: var(--ink-800);
    background: var(--ink-100);
}

.primary-button:hover,
.ghost-button:hover,
.ghost-dark-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-md);
}

.hero-poster {
    position: relative;
    min-height: 480px;
    border-radius: 30px;
    box-shadow: var(--shadow-xl);
    transform: rotate(1.5deg);
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: -18px;
    z-index: -1;
    border-radius: 36px;
    background: rgba(255, 255, 255, 0.2);
    filter: blur(20px);
}

.hero-poster-copy {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 2;
    display: grid;
    padding: 18px;
    border-radius: 18px;
    color: white;
    background: rgba(0, 0, 0, 0.46);
    backdrop-filter: blur(12px);
}

.hero-poster-copy strong {
    font-size: 22px;
}

.hero-dots {
    position: absolute;
    left: 20px;
    bottom: 42px;
    display: flex;
    gap: 10px;
}

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

.hero-dot.is-active {
    width: 34px;
    background: white;
}

.hero-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 130px;
    background: linear-gradient(to top, var(--bg), transparent);
}

.section-shell {
    max-width: var(--max);
    margin: 0 auto;
    padding: 72px 20px;
}

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

.section-heading span {
    display: block;
    color: var(--brand-600);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 4px 0 0;
    color: var(--ink-800);
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.2;
}

.section-heading a {
    color: var(--brand-600);
    font-weight: 800;
}

.compact-heading {
    display: block;
    margin-bottom: 18px;
}

.category-grid,
.category-overview-grid,
.movie-grid,
.featured-grid,
.rank-grid {
    display: grid;
    gap: 22px;
}

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

.category-tile,
.category-overview-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 8px;
    min-height: 136px;
    padding: 24px;
    border-radius: var(--radius-lg);
    color: white;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-overview-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: var(--shadow-md);
}

.category-tile::after,
.category-overview-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    transition: background 0.2s ease;
}

.category-tile:hover::after,
.category-overview-card:hover::after {
    background: rgba(255, 255, 255, 0.1);
}

.category-tile span,
.category-tile strong,
.category-tile em,
.category-overview-copy {
    position: relative;
    z-index: 1;
}

.category-tile span {
    font-size: 24px;
    font-weight: 900;
}

.category-tile strong,
.category-tile em {
    font-style: normal;
    color: rgba(255, 255, 255, 0.86);
}

.gradient-blue { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.gradient-pink { background: linear-gradient(135deg, #db2777, #be185d); }
.gradient-yellow { background: linear-gradient(135deg, #ca8a04, #a16207); }
.gradient-purple { background: linear-gradient(135deg, #9333ea, #7e22ce); }
.gradient-slate { background: linear-gradient(135deg, #334155, #1e293b); }
.gradient-orange { background: linear-gradient(135deg, #ea580c, #c2410c); }
.gradient-amber { background: linear-gradient(135deg, #d97706, #b45309); }
.gradient-indigo { background: linear-gradient(135deg, #4f46e5, #4338ca); }
.gradient-cyan { background: linear-gradient(135deg, #0891b2, #0e7490); }
.gradient-green { background: linear-gradient(135deg, #16a34a, #15803d); }
.gradient-stone { background: linear-gradient(135deg, #57534e, #44403c); }
.gradient-red { background: linear-gradient(135deg, var(--brand-600), var(--brand-800)); }

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

.latest-section {
    background: white;
}

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

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

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

.movie-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: white;
    border: 1px solid rgba(229, 231, 235, 0.72);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(220, 38, 38, 0.24);
    box-shadow: var(--shadow-md);
}

.poster-wrap {
    position: relative;
    overflow: hidden;
    display: block;
    background: linear-gradient(135deg, var(--brand-800), var(--ink-900));
}

.movie-card .poster-wrap {
    aspect-ratio: 4 / 3;
}

.poster-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, filter 0.45s ease;
}

.movie-card:hover .poster-image,
.rank-item:hover .poster-image,
.category-overview-card:hover .poster-image,
.hero-poster:hover .poster-image {
    transform: scale(1.08);
}

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.05) 55%, transparent);
}

.poster-fallback {
    position: absolute;
    inset: 0;
    display: none;
    place-items: center;
    padding: 18px;
    color: white;
    text-align: center;
    font-weight: 900;
    font-size: 18px;
}

.image-missing .poster-fallback {
    display: grid;
}

.movie-badge,
.movie-duration {
    position: absolute;
    z-index: 2;
    top: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: white;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.movie-badge {
    left: 12px;
    background: linear-gradient(135deg, #f97316, #ec4899);
}

.movie-duration {
    right: 12px;
    background: rgba(0, 0, 0, 0.54);
    backdrop-filter: blur(10px);
}

.play-float {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    color: white;
    background: rgba(249, 115, 22, 0.94);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
    transition: all 0.2s ease;
}

.movie-card:hover .play-float {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.movie-card-body {
    display: grid;
    gap: 8px;
    padding: 18px;
}

.movie-card-body strong {
    color: var(--ink-800);
    font-size: 18px;
    line-height: 1.3;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--ink-500);
    font-size: 13px;
}

.movie-meta span:first-child {
    color: #d97706;
    font-weight: 900;
}

.movie-desc,
.movie-tags {
    color: var(--ink-600);
    font-size: 14px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-tags {
    color: var(--ink-500);
    font-size: 12px;
    -webkit-line-clamp: 1;
}

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

.movie-card.compact .movie-card-body strong {
    font-size: 16px;
    -webkit-line-clamp: 1;
}

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

.rank-list {
    display: grid;
    gap: 12px;
    max-height: 760px;
    overflow: auto;
    padding-right: 8px;
}

.rank-item {
    display: grid;
    grid-template-columns: 72px 112px minmax(0, 1fr);
    align-items: stretch;
    overflow: hidden;
    min-height: 104px;
    background: white;
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.rank-number {
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
    font-size: 28px;
    font-weight: 900;
}

.rank-poster {
    min-height: 104px;
}

.rank-copy {
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 14px;
}

.rank-copy strong {
    color: var(--ink-800);
    font-size: 17px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-copy small {
    color: var(--ink-600);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-copy em {
    color: var(--ink-500);
    font-style: normal;
    font-size: 13px;
}

.cta-band,
.page-hero,
.category-hero {
    color: white;
    background: linear-gradient(135deg, var(--brand-600), var(--brand-700), var(--brand-900));
}

.cta-band {
    padding: 82px 20px;
    text-align: center;
}

.cta-band h2,
.page-hero h1,
.category-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.12;
}

.cta-band p,
.page-hero p,
.category-hero p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 19px;
}

.small-hero .section-shell {
    padding: 72px 20px;
}

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

.category-overview-card {
    grid-template-columns: 118px minmax(0, 1fr);
    align-items: center;
    min-height: 140px;
    padding: 14px;
}

.category-cover {
    aspect-ratio: 1;
    border-radius: 16px;
}

.category-overview-copy {
    display: grid;
    gap: 6px;
}

.category-overview-copy strong {
    font-size: 24px;
}

.category-overview-copy small,
.category-overview-copy em {
    color: rgba(255, 255, 255, 0.86);
    font-style: normal;
}

.category-hero {
    position: relative;
    min-height: 340px;
    overflow: hidden;
    display: grid;
    align-items: end;
}

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

.category-hero-bg .poster-image {
    filter: blur(2px) saturate(1.1);
}

.category-hero-copy {
    position: relative;
    z-index: 1;
    max-width: var(--max);
    margin: 0 auto;
    width: 100%;
    padding: 80px 20px 54px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 18px;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb em {
    color: white;
    font-style: normal;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr auto auto;
    gap: 14px;
    align-items: end;
    padding: 18px;
    margin-bottom: 28px;
    background: white;
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.filter-panel label {
    display: grid;
    gap: 6px;
    color: var(--ink-600);
    font-weight: 800;
    font-size: 13px;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--ink-200);
    border-radius: 12px;
    outline: none;
    background: white;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--brand-600);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

.filter-panel button {
    min-height: 44px;
    padding: 0 18px;
    color: white;
    border: 0;
    border-radius: 12px;
    background: var(--brand-600);
    cursor: pointer;
}

.filter-panel strong {
    color: var(--brand-600);
    white-space: nowrap;
}

.empty-state {
    padding: 30px;
    text-align: center;
    color: var(--ink-500);
    background: white;
    border-radius: var(--radius-lg);
}

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

.ranking-card {
    padding: 20px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.ranking-card .rank-item {
    grid-template-columns: 54px 78px minmax(0, 1fr);
    min-height: 82px;
    box-shadow: none;
    border: 1px solid var(--ink-200);
}

.ranking-card .rank-poster {
    min-height: 82px;
}

.ranking-card .rank-copy small {
    display: none;
}

.big-search {
    display: flex;
    gap: 12px;
    max-width: 740px;
    margin-top: 28px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    backdrop-filter: blur(10px);
}

.big-search input {
    flex: 1;
    min-height: 54px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    outline: none;
}

.big-search button {
    min-height: 54px;
    padding: 0 28px;
    border: 0;
    border-radius: 999px;
    color: var(--brand-700);
    background: white;
    font-weight: 900;
    cursor: pointer;
}

.detail-main {
    max-width: var(--max);
    margin: 0 auto;
    padding: 30px 20px 0;
}

.detail-breadcrumb {
    color: var(--ink-500);
    margin-bottom: 20px;
}

.detail-breadcrumb em,
.detail-breadcrumb a:hover {
    color: var(--brand-600);
}

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

.player-card,
.detail-card,
.info-card,
.prose-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.player-card {
    overflow: hidden;
    margin-bottom: 24px;
}

.player-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: black;
}

.movie-player {
    display: block;
    width: 100%;
    height: 100%;
    background: black;
}

.player-overlay-button {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    padding-left: 4px;
    border: 0;
    border-radius: 50%;
    color: white;
    background: rgba(239, 68, 68, 0.92);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.player-overlay-button:hover {
    transform: translate(-50%, -50%) scale(1.06);
}

.player-frame.is-playing .player-overlay-button {
    opacity: 0;
    pointer-events: none;
}

.player-loading,
.player-error {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 4;
    padding: 8px 12px;
    color: white;
    background: rgba(0, 0, 0, 0.62);
    border-radius: 999px;
    backdrop-filter: blur(10px);
}

.player-error {
    right: 18px;
    color: #fecaca;
    border-radius: 12px;
}

.detail-card {
    padding: 28px;
}

.detail-title-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
}

.detail-title-row h1 {
    margin: 0 0 10px;
    color: var(--ink-800);
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
}

.detail-title-row p {
    margin: 0;
    color: var(--ink-600);
    font-size: 18px;
}

.rating-pill {
    min-width: max-content;
    padding: 10px 14px;
    color: #b45309;
    background: #fef3c7;
    border-radius: 999px;
    font-weight: 900;
}

.detail-meta-line {
    gap: 10px;
    margin: 18px 0;
}

.detail-meta-line span {
    padding: 7px 12px;
    color: var(--ink-600);
    background: var(--ink-100);
    border-radius: 999px;
    font-size: 14px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 22px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--ink-200);
}

.tag-list a,
.tag-list span {
    padding: 8px 13px;
    border-radius: 999px;
    font-size: 14px;
}

.tag-list a {
    color: white;
    background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
}

.tag-list span {
    color: var(--ink-700);
    background: var(--ink-100);
}

.content-block {
    margin-top: 24px;
}

.content-block h2 {
    margin: 0 0 12px;
    color: var(--ink-800);
    font-size: 22px;
}

.content-block p {
    margin: 0;
    color: var(--ink-700);
    white-space: pre-line;
}

.soft-block,
.review-block {
    padding: 22px;
    border-radius: 16px;
}

.soft-block {
    background: linear-gradient(135deg, var(--ink-100), white);
}

.review-block {
    background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
}

.detail-sidebar .info-card {
    padding: 24px;
}

.sticky-card {
    position: sticky;
    top: 96px;
}

.info-card h2 {
    margin: 0 0 18px;
}

.info-card dl {
    display: grid;
    gap: 0;
    margin: 0;
}

.info-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 11px 0;
    border-bottom: 1px solid var(--ink-200);
}

.info-card dt {
    color: var(--ink-500);
}

.info-card dd {
    margin: 0;
    color: var(--ink-800);
    font-weight: 800;
    text-align: right;
}

.full-button {
    width: 100%;
    margin-top: 14px;
    border-radius: 14px;
}

.related-shell {
    padding-left: 0;
    padding-right: 0;
}

.prose-card {
    padding: 34px;
}

.prose-card h2 {
    margin-top: 0;
    color: var(--brand-700);
}

.site-footer {
    margin-top: 80px;
    color: white;
    background: linear-gradient(135deg, #111827, #1f2937, #111827);
}

.footer-shell {
    max-width: var(--max);
    margin: 0 auto;
    padding: 50px 20px 26px;
}

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

.footer-grid h3 {
    color: var(--brand-500);
    margin: 0 0 14px;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
    color: #9ca3af;
}

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

.footer-grid a:hover {
    color: var(--brand-500);
}

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

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .mobile-menu-button {
        display: inline-grid;
        place-items: center;
    }

    .hero-slide,
    .detail-layout,
    .ranking-columns {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        max-width: 420px;
        min-height: 360px;
    }

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

    .movie-grid.three-col,
    .featured-grid,
    .category-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 720px) {
    .nav-shell {
        min-height: 68px;
    }

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

    .hero-section,
    .hero-shell {
        min-height: auto;
    }

    .hero-shell {
        padding-top: 44px;
    }

    .hero-slide {
        gap: 30px;
    }

    .hero-poster {
        width: 100%;
        min-height: 300px;
        transform: none;
    }

    .section-heading,
    .footer-bottom,
    .detail-title-row {
        display: grid;
        align-items: start;
    }

    .category-grid,
    .category-overview-grid,
    .movie-grid.three-col,
    .movie-grid.four-col,
    .featured-grid,
    .rank-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .category-overview-card,
    .rank-item,
    .ranking-card .rank-item {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .category-overview-card .category-cover,
    .rank-poster {
        display: none;
    }

    .filter-panel,
    .big-search {
        grid-template-columns: 1fr;
        border-radius: 20px;
    }

    .big-search {
        display: grid;
        padding: 10px;
    }

    .detail-main {
        padding-top: 18px;
    }

    .detail-card {
        padding: 22px;
    }

    .player-overlay-button {
        width: 62px;
        height: 62px;
    }
}
