:root {
    --sky-50: #f0f9ff;
    --sky-100: #e0f2fe;
    --sky-500: #0ea5e9;
    --sky-600: #0284c7;
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
    --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --gradient: linear-gradient(135deg, var(--sky-500), var(--amber-500));
    --gradient-soft: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(245, 158, 11, 0.12));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-800);
    background: linear-gradient(180deg, #ffffff 0%, rgba(240, 249, 255, 0.65) 45%, rgba(255, 251, 235, 0.72) 100%);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(240, 249, 255, 0.86), rgba(255, 251, 235, 0.92));
    border-bottom: 1px solid rgba(14, 165, 233, 0.14);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

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

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

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: white;
    font-size: 22px;
    font-weight: 900;
    background: var(--gradient);
    box-shadow: 0 14px 28px rgba(14, 165, 233, 0.22);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 18px 36px rgba(245, 158, 11, 0.24);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.02em;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text em {
    margin-top: 2px;
    color: var(--gray-500);
    font-size: 12px;
    font-style: normal;
}

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

.nav-link {
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--gray-700);
    font-weight: 700;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--sky-600);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(245, 158, 11, 0.14));
    transform: translateY(-1px);
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.cta-form input,
.search-page-form input,
.local-filter-input {
    border: 1px solid rgba(14, 165, 233, 0.2);
    outline: none;
    background: white;
    color: var(--gray-800);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.header-search input {
    width: 250px;
    padding: 11px 16px;
    border-radius: 999px;
}

.header-search input:focus,
.mobile-search input:focus,
.cta-form input:focus,
.search-page-form input:focus,
.local-filter-input:focus {
    border-color: var(--sky-500);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.header-search button,
.mobile-search button,
.cta-form button,
.search-page-form button {
    border: 0;
    color: white;
    padding: 11px 18px;
    border-radius: 999px;
    font-weight: 800;
    background: var(--gradient);
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.18);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--gradient-soft);
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: var(--gray-800);
}

.mobile-panel {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-soft);
}

.mobile-panel nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

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

.mobile-search input {
    min-width: 0;
    padding: 11px 14px;
    border-radius: 999px;
}

.hero-carousel {
    position: relative;
    height: 620px;
    overflow: hidden;
    background: #020617;
}

.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.55), transparent 34%), radial-gradient(circle at 80% 30%, rgba(245, 158, 11, 0.55), transparent 30%), #020617;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.54) 47%, rgba(0, 0, 0, 0.1));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1240px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: white;
    max-width: 1240px;
}

.hero-content > * {
    max-width: 720px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 8px 16px;
    border-radius: 999px;
    color: white;
    font-size: 14px;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.88), rgba(245, 158, 11, 0.88));
    box-shadow: 0 12px 26px rgba(14, 165, 233, 0.2);
    backdrop-filter: blur(12px);
}

.hero-content h1 {
    margin: 22px 0 10px;
    font-size: clamp(32px, 5vw, 62px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    text-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.hero-content h2 {
    margin: 0 0 16px;
    font-size: clamp(28px, 4vw, 52px);
    line-height: 1.1;
    text-shadow: 0 16px 42px rgba(0, 0, 0, 0.42);
}

.hero-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
    text-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}

.hero-tags,
.detail-meta,
.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

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

.hero-tags span,
.detail-meta span,
.movie-meta-line span {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--gray-700);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.45);
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    color: white;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
}

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

.primary-button {
    color: white;
    background: var(--gradient);
    box-shadow: 0 18px 36px rgba(14, 165, 233, 0.26);
}

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

.ghost-button {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
}

.ghost-button.light {
    color: var(--gray-700);
    background: var(--gray-100);
    border-color: var(--gray-200);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    color: white;
    font-size: 42px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    transition: background 0.25s ease, transform 0.25s ease;
}

.hero-control:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.05);
}

.hero-prev {
    left: 24px;
    transform: translateY(-50%);
}

.hero-next {
    right: 24px;
    transform: translateY(-50%);
}

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

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

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

.content-section {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 68px 0;
}

.content-section.compact {
    padding: 64px 0;
}

.soft-section {
    background: linear-gradient(90deg, rgba(224, 242, 254, 0.6), rgba(254, 243, 199, 0.62));
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
}

.section-bar {
    width: 6px;
    height: 38px;
    border-radius: 999px;
    background: var(--gradient);
}

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

.section-heading p {
    margin: 6px 0 0;
    color: var(--gray-500);
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(14, 165, 233, 0.12);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: radial-gradient(circle at 30% 20%, rgba(14, 165, 233, 0.45), transparent 32%), radial-gradient(circle at 70% 80%, rgba(245, 158, 11, 0.45), transparent 36%), #0f172a;
}

.poster-link img,
.horizontal-poster img,
.ranking-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.25s ease;
}

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

.quality-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: white;
    font-size: 12px;
    font-weight: 900;
    background: var(--gradient);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.play-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: white;
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(8px);
    transform: translateY(8px);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

.movie-card:hover .play-badge {
    opacity: 1;
    transform: translateY(0);
    background: rgba(14, 165, 233, 0.86);
}

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

.movie-meta-line {
    gap: 6px;
    margin-bottom: 10px;
}

.movie-meta-line span {
    padding: 3px 8px;
    color: var(--gray-600);
    background: var(--gray-100);
    border-color: var(--gray-200);
    font-size: 12px;
}

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

.movie-card h3 a:hover,
.horizontal-title:hover,
.ranking-body h2 a:hover {
    color: var(--sky-600);
}

.movie-card p {
    min-height: 52px;
    margin: 0 0 14px;
    color: var(--gray-600);
    font-size: 14px;
}

.tag-row,
.tag-cloud,
.mini-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-row span,
.tag-cloud a {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--gray-700);
    font-size: 12px;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(224, 242, 254, 0.9), rgba(254, 243, 199, 0.9));
}

.tag-cloud a:hover {
    color: white;
    background: var(--gradient);
}

.scroll-row {
    display: grid;
    grid-auto-columns: minmax(280px, 320px);
    grid-auto-flow: column;
    gap: 24px;
    overflow-x: auto;
    padding: 6px 2px 22px;
    scrollbar-width: thin;
}

.wide-card .poster-link {
    aspect-ratio: 16 / 10;
}

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

.category-tile,
.category-card-large {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(14, 165, 233, 0.12);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-soft);
}

.category-tile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 170px;
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-tile::before,
.category-card-large::before {
    content: "";
    position: absolute;
    inset: -40% -20% auto auto;
    width: 160px;
    height: 160px;
    border-radius: 999px;
    background: var(--gradient-soft);
}

.category-tile:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.category-tile strong,
.category-card-link span {
    position: relative;
    color: var(--gray-800);
    font-size: 22px;
    font-weight: 900;
}

.category-tile span,
.category-card-large p {
    position: relative;
    color: var(--gray-600);
}

.category-tile em {
    position: relative;
    margin-top: auto;
    color: var(--sky-600);
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
}

.rank-panel,
.search-cta {
    overflow: hidden;
    border-radius: 30px;
    color: white;
    background: linear-gradient(135deg, var(--sky-500), var(--amber-500));
    box-shadow: 0 24px 60px rgba(14, 165, 233, 0.22);
}

.rank-panel {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 36px;
    padding: 44px;
}

.rank-panel h2,
.search-cta h2 {
    margin: 16px 0 12px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
}

.rank-panel p,
.search-cta p {
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

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

.rank-list li {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.rank-number {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--sky-600);
    font-weight: 900;
    background: white;
}

.rank-list a {
    font-weight: 900;
}

.rank-list em {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    font-style: normal;
}

.search-cta {
    padding: 44px;
    text-align: center;
}

.cta-form,
.search-page-form {
    display: grid;
    grid-template-columns: 1fr auto;
    width: min(760px, 100%);
    margin: 0 auto;
    gap: 10px;
}

.cta-form input,
.search-page-form input {
    min-width: 0;
    padding: 15px 18px;
    border-radius: 999px;
}

.page-hero {
    width: min(1240px, calc(100% - 32px));
    margin: 34px auto 0;
    border-radius: 32px;
    color: white;
    background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.22), transparent 24%), linear-gradient(135deg, #0284c7, #f59e0b);
    box-shadow: var(--shadow);
}

.small-hero {
    min-height: 260px;
    display: flex;
    align-items: center;
    padding: 44px;
}

.small-hero h1 {
    margin: 18px 0 10px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.1;
}

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

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

.category-card-large {
    padding: 24px;
}

.category-card-link {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.category-card-link strong {
    color: var(--sky-600);
    font-size: 14px;
}

.mini-link-row a {
    color: var(--gray-600);
    font-size: 13px;
}

.mini-link-row a:hover {
    color: var(--sky-600);
}

.search-tools,
.list-toolbar {
    margin-bottom: 28px;
    padding: 22px;
    border: 1px solid rgba(14, 165, 233, 0.12);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-soft);
}

.search-page-form {
    width: 100%;
    margin-bottom: 18px;
}

.filter-line,
.sort-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.filter-line {
    margin-bottom: 16px;
}

.filter-line button {
    border: 0;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--gray-700);
    font-weight: 800;
    background: var(--gray-100);
}

.filter-line button.active,
.filter-line button:hover {
    color: white;
    background: var(--gradient);
}

.sort-line label,
.search-count {
    color: var(--gray-600);
    font-weight: 800;
}

.sort-select {
    padding: 8px 14px;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    color: var(--gray-700);
    background: white;
}

.list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.local-filter-form {
    flex: 1;
}

.local-filter-input {
    width: 100%;
    padding: 13px 16px;
    border-radius: 999px;
}

.simple-link {
    color: var(--sky-600);
    font-weight: 900;
}

.ranking-list-full {
    display: grid;
    gap: 16px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 56px 96px 1fr;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(14, 165, 233, 0.12);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-soft);
}

.ranking-index {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: white;
    font-weight: 900;
    background: var(--gradient);
}

.ranking-poster {
    width: 96px;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 14px;
    background: #0f172a;
}

.ranking-body h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.ranking-body p {
    margin: 0 0 10px;
    color: var(--gray-600);
}

.detail-layout {
    width: min(1240px, calc(100% - 32px));
    margin: 34px auto 68px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.detail-main {
    min-width: 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--gray-600);
    font-size: 14px;
}

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

.player-card,
.detail-card,
.side-card {
    border: 1px solid rgba(14, 165, 233, 0.12);
    border-radius: var(--radius-xl);
    background: white;
    box-shadow: var(--shadow-soft);
}

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

.site-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.player-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: white;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.52));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-start span {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    border-radius: 999px;
    font-size: 34px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.95), rgba(245, 158, 11, 0.95));
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

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

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

.player-error {
    background: rgba(185, 28, 28, 0.82);
}

.player-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    padding: 18px;
    color: white;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.site-player:hover .player-controls,
.site-player.is-paused .player-controls,
.site-player.is-playing .player-controls {
    opacity: 1;
    transform: translateY(0);
}

.player-progress {
    width: 100%;
    accent-color: var(--sky-500);
}

.control-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.control-row button {
    border: 0;
    border-radius: 999px;
    color: white;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.player-fullscreen {
    margin-left: auto;
}

.detail-card {
    padding: 28px;
}

.detail-card h1 {
    margin: 18px 0 14px;
    color: var(--gray-900);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
}

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

.detail-meta span {
    background: var(--gray-100);
    border-color: var(--gray-200);
}

.text-block,
.tag-block {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.text-block h2,
.tag-block h2,
.side-card h2 {
    margin: 0 0 14px;
    color: var(--gray-900);
    font-size: 24px;
}

.text-block p {
    margin: 0;
    color: var(--gray-700);
    font-size: 17px;
    line-height: 1.9;
    text-align: justify;
}

.small-tags a {
    font-size: 13px;
}

.detail-side {
    position: sticky;
    top: 98px;
}

.side-card {
    padding: 22px;
}

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

.horizontal-card {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 12px;
    align-items: center;
}

.horizontal-poster {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: #0f172a;
}

.horizontal-title {
    display: block;
    margin-bottom: 6px;
    color: var(--gray-900);
    font-weight: 900;
    line-height: 1.35;
}

.horizontal-card p {
    margin: 0;
    color: var(--gray-500);
    font-size: 13px;
}

.site-footer {
    margin-top: 40px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(240, 249, 255, 0.92));
    border-top: 1px solid rgba(14, 165, 233, 0.12);
}

.footer-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
}

.footer-brand p {
    max-width: 520px;
    color: var(--gray-600);
}

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

.footer-links h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

.footer-links a {
    display: block;
    margin: 8px 0;
    color: var(--gray-600);
}

.footer-links a:hover {
    color: var(--sky-600);
}

.footer-bottom {
    padding: 18px;
    color: var(--gray-500);
    text-align: center;
    border-top: 1px solid rgba(14, 165, 233, 0.12);
}

[hidden] {
    display: none !important;
}

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

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

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

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

    .detail-side {
        position: static;
    }
}

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

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

    .header-inner {
        height: 68px;
    }

    .hero-carousel {
        height: 560px;
    }

    .hero-content {
        padding-right: 20px;
    }

    .hero-control {
        display: none;
    }

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

    .rank-panel,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .rank-list li {
        grid-template-columns: 42px 1fr;
    }

    .rank-list em {
        grid-column: 2;
    }

    .ranking-row {
        grid-template-columns: 44px 76px 1fr;
        gap: 12px;
    }

    .ranking-poster {
        width: 76px;
    }

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

@media (max-width: 560px) {
    .brand-text strong {
        font-size: 20px;
    }

    .brand-text em {
        display: none;
    }

    .hero-carousel {
        height: 620px;
    }

    .hero-shade {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.84));
    }

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

    .hero-content h1 {
        font-size: 30px;
    }

    .hero-content h2 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .content-section {
        width: min(100% - 24px, 1240px);
        padding: 46px 0;
    }

    .four-columns,
    .category-grid,
    .category-large-grid {
        grid-template-columns: 1fr;
    }

    .small-hero {
        width: min(100% - 24px, 1240px);
        min-height: 230px;
        padding: 28px;
        border-radius: 24px;
    }

    .cta-form,
    .search-page-form,
    .mobile-search {
        grid-template-columns: 1fr;
    }

    .search-cta,
    .rank-panel,
    .detail-card {
        padding: 24px;
        border-radius: 22px;
    }

    .detail-layout {
        width: min(100% - 24px, 1240px);
        margin-top: 24px;
    }

    .ranking-row {
        grid-template-columns: 40px 1fr;
    }

    .ranking-poster {
        display: none;
    }

    .control-row {
        gap: 8px;
    }

    .player-time {
        font-size: 12px;
    }
}
