:root {
    --color-red: #dc2626;
    --color-red-dark: #b91c1c;
    --color-orange: #f97316;
    --color-yellow: #facc15;
    --color-bg: #f9fafb;
    --color-card: #ffffff;
    --color-text: #111827;
    --color-muted: #6b7280;
    --color-line: #e5e7eb;
    --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 14px 34px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.2);
    --radius: 18px;
    --container: 1180px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--color-bg);
    color: var(--color-text);
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

svg {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    max-width: var(--container);
    height: 72px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #ffffff;
    font-weight: 800;
    font-size: 22px;
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.35);
}

.brand-mark.small {
    width: 30px;
    height: 30px;
    margin-right: 8px;
    border-radius: 8px;
    font-size: 16px;
}

.brand-text strong {
    display: block;
    color: #111827;
    font-size: 21px;
    line-height: 1.1;
}

.brand-text small {
    display: block;
    margin-top: 3px;
    color: var(--color-muted);
    font-size: 12px;
}

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

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 12px;
    border-radius: 999px;
    color: #374151;
    font-size: 15px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-red);
    background: #fff1f2;
    transform: translateY(-1px);
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    width: min(280px, 26vw);
}

.header-search input {
    width: 100%;
    height: 42px;
    padding: 0 46px 0 16px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus {
    border-color: var(--color-red);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.header-search button {
    position: absolute;
    right: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-red), var(--color-orange));
    color: #ffffff;
    cursor: pointer;
}

.mobile-menu-button {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
    cursor: pointer;
}

.mobile-menu-button span {
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: #111827;
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--color-line);
    background: #ffffff;
    padding: 16px 20px 22px;
}

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

.mobile-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-bottom: 12px;
}

.mobile-search input,
.inline-search input,
.search-tools input,
.search-tools select {
    border: 1px solid #d1d5db;
    border-radius: 12px;
    outline: none;
}

.mobile-search input {
    padding: 12px 14px;
}

.mobile-search button,
.inline-search button,
.search-tools button {
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-red), var(--color-orange));
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.page-main {
    min-height: 70vh;
}

.light-page {
    padding: 34px 0 56px;
}

.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #dc2626 0%, #f97316 54%, #facc15 100%);
    color: #ffffff;
}

.hero-section::before,
.hero-section::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    filter: blur(6px);
}

.hero-section::before {
    top: -180px;
    left: -120px;
}

.hero-section::after {
    right: -140px;
    bottom: -210px;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
    gap: 52px;
    align-items: center;
    max-width: var(--container);
    margin: 0 auto;
    padding: 78px 20px 84px;
}

.hero-copy h1 {
    margin: 0 0 24px;
    font-size: clamp(42px, 6vw, 66px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-copy h1 span {
    color: #fef3c7;
}

.hero-copy p {
    max-width: 660px;
    margin: 0 0 32px;
    color: #fee2e2;
    font-size: 20px;
    line-height: 1.75;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    max-width: 520px;
    margin-bottom: 34px;
}

.hero-stats div {
    padding: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.13);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero-stats strong {
    display: block;
    margin-bottom: 4px;
    font-size: 36px;
    line-height: 1;
}

.hero-stats span {
    color: #ffe4e6;
    font-size: 13px;
}

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

.primary-button,
.secondary-button,
.watch-button,
.hero-mini-link,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    padding: 15px 26px;
    background: #ffffff;
    color: var(--color-red);
    box-shadow: 0 16px 35px rgba(127, 29, 29, 0.24);
}

.primary-button:hover,
.secondary-button:hover,
.watch-button:hover,
.hero-mini-link:hover,
.section-more:hover {
    transform: translateY(-2px);
}

.secondary-button {
    padding: 15px 24px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.hero-carousel {
    position: relative;
}

.hero-slides {
    position: relative;
    height: 440px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: rgba(0, 0, 0, 0.18);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.6s ease, transform 0.8s ease;
}

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

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

.hero-slide-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.86));
}

.hero-slide-content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 28px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    width: max-content;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.95);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.hero-slide-content h3 {
    margin: 0 0 8px;
    font-size: 30px;
}

.hero-slide-content p {
    display: -webkit-box;
    max-width: 96%;
    margin: 0 0 16px;
    overflow: hidden;
    color: #e5e7eb;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hero-mini-link {
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-red);
}

.hero-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

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

.hero-dot.active {
    width: 34px;
    background: #ffffff;
}

.content-section,
.sub-hero,
.breadcrumb,
.player-layout {
    max-width: var(--container);
    margin-right: auto;
    margin-left: auto;
    padding-right: 20px;
    padding-left: 20px;
}

.content-section {
    padding-top: 56px;
}

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

.section-heading > div,
.ranking-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.heading-icon,
.ranking-head span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #fee2e2;
    color: var(--color-red);
    font-size: 24px;
}

.section-heading h2,
.ranking-head h2 {
    margin: 0;
    font-size: clamp(25px, 3vw, 34px);
    letter-spacing: -0.02em;
}

.section-more {
    padding: 10px 16px;
    background: #ffffff;
    color: var(--color-red);
    box-shadow: var(--shadow-sm);
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #991b1b, #f97316);
}

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

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

.poster-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.42);
    color: #ffffff;
    font-size: 40px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.region-badge,
.year-badge,
.rank-badge,
.category-count {
    position: absolute;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.region-badge {
    top: 12px;
    left: 12px;
    background: var(--color-red);
}

.year-badge {
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.78);
}

.rank-badge {
    right: 12px;
    bottom: 12px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.card-content {
    padding: 16px;
}

.card-content h3 {
    display: -webkit-box;
    min-height: 46px;
    margin: 0 0 8px;
    overflow: hidden;
    color: #111827;
    font-size: 17px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-content h3 a:hover {
    color: var(--color-red);
}

.card-content p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 13px;
    overflow: hidden;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.58;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.meta-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--color-muted);
    font-size: 13px;
}

.meta-line span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.movie-card.compact .card-content {
    padding: 13px;
}

.movie-card.compact h3 {
    min-height: 40px;
    font-size: 15px;
}

.movie-card.compact p {
    display: none;
}

.horizontal {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    min-height: 126px;
}

.horizontal .poster {
    height: 100%;
    min-height: 126px;
    aspect-ratio: auto;
}

.horizontal .card-content h3 {
    min-height: auto;
    font-size: 16px;
}

.horizontal .card-content p {
    min-height: 42px;
}

.two-column-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 32px;
    align-items: start;
}

.ranking-panel {
    position: sticky;
    top: 94px;
    padding: 22px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.ranking-panel ol {
    display: grid;
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.ranking-panel li a {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.ranking-panel li a:hover {
    background: #fff1f2;
}

.ranking-panel strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #fee2e2;
    color: var(--color-red);
    font-size: 13px;
}

.ranking-panel span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-panel em {
    color: var(--color-muted);
    font-style: normal;
    font-size: 12px;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.category-tab {
    padding: 11px 18px;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: #374151;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.category-tab.active,
.category-tab:hover {
    background: var(--color-red);
    color: #ffffff;
}

.category-preview-panel {
    display: none;
}

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

.sub-hero {
    margin-top: 22px;
    padding-top: 44px;
    padding-bottom: 44px;
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    box-shadow: var(--shadow-sm);
}

.sub-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 54px);
    letter-spacing: -0.04em;
}

.sub-hero p {
    max-width: 820px;
    margin: 0;
    color: var(--color-muted);
    font-size: 18px;
    line-height: 1.75;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-top: 24px;
    color: var(--color-muted);
    font-size: 14px;
}

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

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

.category-card a {
    position: relative;
    display: block;
    height: 260px;
    overflow: hidden;
    border-radius: 22px;
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

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

.category-card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.82));
}

.category-card div {
    position: absolute;
    right: 20px;
    bottom: 20px;
    left: 20px;
}

.category-card h2 {
    margin: 0 0 8px;
    font-size: 26px;
}

.category-card p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #e5e7eb;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.category-count {
    top: 16px;
    right: 16px;
    background: rgba(220, 38, 38, 0.92);
}

.inline-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    max-width: 620px;
    margin-top: 26px;
}

.inline-search input {
    padding: 14px 16px;
}

.inline-search button {
    padding: 0 24px;
}

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

.podium-card a {
    position: relative;
    display: block;
    height: 360px;
    overflow: hidden;
    border-radius: 24px;
    color: #ffffff;
    box-shadow: var(--shadow-lg);
}

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

.podium-card a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.88));
}

.podium-number {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, #fbbf24, #ef4444);
    font-size: 28px;
    font-weight: 900;
}

.podium-card div {
    position: absolute;
    right: 24px;
    bottom: 24px;
    left: 24px;
    z-index: 2;
}

.podium-card h2 {
    margin: 0 0 10px;
    font-size: 25px;
}

.podium-card p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #e5e7eb;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.search-tools {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 150px 150px 140px auto auto;
    gap: 12px;
    margin-top: 26px;
}

.search-field {
    position: relative;
}

.search-field svg {
    position: absolute;
    top: 50%;
    left: 14px;
    color: #9ca3af;
    transform: translateY(-50%);
}

.search-tools input,
.search-tools select {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    background: #ffffff;
}

.search-tools input {
    padding-left: 44px;
}

.search-tools button {
    min-height: 48px;
    padding: 0 18px;
}

.search-tools button[data-reset-search] {
    background: #111827;
}

.result-summary {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 20px;
    color: var(--color-muted);
}

.result-summary strong {
    color: var(--color-red);
    font-size: 28px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 34px;
}

.pagination button {
    min-width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #ffffff;
    color: #374151;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.pagination button.active,
.pagination button:hover {
    background: linear-gradient(135deg, var(--color-red), var(--color-orange));
    color: #ffffff;
}

.detail-page {
    padding-bottom: 64px;
}

.player-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 28px;
    padding-top: 24px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #000000;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 9;
}

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

.video-start {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.55));
    color: #ffffff;
    font-size: 82px;
    cursor: pointer;
    transition: opacity 0.25s ease;
}

.video-start svg {
    width: 92px;
    height: 92px;
    padding: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-red);
    fill: currentColor;
    stroke-width: 0;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

.video-shell.playing .video-start {
    opacity: 0;
    pointer-events: none;
}

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

.video-error.visible {
    display: block;
}

.detail-card,
.sticky-panel {
    margin-top: 24px;
    padding: 26px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

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

.detail-title-row h1 {
    margin: 0 0 10px;
    font-size: clamp(30px, 4vw, 46px);
    letter-spacing: -0.03em;
}

.detail-title-row p {
    margin: 0;
    color: #374151;
    font-size: 17px;
    line-height: 1.75;
}

.watch-button {
    flex: 0 0 auto;
    padding: 13px 20px;
    background: linear-gradient(135deg, var(--color-red), var(--color-orange));
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(220, 38, 38, 0.22);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

.detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 14px;
    font-weight: 700;
}

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

.tag-list span {
    padding: 9px 13px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fee2e2, #ffedd5);
    color: #b91c1c;
    font-size: 14px;
    font-weight: 700;
}

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

.text-block h2,
.sticky-panel h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.text-block p {
    margin: 0;
    color: #374151;
    font-size: 16px;
    line-height: 1.9;
    text-align: justify;
}

.review-block {
    padding: 20px;
    border-left: 4px solid var(--color-red);
    border-radius: 14px;
    background: #fff7ed;
}

.sticky-panel {
    position: sticky;
    top: 94px;
}

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

.side-related .horizontal {
    grid-template-columns: 122px minmax(0, 1fr);
    min-height: 98px;
    box-shadow: none;
    border-color: #f3f4f6;
}

.side-related .horizontal .poster {
    min-height: 98px;
}

.side-related .horizontal .card-content {
    padding: 11px;
}

.side-related .horizontal .card-content p,
.side-related .horizontal .meta-line {
    display: none;
}

.more-related {
    margin-top: 14px;
}

.site-footer {
    margin-top: 48px;
    background: #111827;
    color: #d1d5db;
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 46px 20px 28px;
}

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

.footer-grid h3 {
    display: flex;
    align-items: center;
    margin: 0 0 14px;
    color: #ffffff;
}

.footer-grid p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.75;
}

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

.footer-grid a:hover {
    color: #fb7185;
}

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

.footer-bottom p {
    margin: 0;
}

@media (max-width: 1100px) {
    .hero-inner,
    .player-layout,
    .two-column-layout {
        grid-template-columns: 1fr;
    }

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

    .ranking-panel,
    .sticky-panel {
        position: static;
    }

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

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

    .search-tools {
        grid-template-columns: minmax(0, 1fr) 1fr 1fr;
    }
}

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

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

    .mobile-nav.open {
        display: block;
    }

    .header-inner {
        height: 64px;
    }

    .brand {
        min-width: 0;
    }

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

    .hero-inner {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-slides {
        height: 360px;
    }

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

    .horizontal-grid,
    .ranking-list-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom,
    .detail-title-row {
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .header-inner,
    .content-section,
    .sub-hero,
    .breadcrumb,
    .player-layout,
    .footer-inner {
        padding-right: 14px;
        padding-left: 14px;
    }

    .hero-copy h1 {
        font-size: 38px;
    }

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

    .hero-slides {
        height: 300px;
        border-radius: 18px;
    }

    .hero-slide-content {
        padding: 18px;
    }

    .hero-slide-content h3 {
        font-size: 24px;
    }

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

    .horizontal {
        grid-template-columns: 126px minmax(0, 1fr);
    }

    .horizontal .poster {
        min-height: 112px;
    }

    .search-tools,
    .inline-search {
        grid-template-columns: 1fr;
    }

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