/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #000000;
  --bg-card: #141414;
  --text: #ffffff;
  --text-muted: #b3b3b3;
  --accent: #e50914;
  --accent-hover: #f40612;
  --nav-height: 68px;
  --section-gap: 36px;
  --card-radius: 4px;
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body {
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.4;
  overflow-x: hidden;
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  height: var(--nav-height);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 10%, transparent);
  transition: background var(--transition);
}

.navbar.scrolled {
  background: #141414;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 24px;
}

.logo-image {
  display: block;
  height: 25px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.nav-left {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 400;
  color: #e5e5e5;
  white-space: nowrap;
  transition: color var(--transition);
}

.nav-text-link:hover,
.nav-text-link.active {
  color: #b3b3b3;
  font-weight: 500;
}

.nav-text-link.active {
  color: #fff;
  font-weight: 600;
}

.nav-text-link .chevron {
  width: 12px;
  height: 12px;
  opacity: 0.8;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition);
}

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

.nav-link svg {
  width: 18px;
  height: 18px;
}

.nav-link .chevron {
  width: 14px;
  height: 14px;
  opacity: 0.6;
  transition: transform var(--transition);
}

.nav-link.open .chevron {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 220px;
  background: rgba(20, 20, 20, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  z-index: 120;
}

.dropdown-section + .dropdown-section {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dropdown-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px 8px;
}

.dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  transition: background var(--transition), color var(--transition);
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.nav-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(420px, 42vw);
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid #fff;
}

.nav-search-form.hidden {
  display: none;
}

.nav-search-form input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
}

.nav-search-cancel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #fff;
  flex-shrink: 0;
}

.nav-search-cancel svg {
  width: 18px;
  height: 18px;
}

.nav-search-submit {
  padding: 6px 14px;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 2px;
  flex-shrink: 0;
}

.nav-search-submit:hover {
  background: var(--accent-hover);
}

.navbar.navbar--search-open .nav-links {
  opacity: 0;
  pointer-events: none;
}

.navbar.navbar--search-open {
  background: #141414;
}

.search-page {
  padding: calc(var(--nav-height) + 32px) 4% 80px;
  min-height: 100vh;
}

.search-page-header {
  margin-bottom: 28px;
}

.search-page-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.search-page-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.search-page-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.search-page-grid .card-poster {
  aspect-ratio: 2 / 3;
}

body.search-view .navbar {
  background: #141414;
}

.empty-state {
  padding: 20px 16px;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
}

.detail-section .empty-state {
  grid-column: 1 / -1;
  text-align: left;
  padding: 8px 0;
}

.browse-page {
  padding: 20px 16px;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
}

.detail-section .empty-state {
  grid-column: 1 / -1;
  text-align: left;
  padding: 8px 0;
}

.browse-page {
  padding: calc(var(--nav-height) + 32px) 48px 80px;
  min-height: 100vh;
}

.browse-header {
  margin-bottom: 28px;
}

.browse-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.browse-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px 16px;
}

.browse-grid .card {
  width: 100%;
}

.browse-grid .card-poster {
  aspect-ratio: 16 / 9;
}

body.browse-view .navbar,
body.search-view .navbar {
  background: rgba(0, 0, 0, 0.95);
}

.nav-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transition: opacity var(--transition);
}

.nav-icon-btn:hover {
  opacity: 0.7;
}

.nav-icon-btn svg {
  width: 24px;
  height: 24px;
}

.nav-my-list {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.88rem;
  font-weight: 600;
  transition: color var(--transition), background var(--transition);
}

.nav-my-list:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-my-list svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.nav-my-list.hidden {
  display: none;
}

.nav-pricing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 4px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  background: rgba(229, 9, 20, 0.18);
  border: 1px solid rgba(229, 9, 20, 0.45);
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.nav-pricing:hover,
.nav-pricing.active {
  color: #fff;
  background: rgba(229, 9, 20, 0.32);
  border-color: rgba(229, 9, 20, 0.65);
}

.nav-pricing svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.nav-pricing.hidden {
  display: none;
}

.nav-profile {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  transition: opacity var(--transition);
}

.nav-profile.open .nav-profile-chevron {
  transform: rotate(180deg);
}

.nav-profile-dropdown {
  position: relative;
  z-index: 121;
  pointer-events: auto;
}

.profile-dropdown-menu {
  min-width: 240px;
  right: 0;
  left: auto;
  padding: 12px;
}

.profile-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 4px;
}

.profile-dropdown-avatar {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #3b3b3b;
  position: relative;
}

.profile-dropdown-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.profile-dropdown-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-dropdown-user {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.profile-dropdown-signout {
  color: rgba(255, 255, 255, 0.75);
}

.nav-profile:hover {
  opacity: 0.85;
}

.nav-profile-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: #3b3b3b;
  color: #fff;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  isolation: isolate;
}

.nav-profile-avatar .nav-profile-initial,
.nav-profile-avatar .nav-profile-art {
  position: absolute;
  inset: 0;
}

.nav-profile-avatar .nav-profile-initial,
.nav-profile-avatar .nav-profile-art {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-profile-avatar::before,
.nav-profile-avatar::after {
  content: none;
  display: none;
}

.nav-profile-avatar.is-signed-in {
  background: var(--profile-color, #1e90ff);
}

.nav-profile-avatar.has-art .nav-profile-art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.nav-profile-avatar.has-art .nav-profile-art svg {
  width: 100%;
  height: 100%;
  display: block;
}

.nav-profile-avatar .nav-profile-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  color: #fff;
  display: block;
  flex-shrink: 0;
  fill: none;
  z-index: 1;
}

.nav-profile-art {
  display: none;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.nav-profile-initial {
  z-index: 2;
}

.nav-profile-avatar.has-art .nav-profile-art {
  display: flex;
}

.nav-profile-icon path {
  fill: none;
  stroke: currentColor;
}

.nav-profile-avatar.is-signed-in .nav-profile-icon,
.nav-profile-avatar.has-art .nav-profile-icon {
  display: none;
}

.nav-profile-initial,
.profile-avatar-letter {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.nav-profile-initial:empty,
.profile-avatar-letter:empty {
  display: none;
}

.nav-profile-chevron {
  width: 12px;
  height: 12px;
  opacity: 0.9;
  transition: transform var(--transition);
}

.nav-icon-btn--disabled,
.nav-icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ===== Pricing page ===== */
.pricing-page {
  position: relative;
  padding: calc(var(--nav-height) + 48px) 48px 88px;
  min-height: 100vh;
  overflow: hidden;
}

.pricing-page-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(229, 9, 20, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(229, 9, 20, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 50% 35% at 0% 80%, rgba(120, 40, 200, 0.08) 0%, transparent 45%),
    linear-gradient(180deg, #0a0a0a 0%, #000 100%);
}

.pricing-page-content {
  position: relative;
  z-index: 1;
}

.pricing-page-header {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.pricing-page-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(229, 9, 20, 0.2);
  border: 1px solid rgba(229, 9, 20, 0.35);
}

.pricing-page-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  margin-bottom: 14px;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.75) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pricing-page-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.6;
}

.pricing-page-footnote {
  max-width: 480px;
  margin: 36px auto 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
}

.pricing-plans {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.pricing-plans--page {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  overflow: visible;
  padding-bottom: 0;
  scroll-snap-type: none;
}

.pricing-plans--page .pricing-plan {
  flex: none;
  min-width: 0;
  scroll-snap-align: unset;
  padding: 28px 22px 22px;
  min-height: 100%;
}

@media (max-width: 1100px) {
  .pricing-plans--page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .pricing-plan--featured {
    transform: none;
  }
}

.pricing-plan {
  position: relative;
  flex: 1 0 200px;
  min-width: 200px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 14px 14px 12px;
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.pricing-plan:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.pricing-plan--save {
  border-color: rgba(255, 255, 255, 0.14);
}

.pricing-plan--featured {
  background: linear-gradient(165deg, rgba(229, 9, 20, 0.35) 0%, rgba(20, 20, 20, 0.95) 55%, rgba(255, 255, 255, 0.04) 100%);
  border-color: rgba(229, 9, 20, 0.55);
  box-shadow:
    0 0 0 1px rgba(229, 9, 20, 0.2),
    0 20px 60px rgba(229, 9, 20, 0.18),
    0 8px 32px rgba(0, 0, 0, 0.4);
  transform: scale(1.03);
  z-index: 2;
}

.pricing-plan--featured:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(229, 9, 20, 0.35),
    0 24px 64px rgba(229, 9, 20, 0.25),
    0 12px 40px rgba(0, 0, 0, 0.45);
}

.pricing-plan-ribbon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #ff4d4d 0%, var(--accent) 100%);
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.45);
  white-space: nowrap;
}

.pricing-plan-top {
  margin-bottom: 20px;
}

.pricing-plan-tier {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 6px;
}

.pricing-plan-name {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 14px;
}

.pricing-plan-tag {
  align-self: flex-start;
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pricing-plan-tag--hot {
  color: #fff;
  background: rgba(229, 9, 20, 0.5);
  border-color: rgba(229, 9, 20, 0.6);
}

.pricing-plan-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px;
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.04em;
}

.pricing-plan-currency {
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  margin-right: 2px;
}

.pricing-plan-cents {
  font-size: 1.5rem;
  font-weight: 800;
}

.pricing-plan-period {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  margin-left: 4px;
}

.pricing-plan-note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.4;
  margin-top: 8px;
}

.pricing-plan-features {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-plan-features li {
  position: relative;
  padding-left: 22px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.35;
}

.pricing-plan-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.45);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234ade80' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 10px;
  background-position: center;
  background-repeat: no-repeat;
}

.pricing-plan--featured .pricing-plan-features li::before {
  background-color: rgba(229, 9, 20, 0.2);
  border-color: rgba(255, 120, 120, 0.5);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b6b' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.pricing-plan-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: auto;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-plan-cta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.pricing-plan-cta:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.pricing-plan-cta:hover svg {
  transform: translateX(3px);
}

.pricing-plan-cta--featured {
  background: linear-gradient(135deg, #ff3b3b 0%, var(--accent) 50%, #c40812 100%);
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(229, 9, 20, 0.4);
}

.pricing-plan-cta--featured:hover {
  background: linear-gradient(135deg, #ff4d4d 0%, var(--accent-hover) 50%, #e50914 100%);
  border-color: transparent;
  box-shadow: 0 12px 32px rgba(229, 9, 20, 0.5);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  width: 100%;
  height: 56.25vw;
  min-height: 480px;
  max-height: 90vh;
  overflow: hidden;
  cursor: pointer;
}

.hero-actions {
  cursor: default;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center 20%;
  transition: background-image 0.35s ease;
}

.detail-hero-backdrop {
  background-size: cover;
  background-position: center 20%;
  transition: background-image 0.35s ease;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(77deg, rgba(0, 0, 0, 0.6) 0%, transparent 85%),
    linear-gradient(180deg, transparent 0%, transparent 55%, var(--bg) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.2) 0%, transparent 40%);
}

.hero-content {
  position: absolute;
  bottom: 28%;
  left: 4%;
  max-width: 36rem;
  z-index: 3;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.45);
}

.title-with-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.title-with-badge .title-text {
  min-width: 0;
}

.title-coming-soon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  text-shadow: none;
}

.title-coming-soon--inline {
  font-size: 0.62rem;
  padding: 2px 8px;
  letter-spacing: 0.06em;
  vertical-align: middle;
}

.hero-bottom-meta {
  position: absolute;
  right: 4%;
  bottom: 24%;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-maturity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 2px 6px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.hero-meta .rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.hero-meta .rating svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.hero-meta .dot {
  opacity: 0.5;
  font-size: 0.6rem;
}

.hero-description {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-actions {
  display: flex;
  gap: 10px;
  position: relative;
  z-index: 4;
  pointer-events: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 1.5rem;
  min-height: 42px;
  border-radius: 4px;
  font-size: 1.05rem;
  font-weight: 700;
  transition: opacity var(--transition), background var(--transition);
}

.btn svg {
  width: 20px;
  height: 20px;
}

.btn-play {
  background: #fff;
  color: #000;
}

.btn-play:hover {
  background: rgba(255, 255, 255, 0.75);
}

.btn-more {
  background: rgba(109, 109, 110, 0.7);
  color: #fff;
}

.btn-more:hover {
  background: rgba(109, 109, 110, 0.45);
}

.btn-mylist-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-mylist-icon--check {
  display: none;
}

.btn-more.is-added .btn-mylist-icon--add {
  display: none;
}

.btn-more.is-added .btn-mylist-icon--check {
  display: block;
}

.btn-more.is-added {
  background: rgba(255, 255, 255, 0.22);
  outline: 1px solid rgba(255, 255, 255, 0.35);
}

/* ===== Content Sections ===== */
.content {
  position: relative;
  z-index: 2;
  margin-top: -6rem;
  padding: 0 4% 4rem;
}

.row-section {
  margin-bottom: var(--section-gap);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.1rem, 1.4vw, 1.4rem);
  font-weight: 700;
  color: #e5e5e5;
  padding-left: 0;
  border-left: none;
}

.section-title .chevron {
  width: 18px;
  height: 18px;
  opacity: 0.5;
  margin-left: 2px;
}

.section-tabs {
  display: flex;
  gap: 20px;
}

.tab {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}

.tab:hover {
  color: var(--text);
}

.tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* ===== Carousel ===== */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.carousel {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 6px 0 20px;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel-btn {
  position: absolute;
  top: 0;
  bottom: 20px;
  transform: none;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4%;
  min-width: 40px;
  max-width: 60px;
  height: auto;
  background: rgba(20, 20, 20, 0.5);
  border-radius: 0;
  color: white;
  opacity: 0;
  transition: opacity var(--transition), background var(--transition);
}

.carousel-wrapper:hover .carousel-btn {
  opacity: 1;
}

.carousel-btn:hover {
  background: rgba(20, 20, 20, 0.8);
}

.carousel-btn-left {
  left: 0;
}

.carousel-btn-right {
  right: 0;
}

/* ===== Cards ===== */
.card {
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.3s ease;
}

#homePage .card:hover,
#homePage .card:focus-visible {
  transform: scale(1.08);
  z-index: 5;
}

.card--poster-only .card-info {
  display: none;
}

.carousel-portrait .card {
  width: clamp(110px, 14vw, 180px);
}

.carousel-portrait .card-poster {
  aspect-ratio: 2 / 3;
}

/* ===== Top 10 Row ===== */
.carousel-top10 {
  gap: 0;
  padding: 8px 0 16px;
  padding-left: 2%;
}

.carousel-top10 .top10-item-info,
.carousel-top10 .card-info {
  display: none !important;
}

.top10-item {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  flex-shrink: 0;
  margin-right: clamp(14px, 2.2vw, 32px);
  cursor: pointer;
  transition: transform 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center bottom;
}

.top10-item-media {
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
}

.top10-item-info {
  padding: 6px 2px 0;
  min-width: 0;
}

.top10-item-info .card-info {
  padding: 0;
}

#homePage .top10-item:hover,
#homePage .top10-item:focus-within {
  transform: scale(1.06);
  z-index: 6;
}

#homePage .top10-item:hover .card,
#homePage .top10-item:focus-within .card {
  transform: none;
}

.top10-rank {
  flex-shrink: 0;
  align-self: flex-end;
  margin-right: -0.04em;
  margin-bottom: 0;
  font-size: clamp(4.5rem, 11vw, 8.5rem);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.06em;
  color: rgba(12, 12, 12, 0.92);
  -webkit-text-stroke: 3px rgba(255, 255, 255, 0.95);
  paint-order: stroke fill;
  text-shadow:
    0 0 18px rgba(0, 0, 0, 0.95),
    0 3px 10px rgba(0, 0, 0, 0.85),
    2px 0 0 rgba(0, 0, 0, 0.7),
    -2px 0 0 rgba(0, 0, 0, 0.7);
  user-select: none;
  z-index: 0;
  pointer-events: none;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.65));
}

.top10-rank--1 {
  margin-right: -0.1em;
  font-size: clamp(5rem, 12.5vw, 9.25rem);
  letter-spacing: 0.02em;
  -webkit-text-stroke-width: 4px;
  text-shadow:
    0 0 22px rgba(0, 0, 0, 1),
    0 4px 14px rgba(0, 0, 0, 0.95),
    3px 0 0 rgba(0, 0, 0, 0.85),
    -3px 0 0 rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(0, 0, 0, 0.9);
}

.top10-rank--wide {
  font-size: clamp(3.6rem, 9vw, 7rem);
  margin-right: -0.1em;
  letter-spacing: -0.08em;
}

.top10-item .card {
  position: relative;
  z-index: 1;
  width: clamp(118px, 15vw, 196px);
}

.carousel-top10 .card-poster {
  border-radius: 4px;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.32s ease;
}

.top10-item:hover .card-poster,
.top10-item:focus-within .card-poster {
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.row-section[data-section="top10"] .section-header {
  margin-bottom: 4px;
}

.row-section[data-section="top10"] .section-title {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.card-poster {
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  background: var(--bg-card);
}

.card-mylist-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(42, 42, 42, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.75);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
  transition: opacity var(--transition), transform var(--transition), background var(--transition), border-color var(--transition);
}

.card:hover .card-mylist-btn,
.card:focus-within .card-mylist-btn,
.card-mylist-btn:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.card-mylist-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #fff;
}

.card-mylist-btn.is-added {
  background: rgba(255, 255, 255, 0.95);
  border-color: #fff;
  color: #141414;
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.card-mylist-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.card-mylist-icon--check {
  display: none;
}

.card-mylist-btn.is-added .card-mylist-icon--add {
  display: none;
}

.card-mylist-btn.is-added .card-mylist-icon--check {
  display: block;
}

.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.card-badge {
  position: absolute;
  z-index: 2;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.card-badge--new {
  left: 0;
  right: 0;
  bottom: 0;
  padding: 4px 8px;
  background: var(--accent);
  color: #fff;
  text-align: left;
}

.carousel-landscape .card,
.card--landscape {
  width: clamp(220px, 18vw, 320px);
}

.carousel-landscape .card-poster,
.card--landscape .card-poster {
  aspect-ratio: 16 / 9;
}

.carousel-landscape .card-info {
  padding: 6px 2px 0;
}

.carousel-landscape .card-title {
  font-size: 0.82rem;
  margin-bottom: 2px;
}

.carousel-landscape .card-meta {
  font-size: 0.72rem;
}

.card-info {
  padding: 10px 4px 0;
  min-width: 0;
}

.card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px;
  letter-spacing: 0.01em;
}

.card--portrait .card-info {
  padding: 8px 2px 0;
}

.card--portrait .card-title {
  font-size: 0.82rem;
  line-height: 1.25;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  min-width: 0;
  max-width: 100%;
}

.card--portrait .card-meta {
  font-size: 0.68rem;
  gap: 3px 5px;
  line-height: 1.35;
}

.card-meta .rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: rgba(255, 255, 255, 0.75);
  flex-shrink: 0;
}

.card-meta .meta-year,
.card-meta .meta-type {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card--portrait .card-meta .meta-type-sep {
  display: none;
}

.card--portrait .card-meta .meta-type {
  flex: 0 0 100%;
  max-width: 100%;
}

.card-meta .rating svg {
  width: 12px;
  height: 12px;
  color: var(--accent);
}

.card-meta .sep {
  opacity: 0.4;
}

/* ===== Utility ===== */
.hidden {
  display: none !important;
}

/* ===== Back Button ===== */
.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-right: 8px;
  border-radius: 50%;
  transition: background var(--transition);
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.back-btn svg {
  width: 22px;
  height: 22px;
}

/* ===== Detail Page ===== */
.detail-page {
  padding: calc(var(--nav-height) + 32px) 48px 80px;
  min-height: 100vh;
}

.detail-section {
  margin-bottom: 48px;
  position: relative;
  z-index: 2;
}

.detail-section .section-title {
  margin-bottom: 20px;
  border-left: none;
  padding-left: 0;
}

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

.actor-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #1a1a1a;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.actor-card:hover {
  background: #222;
}

.actor-card.selected {
  border-color: var(--accent);
}

.actor-card.selected .actor-name {
  color: var(--accent);
}

.actor-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: #333;
}

.actor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.actor-info {
  min-width: 0;
}

.actor-name {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--transition);
}

.actor-role {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* ===== Episodes ===== */
.season-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 16px;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.season-tabs::-webkit-scrollbar {
  display: none;
}

.season-tab {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
}

.season-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.season-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.episodes-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.episode-card {
  display: flex;
  gap: 14px;
  padding: 10px;
  border-radius: 10px;
  background: #1a1a1a;
  border: 1px solid transparent;
  text-align: left;
  transition: all var(--transition);
  cursor: pointer;
}

.episode-card:hover {
  background: #222;
}

.episode-card.selected {
  border-color: var(--accent);
}

.episode-thumb {
  position: relative;
  flex-shrink: 0;
  width: 140px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #333;
}

.episode-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.episode-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity var(--transition);
}

.episode-card:hover .episode-play-icon {
  opacity: 1;
}

.episode-play-icon svg {
  width: 28px;
  height: 28px;
}

.episode-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.episode-num {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}

.episode-runtime {
  font-size: 0.78rem;
  color: var(--text-muted);
}

#detailPage .carousel-wrapper {
  position: relative;
  z-index: 2;
}

#detailPage .carousel {
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

#detailPage .carousel .card {
  pointer-events: auto;
}

#detailPage .carousel .card:hover {
  transform: scale(1.03);
}

#detailPage .carousel-wrapper:hover .carousel-btn {
  opacity: 1;
}

body.detail-view .navbar {
  background: rgba(0, 0, 0, 0.95);
}

body.detail-view .scroll-top {
  opacity: 1;
  visibility: visible;
}

/* ===== Detail Hero ===== */
.detail-hero {
  position: relative;
  min-height: 480px;
  margin: -32px -48px 40px;
  overflow: hidden;
}

.detail-hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  transition: background-image 0.35s ease;
  z-index: 0;
}

.detail-hero-content {
  position: relative;
  z-index: 3;
  padding: 48px;
  max-width: 640px;
  margin-top: 40px;
}

.detail-hero-content .detail-actions {
  cursor: default;
}

.detail-hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(0,0,0,0.4) 40%, transparent 70%),
    linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, transparent 80%),
    linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 25%);
}

.detail-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.15;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 14px;
}

.detail-meta .rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.detail-meta .rating svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.detail-meta .dot {
  opacity: 0.5;
  font-size: 0.6rem;
}

.detail-overview {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
}

.detail-signin-hint {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 420px;
  line-height: 1.45;
}

.detail-signin-hint.hidden {
  display: none;
}

.detail-actions .btn-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ===== Vidsrc Player ===== */
.player-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: none;
}

.player-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.player-title {
  flex: 1;
  min-width: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.player-title.title-with-badge {
  white-space: nowrap;
}

.player-title.title-with-badge .title-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1 1 auto;
}

.player-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.player-source-bar {
  display: flex;
  gap: 8px;
  padding: 10px 24px;
  overflow-x: auto;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.player-source-bar::-webkit-scrollbar {
  display: none;
}

.player-source-btn {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.player-source-btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
}

.player-source-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.player-fullscreen {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background var(--transition);
}

.player-fullscreen:hover {
  background: rgba(255, 255, 255, 0.1);
}

.player-fullscreen svg {
  width: 20px;
  height: 20px;
}

.player-fullscreen svg.hidden {
  display: none;
}

.player-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background var(--transition);
}

.player-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.player-close svg {
  width: 22px;
  height: 22px;
}

.player-overlay:fullscreen,
.player-overlay:-webkit-full-screen {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-overlay:fullscreen .player-frame-wrap,
.player-overlay:-webkit-full-screen .player-frame-wrap {
  flex: 1;
  min-height: 0;
}

.player-overlay:fullscreen .player-frame-wrap iframe,
.player-overlay:-webkit-full-screen .player-frame-wrap iframe {
  width: 100%;
  height: 100%;
}

.player-frame-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #000;
}

.player-play-prompt {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
}

.player-play-prompt.hidden {
  display: none;
}

.player-play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #000;
  transition: transform 0.2s ease, background 0.2s ease;
}

.player-play-btn:hover {
  transform: scale(1.06);
  background: #fff;
}

.player-play-btn svg {
  width: 28px;
  height: 28px;
  margin-left: 3px;
}

.player-ad-blocker {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  cursor: wait;
}

.player-ad-blocker-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.player-ad-blocker.hidden {
  display: none;
  pointer-events: none;
}

.player-drama-ad-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
  cursor: wait;
  pointer-events: auto;
}

.player-drama-ad-overlay--ready {
  background: rgba(0, 0, 0, 0.72);
  cursor: default;
}

.player-drama-ad-overlay.hidden {
  display: none;
  pointer-events: none;
}

.player-drama-ad-overlay-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 32px;
  max-width: 340px;
  text-align: center;
}

.player-drama-ad-overlay-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: player-drama-spin 0.75s linear infinite;
}

.player-drama-ad-overlay--ready .player-drama-ad-overlay-spinner {
  display: none;
}

@keyframes player-drama-spin {
  to {
    transform: rotate(360deg);
  }
}

.player-drama-ad-overlay-text {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.player-drama-ad-overlay-hint {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
  font-weight: 500;
}

.player-drama-ad-overlay-hint.hidden {
  display: none;
}

.player-drama-ad-overlay-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #000;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.player-drama-ad-overlay-play:hover {
  transform: scale(1.06);
  background: #fff;
}

.player-drama-ad-overlay-play.hidden {
  display: none;
}

.player-drama-ad-overlay-play svg {
  width: 30px;
  height: 30px;
  margin-left: 3px;
}

.player-fallback {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
  background: rgba(0, 0, 0, 0.88);
}

.player-fallback.hidden {
  display: none;
}

.player-server3-badge-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 180px;
  height: 56px;
  z-index: 25;
  background: #000 !important;
  border-radius: 0 0 10px 0;
  pointer-events: none;
}

.player-server3-badge-mask.hidden {
  display: none;
}

.player-fallback p {
  max-width: 360px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.player-frame-wrap iframe {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: none;
  overflow: hidden;
}

.player-native-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.player-native-video.hidden {
  display: none;
}

html.player-open,
body.player-open {
  overflow: hidden;
  height: 100%;
  overscroll-behavior: none;
}

body.player-open .navbar {
  display: none;
}

body.player-open .scroll-top {
  display: none;
}

/* ===== Scroll to Top ===== */
.site-footer {
  padding: 48px 48px 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #0a0a0a;
  color: rgba(255, 255, 255, 0.55);
}

.site-footer-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.site-footer-brand {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.site-footer-text {
  font-size: 0.85rem;
  line-height: 1.55;
}

.site-footer-text a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.player-open .site-footer,
body.detail-view .site-footer {
  display: none;
}

.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(40, 40, 40, 0.9);
  border-radius: 50%;
  color: white;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: rgba(60, 60, 60, 0.95);
  transform: translateY(-2px);
}

.scroll-top svg {
  width: 20px;
  height: 20px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .nav-search-form {
    min-width: min(320px, 50vw);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 56px;
    --page-gutter: 12px;
  }

  .site-footer {
    padding: 32px var(--page-gutter) 48px;
  }

  .navbar {
    padding: 0 var(--page-gutter);
    gap: 8px;
  }

  .nav-left {
    gap: 6px;
    min-width: 0;
    flex: 1 1 auto;
  }

  .nav-links {
    display: none;
  }

  .logo {
    margin-right: 0;
  }

  .pricing-page {
    padding: calc(var(--nav-height) + 32px) var(--page-gutter) 56px;
  }

  .pricing-page-header {
    margin-bottom: 32px;
  }

  .pricing-plans--page {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 12px 0 8px;
    gap: 14px;
    margin: 0 calc(-1 * var(--page-gutter));
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
  }

  .pricing-plans--page .pricing-plan {
    flex: 0 0 min(82vw, 280px);
    min-width: min(82vw, 280px);
    scroll-snap-align: center;
    padding: 24px 18px 18px;
    transform: none !important;
  }

  .pricing-plans--page .pricing-plan--featured:hover {
    transform: translateY(-4px) !important;
  }

  .pricing-plan-price {
    font-size: 2.1rem;
  }

  .pricing-plan-cents {
    font-size: 1.25rem;
  }

  .nav-search-form {
    position: static;
    min-width: 0;
    width: 100%;
    padding: 6px 8px;
    border-radius: 4px;
  }

  .nav-search-submit {
    display: none;
  }

  .navbar.navbar--search-open .nav-left {
    display: none;
  }

  .navbar.navbar--search-open .nav-right {
    flex: 1;
    min-width: 0;
    width: 100%;
    gap: 10px;
  }

  .navbar.navbar--search-open .nav-my-list,
  .navbar.navbar--search-open .nav-pricing {
    display: none;
  }

  .navbar.navbar--search-open .nav-search-wrap {
    flex: 1;
    min-width: 0;
  }

  .navbar.navbar--search-open .nav-search-form {
    display: flex;
  }

  .navbar.navbar--search-open .nav-profile-dropdown {
    flex-shrink: 0;
  }

  .search-page {
    padding: calc(var(--nav-height) + 16px) var(--page-gutter) 48px;
  }

  .search-page-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .logo-image {
    height: 20px;
    max-width: 88px;
  }

  .nav-right {
    gap: 14px;
  }

  .nav-profile-chevron {
    display: none;
  }

  .nav-icon-btn {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .back-btn {
    flex-shrink: 0;
  }

  .hero {
    height: 68vh;
    min-height: 400px;
    max-height: 640px;
  }

  .hero-content {
    left: var(--page-gutter);
    right: var(--page-gutter);
    bottom: 48px;
    max-width: none;
  }

  .hero-title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    margin-bottom: 10px;
  }

  .hero-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }

  .hero-actions .btn {
    width: auto;
    padding: 9px 20px;
    font-size: 0.85rem;
  }

  .content {
    margin-top: 0;
    padding: 16px var(--page-gutter) 48px;
  }

  .section-header {
    padding: 0;
  }

  .carousel {
    padding: 8px var(--page-gutter) 14px;
    gap: 8px;
  }

  .carousel-btn {
    display: none !important;
  }

  .carousel-portrait .card {
    width: clamp(108px, 30vw, 140px);
  }

  .carousel-top10 {
    padding-left: var(--page-gutter);
  }

  .top10-item {
    margin-right: 12px;
  }

  .top10-rank {
    font-size: clamp(2.35rem, 13vw, 3.5rem);
    -webkit-text-stroke-width: 2px;
    margin-right: -2px;
    margin-bottom: 0;
    line-height: 0.82;
  }

  .top10-rank--1 {
    margin-right: -3px;
    font-size: clamp(2.7rem, 15vw, 4rem);
    -webkit-text-stroke-width: 2.5px;
  }

  .top10-rank--wide {
    font-size: clamp(1.95rem, 10vw, 3rem);
    margin-right: -3px;
    letter-spacing: -0.06em;
  }

  .top10-item .card {
    width: clamp(96px, 28vw, 128px);
  }

  .top10-item-info {
    padding-top: 5px;
    max-width: clamp(120px, 36vw, 160px);
  }

  .top10-item-info .card-title {
    font-size: clamp(0.72rem, 3.1vw, 0.82rem);
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .top10-item-info .card-meta {
    font-size: clamp(0.62rem, 2.7vw, 0.7rem);
  }

  .carousel-portrait .card-title {
    font-size: clamp(0.72rem, 3.1vw, 0.82rem);
  }

  .carousel-portrait .card-meta {
    font-size: clamp(0.62rem, 2.7vw, 0.7rem);
  }

  .carousel-portrait .card-meta .rating svg {
    width: 10px;
    height: 10px;
  }

  .carousel-landscape .card,
  .card--landscape {
    width: clamp(180px, 56vw, 260px);
  }

  .row-section {
    margin-bottom: 28px;
  }

  .row-section:first-child {
    margin-top: 0;
  }

  .row-section:first-child .section-header {
    margin-bottom: 12px;
  }

  .section-title {
    font-size: 1.05rem;
  }

  .browse-page {
    padding: calc(var(--nav-height) + 16px) var(--page-gutter) 48px;
  }

  .browse-header {
    margin-bottom: 16px;
    padding: 0;
  }

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

  .browse-title {
    font-size: 1.5rem;
  }

  .browse-grid .card-poster {
    aspect-ratio: 16 / 9;
  }

  .episode-thumb {
    width: 120px;
  }

  .section-tabs {
    gap: 12px;
  }

  .tab {
    font-size: 0.8rem;
  }

  .detail-page {
    padding: var(--nav-height) 0 48px;
  }

  .detail-hero {
    margin: 0 0 24px;
    min-height: 380px;
  }

  .detail-hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px var(--page-gutter) 24px;
    margin-top: 0;
    max-width: 100%;
  }

  .detail-title {
    font-size: clamp(1.2rem, 4.2vw, 1.6rem);
    letter-spacing: 0.3px;
    line-height: 1.2;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .detail-meta {
    font-size: 0.78rem;
    gap: 6px;
    margin-bottom: 4px;
  }

  .detail-overview {
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 14px;
    -webkit-line-clamp: 3;
  }

  .detail-section {
    padding: 0;
  }

  .detail-page .detail-section {
    padding: 0 var(--page-gutter);
  }

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

@media (max-width: 480px) {
  :root {
    --page-gutter: 10px;
  }

  .navbar {
    padding: 0 var(--page-gutter);
    gap: 6px;
  }

  .logo-image {
    height: 22px;
    max-width: 92px;
  }

  .nav-right {
    gap: 8px;
  }

  .nav-link {
    gap: 3px;
    padding: 5px 6px;
    font-size: 0.7rem;
  }

  .player-header {
    padding: 12px var(--page-gutter);
    padding-top: max(12px, env(safe-area-inset-top));
    gap: 10px;
  }

  .player-title {
    font-size: 0.92rem;
  }

  .player-header-actions {
    gap: 6px;
  }

  .player-source-bar {
    padding: 8px var(--page-gutter);
    gap: 6px;
  }

  .player-source-btn {
    padding: 6px 12px;
    font-size: 0.72rem;
  }

  .nav-icon-btn {
    width: 34px;
    height: 34px;
  }

  .content {
    padding: 12px var(--page-gutter) 40px;
  }

  .carousel {
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
  }

  .row-section:first-child {
    margin-top: 0;
  }

  .hero-content {
    left: var(--page-gutter);
    right: var(--page-gutter);
    bottom: 40px;
  }

  .browse-page {
    padding: calc(var(--nav-height) + 12px) var(--page-gutter) 40px;
  }

  .detail-page {
    padding: var(--nav-height) 0 40px;
  }

  .detail-hero {
    min-height: 360px;
  }

  .detail-hero-content {
    padding: 16px var(--page-gutter) 20px;
  }

  .detail-section {
    padding: 0 var(--page-gutter);
  }

  .carousel-portrait .card {
    width: clamp(96px, 32vw, 120px);
  }

  .carousel-portrait .card-title {
    font-size: clamp(0.68rem, 3.4vw, 0.76rem);
    -webkit-line-clamp: 2;
  }

  .carousel-portrait .card-meta {
    font-size: clamp(0.58rem, 2.9vw, 0.66rem);
    gap: 2px 4px;
  }

  .carousel-landscape .card,
  .card--landscape {
    width: clamp(150px, 62vw, 200px);
  }

  .detail-title {
    font-size: clamp(1.05rem, 4vw, 1.35rem);
    -webkit-line-clamp: 4;
  }

  .detail-meta {
    font-size: 0.72rem;
  }

  .detail-overview {
    font-size: 0.78rem;
    -webkit-line-clamp: 2;
  }

  .browse-grid {
    gap: 6px;
  }

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

@media (hover: none) {
  #homePage .card:hover,
  #homePage .card:focus-visible,
  .card:hover {
    transform: none;
    box-shadow: none;
  }

  .carousel-btn {
    display: none !important;
  }

  .carousel-wrapper:hover .carousel-btn {
    opacity: 0 !important;
  }
}

/* ===== Auth ===== */
body.auth-open,
body.admin-open {
  overflow: hidden;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-modal.hidden {
  display: none;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.auth-panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 28px;
  border-radius: 16px;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.auth-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.auth-close svg {
  width: 18px;
  height: 18px;
}

.auth-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.auth-tab {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
}

.auth-tab.active {
  background: var(--accent);
  color: #fff;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.auth-form input {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.auth-form input:focus {
  outline: none;
  border-color: rgba(229, 9, 20, 0.5);
}

.auth-submit {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
}

.auth-error {
  margin-top: 14px;
  color: #ff6b6b;
  font-size: 0.85rem;
}

.auth-user-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.auth-user-meta {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.auth-admin-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-admin-panel.hidden {
  display: none;
}

.auth-admin-form {
  margin-top: 0;
}

.auth-success {
  color: #7ee787;
  font-size: 0.85rem;
}

.auth-success.hidden {
  display: none;
}

.auth-panel--admin {
  width: min(100%, 520px);
  max-height: min(88vh, 860px);
  overflow-y: auto;
}

.admin-manage-panel {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-manage-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.admin-manage-hint {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
  margin-bottom: 14px;
}

.admin-users-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-users-empty {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 12px 0;
}

.admin-user-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-user-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-user-names {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.admin-user-display {
  font-size: 0.92rem;
  font-weight: 600;
}

.admin-user-handle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.admin-user-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
}

.admin-user-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
}

.admin-user-tag--self {
  background: rgba(229, 9, 20, 0.18);
  color: #ff8f95;
}

.admin-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-user-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  transition: background var(--transition), border-color var(--transition), opacity var(--transition);
}

.admin-user-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.admin-user-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.admin-user-btn--danger {
  border-color: rgba(229, 9, 20, 0.45);
  background: rgba(229, 9, 20, 0.12);
}

.admin-user-btn--danger:hover:not(:disabled) {
  background: rgba(229, 9, 20, 0.22);
}

.admin-user-btn--ghost {
  background: transparent;
}

.admin-user-password-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}

.admin-user-password-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.admin-user-password-form input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
}

.admin-user-password-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ===== Profile ===== */
body.profile-open {
  overflow: hidden;
}

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 185;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.profile-modal.hidden {
  display: none;
}

.profile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.profile-panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(90vh, 720px);
  overflow-y: auto;
  padding: 28px;
  border-radius: 16px;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.profile-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.profile-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.profile-subtitle {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 22px;
  line-height: 1.45;
}

.profile-preview-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.profile-dropdown-avatar.is-signed-in {
  background: var(--profile-color, #1e90ff);
}

.profile-dropdown-avatar.has-art .profile-avatar-art,
.profile-dropdown-avatar.has-art .nav-profile-art {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.profile-dropdown-avatar.has-art svg {
  width: 100%;
  height: 100%;
  display: block;
}

.profile-preview-avatar {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #3b3b3b;
  flex-shrink: 0;
}

.profile-preview-avatar.has-art .profile-avatar-art,
.profile-preview-avatar.has-art .nav-profile-art {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.profile-preview-avatar.has-art .profile-avatar-art svg,
.profile-preview-avatar.has-art .nav-profile-art svg {
  width: 100%;
  height: 100%;
}

.profile-preview-name {
  font-size: 1.15rem;
  font-weight: 700;
}

.profile-preview-user {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.profile-readonly {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 22px;
}

.profile-readonly-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.profile-readonly-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-readonly-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.profile-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.profile-avatar-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.profile-avatar-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 8px;
  transition: border-color var(--transition), transform var(--transition);
}

.profile-avatar-option:hover {
  transform: scale(1.04);
}

.profile-avatar-option.is-selected {
  border-color: #fff;
}

.profile-avatar-option-inner {
  width: 56px;
  height: 56px;
  border-radius: 4px;
}

.profile-avatar-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 520px) {
  .profile-avatar-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .profile-dropdown-menu {
    right: -8px;
  }
}
