.navbar-wrapper {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 1000;
  pointer-events: none;
}

.navbar-container {
  pointer-events: all;
  width: 90%;
  max-width: 1100px;
  height: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 20px;
  gap: 16px;
}

.liquid-glass-nav {
  --nav-light-x: 50%;
  --nav-light-y: 50%;
  --nav-tilt-x: 0deg;
  --nav-tilt-y: 0deg;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at var(--nav-light-x) var(--nav-light-y), rgba(255, 255, 255, 0.68) 0%, rgba(255, 255, 255, 0.28) 20%, transparent 45%),
    radial-gradient(circle at 12% 18%, rgba(255, 215, 130, 0.22), transparent 34%),
    radial-gradient(circle at 86% 72%, rgba(140, 245, 225, 0.2), transparent 36%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.58), rgba(255, 247, 221, 0.28) 38%, rgba(229, 255, 248, 0.24) 68%, rgba(255, 255, 255, 0.46));
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(22px) saturate(190%) contrast(1.08);
  -webkit-backdrop-filter: blur(22px) saturate(190%) contrast(1.08);
  box-shadow:
    0 18px 42px rgba(10, 73, 62, 0.13),
    0 6px 20px rgba(253, 171, 27, 0.1),
    inset 0 1px 1px rgba(255, 255, 255, 0.92),
    inset 0 -14px 26px rgba(10, 73, 62, 0.08);
  transform: perspective(900px) rotateX(var(--nav-tilt-x)) rotateY(var(--nav-tilt-y));
  transition:
    transform 180ms ease,
    box-shadow 320ms ease,
    border-color 320ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .liquid-glass-nav:hover {
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow:
      0 22px 54px rgba(10, 73, 62, 0.16),
      0 8px 28px rgba(253, 171, 27, 0.16),
      inset 0 1px 1px rgba(255, 255, 255, 0.96),
      inset 0 -16px 30px rgba(10, 73, 62, 0.1);
  }
}

.liquid-glass-nav::before,
.liquid-glass-nav::after,
.liquid-glass-caustics,
.liquid-glass-shimmer,
.liquid-glass-rim {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.liquid-glass-nav::before {
  content: '';
  z-index: 0;
  background:
    radial-gradient(circle at calc(var(--nav-light-x) + 8%) calc(var(--nav-light-y) - 22%), rgba(255, 255, 255, 0.72) 0 8%, transparent 25%),
    radial-gradient(circle at calc(var(--nav-light-x) - 18%) calc(var(--nav-light-y) + 34%), rgba(253, 171, 27, 0.26), transparent 34%),
    radial-gradient(circle at 80% 16%, rgba(56, 197, 180, 0.24), transparent 32%);
  filter: blur(10px);
  opacity: 0.9;
  animation: liquid-light-drift 8s ease-in-out infinite alternate;
}

.liquid-glass-nav::after {
  content: '';
  z-index: 2;
  padding: 1px;
  background:
    radial-gradient(120% 150% at var(--nav-light-x) calc(var(--nav-light-y) - 18%), rgba(255, 255, 255, 0.88), transparent 31%),
    conic-gradient(from 220deg at 50% 50%, transparent 0 9%, rgba(255, 255, 255, 0.55) 12%, transparent 19% 43%, rgba(255, 214, 132, 0.48) 49%, transparent 57% 78%, rgba(142, 255, 235, 0.44) 84%, transparent 91% 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  mix-blend-mode: screen;
  opacity: 0.58;
  filter: blur(0.15px);
}

.liquid-glass-caustics {
  z-index: 0;
  inset: -45%;
  background:
    conic-gradient(from 84deg at var(--nav-light-x) var(--nav-light-y), transparent 0deg, rgba(255, 255, 255, 0.38) 32deg, transparent 72deg, rgba(253, 171, 27, 0.24) 128deg, transparent 190deg, rgba(30, 176, 157, 0.18) 255deg, transparent 360deg),
    repeating-linear-gradient(110deg, transparent 0 28px, rgba(255, 255, 255, 0.17) 29px 31px, transparent 32px 62px);
  filter: blur(18px);
  opacity: 0.58;
  transform: translate3d(-3%, 0, 0) rotate(0.001deg);
  animation: liquid-caustic-flow 11s linear infinite;
}

.liquid-glass-shimmer {
  z-index: 1;
  background:
    linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.1) 28%, rgba(255, 255, 255, 0.72) 45%, rgba(255, 236, 183, 0.44) 53%, transparent 72%),
    radial-gradient(circle at var(--nav-light-x) var(--nav-light-y), rgba(255, 255, 255, 0.42), transparent 36%);
  mix-blend-mode: screen;
  opacity: 0.52;
  transform: translateX(-58%) skewX(-16deg);
  animation: liquid-shimmer-sweep 4.8s ease-in-out infinite;
}

.liquid-glass-rim {
  z-index: 2;
  background:
    radial-gradient(80% 160% at var(--nav-light-x) -30%, rgba(255, 255, 255, 0.82), transparent 42%),
    radial-gradient(42% 100% at calc(var(--nav-light-x) + 24%) 112%, rgba(255, 230, 176, 0.46), transparent 56%),
    linear-gradient(100deg, transparent 0 12%, rgba(255, 255, 255, 0.42) 17%, transparent 27% 72%, rgba(157, 255, 239, 0.32) 82%, transparent 92%);
  box-shadow:
    inset 0 1px 10px rgba(255, 255, 255, 0.28),
    inset 0 -10px 18px rgba(10, 73, 62, 0.08);
  mix-blend-mode: screen;
  opacity: 0.72;
  animation: liquid-rim-breathe 5.6s ease-in-out infinite;
}

.navbar-logo-area,
.navbar-links,
.navbar-right {
  position: relative;
  z-index: 3;
}

.navbar-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 38px;
  width: auto;
}

.navbar-logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.online-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  background: rgba(46, 213, 115, 0.1);
  border: 1px solid rgba(46, 213, 115, 0.25);
  font-size: 0.72rem;
  font-weight: 700;
  color: #2ed573;
  font-family: 'Be Vietnam Pro', sans-serif;
  white-space: nowrap;
  line-height: 1;
  cursor: default;
}

.online-dot {
  width: 6px;
  height: 6px;
  background: #2ed573;
  border-radius: 50%;
  flex-shrink: 0;
  animation: online-pulse 2s ease-in-out infinite;
  box-shadow: 0 0 4px rgba(46, 213, 115, 0.6);
}

@keyframes online-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.navbar-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.nav-link {
  --item-light-x: 50%;
  --item-light-y: 50%;
  --item-pull-x: 0px;
  --item-pull-y: 0px;
  text-decoration: none;
  color: var(--color-dark);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition:
    color 240ms ease,
    background 260ms ease,
    box-shadow 260ms ease,
    border-radius 360ms cubic-bezier(0.2, 0.85, 0.22, 1.25),
    transform 260ms cubic-bezier(0.2, 0.85, 0.22, 1.25);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  clip-path: inset(0 round var(--radius-pill));
  background:
    radial-gradient(circle at var(--item-light-x) var(--item-light-y), rgba(255, 255, 255, 0.28), transparent 36%),
    rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translate3d(var(--item-pull-x), var(--item-pull-y), 0) scale(1);
}

.nav-link::before {
  content: '';
  position: absolute;
  inset: -55%;
  border-radius: inherit;
  background:
    radial-gradient(circle at var(--item-light-x) var(--item-light-y), rgba(255, 255, 255, 0.82), rgba(255, 246, 219, 0.36) 24%, transparent 48%),
    radial-gradient(circle at calc(var(--item-light-x) + 28%) calc(var(--item-light-y) + 18%), rgba(253, 171, 27, 0.28), transparent 34%);
  opacity: 0;
  transform: scale(0.28) translate3d(-8%, 8%, 0);
  transition: opacity 240ms ease, transform 420ms cubic-bezier(0.19, 1, 0.22, 1);
  pointer-events: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background:
    linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.12) 24%, rgba(255, 255, 255, 0.76) 45%, rgba(255, 218, 138, 0.4) 53%, transparent 75%);
  opacity: 0;
  transform: translateX(-110%) skewX(-18deg);
  pointer-events: none;
}

.nav-link > svg,
.nav-link .nav-text {
  position: relative;
  z-index: 1;
  transition:
    transform 260ms cubic-bezier(0.2, 0.85, 0.22, 1.25),
    filter 260ms ease,
    text-shadow 260ms ease;
}

.nav-item-wrapper {
  position: relative;
  display: flex;
}

.admin-error-badge {
  position: absolute;
  z-index: 3;
}

.btn-nav-flat {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  position: relative;
}

@media (hover: hover) and (pointer: fine) {
  .nav-link:hover,
  .btn-nav-flat:hover {
    background:
      radial-gradient(circle at var(--item-light-x) var(--item-light-y), rgba(255, 255, 255, 0.58), transparent 42%),
      linear-gradient(135deg, rgba(255, 255, 255, 0.48), rgba(255, 246, 221, 0.28));
    border-color: rgba(255, 255, 255, 0.38);
    border-radius: var(--radius-pill);
    transform: translate3d(var(--item-pull-x), calc(var(--item-pull-y) - 1px), 0) scale(1.025);
    color: var(--color-primary-dark);
    box-shadow:
      0 8px 18px rgba(10, 73, 62, 0.08),
      inset 0 1px 6px rgba(255, 255, 255, 0.62);
    animation: liquid-button-wobble 620ms cubic-bezier(0.19, 1, 0.22, 1) both;
  }

  .nav-link:hover::before,
  .btn-nav-flat:hover::before {
    opacity: 0.88;
    transform: scale(1) translate3d(0, 0, 0);
  }

  .nav-link:hover::after,
  .btn-nav-flat:hover::after {
    animation: liquid-button-sheen 760ms ease both;
  }

  .nav-link:hover > svg,
  .btn-nav-flat:hover > svg {
    transform: translate3d(-1px, -1px, 0) rotate(-5deg) scale(1.08);
    filter: drop-shadow(0 4px 7px rgba(253, 171, 27, 0.3));
  }

  .nav-link:hover .nav-text,
  .btn-nav-flat:hover .nav-text {
    transform: translate3d(1px, -0.5px, 0);
    text-shadow: 0 1px 10px rgba(255, 255, 255, 0.82);
  }
}

.nav-link.active {
  background:
    linear-gradient(135deg, rgba(253, 171, 27, 0.98), rgba(255, 196, 82, 0.92));
  color: white;
  border-color: rgba(255, 232, 180, 0.42);
  box-shadow:
    0 8px 22px rgba(253, 171, 27, 0.35),
    inset 0 1px 6px rgba(255, 255, 255, 0.22),
    inset 0 -6px 14px rgba(155, 91, 0, 0.14);
}

@media (hover: hover) and (pointer: fine) {
  .nav-link.active:hover {
    background:
      radial-gradient(circle at var(--item-light-x) var(--item-light-y), rgba(255, 255, 255, 0.5), transparent 44%),
      linear-gradient(135deg, rgba(253, 171, 27, 0.98), rgba(255, 196, 82, 0.92));
    box-shadow:
      0 9px 24px rgba(253, 171, 27, 0.38),
      inset 0 1px 9px rgba(255, 255, 255, 0.42),
      inset 0 -6px 14px rgba(155, 91, 0, 0.14);
  }
}

.navbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.admin-error-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ff4757;
  color: white;
  font-size: 0.65rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(255, 71, 87, 0.4);
  animation: pulse-error 2s infinite;
}

@keyframes pulse-error {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7); }
  50% { transform: scale(1.1); box-shadow: 0 0 0 4px rgba(255, 71, 87, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
}

.lang-toggle {
  --item-light-x: 50%;
  --item-light-y: 50%;
  --item-pull-x: 0px;
  --item-pull-y: 0px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 8px 14px;
}

.logout-btn {
  --item-light-x: 50%;
  --item-light-y: 50%;
  --item-pull-x: 0px;
  --item-pull-y: 0px;
  padding: 8px 12px;
  color: #d63031;
}

.navbar-right .liquid-glass-action {
  position: relative;
  overflow: hidden;
  clip-path: inset(0 round var(--radius-pill));
  border-color: rgba(255, 255, 255, 0.34);
  background:
    radial-gradient(circle at var(--item-light-x) var(--item-light-y), rgba(255, 255, 255, 0.35), transparent 38%),
    rgba(255, 255, 255, 0.5);
  transform: translate3d(var(--item-pull-x), var(--item-pull-y), 0) scale(1);
  transition:
    color 220ms ease,
    background 260ms ease,
    box-shadow 260ms ease,
    border-radius 360ms cubic-bezier(0.2, 0.85, 0.22, 1.25),
    transform 260ms cubic-bezier(0.2, 0.85, 0.22, 1.25);
}

.navbar-right .liquid-glass-action::before,
.navbar-right .liquid-glass-action::after {
  content: '';
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
}

.navbar-right .liquid-glass-action::before {
  inset: -60%;
  background:
    radial-gradient(circle at var(--item-light-x) var(--item-light-y), rgba(255, 255, 255, 0.86), rgba(255, 243, 207, 0.36) 24%, transparent 48%),
    radial-gradient(circle at calc(var(--item-light-x) + 26%) calc(var(--item-light-y) + 22%), rgba(30, 176, 157, 0.18), transparent 36%);
  opacity: 0;
  transform: scale(0.25) translate3d(-8%, 8%, 0);
  transition: opacity 240ms ease, transform 420ms cubic-bezier(0.19, 1, 0.22, 1);
}

.navbar-right .liquid-glass-action::after {
  inset: -2px;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.12) 24%, rgba(255, 255, 255, 0.82) 46%, rgba(255, 218, 138, 0.36) 54%, transparent 76%);
  opacity: 0;
  transform: translateX(-110%) skewX(-18deg);
}

.navbar-right .liquid-glass-action svg,
.navbar-right .liquid-glass-action span {
  position: relative;
  z-index: 1;
  transition:
    transform 260ms cubic-bezier(0.2, 0.85, 0.22, 1.25),
    filter 260ms ease,
    text-shadow 260ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .navbar-right .liquid-glass-action:hover {
    background:
      radial-gradient(circle at var(--item-light-x) var(--item-light-y), rgba(255, 255, 255, 0.74), transparent 44%),
      linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(238, 255, 250, 0.45));
    border-color: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-pill);
    box-shadow:
      0 8px 18px rgba(10, 73, 62, 0.08),
      inset 0 1px 8px rgba(255, 255, 255, 0.72);
    transform: translate3d(var(--item-pull-x), calc(var(--item-pull-y) - 1px), 0) scale(1.025);
    animation: liquid-button-wobble 620ms cubic-bezier(0.19, 1, 0.22, 1) both;
  }

  .navbar-right .liquid-glass-action:hover::before {
    opacity: 0.9;
    transform: scale(1) translate3d(0, 0, 0);
  }

  .navbar-right .liquid-glass-action:hover::after {
    animation: liquid-button-sheen 760ms ease both;
  }

  .navbar-right .liquid-glass-action:hover svg {
    transform: translate3d(-1px, -1px, 0) rotate(-5deg) scale(1.08);
    filter: drop-shadow(0 4px 7px rgba(10, 73, 62, 0.18));
  }

  .navbar-right .liquid-glass-action:hover span {
    transform: translate3d(1px, -0.5px, 0);
    text-shadow: 0 1px 10px rgba(255, 255, 255, 0.82);
  }
}

.nav-link.liquid-pulse,
.btn-nav-flat.liquid-pulse {
  background:
    radial-gradient(circle at var(--item-light-x) var(--item-light-y), rgba(255, 255, 255, 0.58), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.48), rgba(255, 246, 221, 0.28));
  border-color: rgba(255, 255, 255, 0.38);
  color: var(--color-primary-dark);
  box-shadow:
    0 8px 18px rgba(10, 73, 62, 0.08),
    inset 0 1px 6px rgba(255, 255, 255, 0.62);
  animation: liquid-button-pulse 820ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

.nav-link.liquid-touch-pulse.liquid-pulse,
.btn-nav-flat.liquid-touch-pulse.liquid-pulse,
.navbar-right .liquid-glass-action.liquid-touch-pulse.liquid-pulse {
  animation-duration: 1680ms;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link.active.liquid-pulse {
  background:
    radial-gradient(circle at var(--item-light-x) var(--item-light-y), rgba(255, 255, 255, 0.5), transparent 44%),
    linear-gradient(135deg, rgba(253, 171, 27, 0.98), rgba(255, 196, 82, 0.92));
  color: white;
  box-shadow:
    0 9px 24px rgba(253, 171, 27, 0.38),
    inset 0 1px 9px rgba(255, 255, 255, 0.42),
    inset 0 -6px 14px rgba(155, 91, 0, 0.14);
}

.nav-link.liquid-pulse::before,
.btn-nav-flat.liquid-pulse::before {
  opacity: 0.88;
  transform: scale(1) translate3d(0, 0, 0);
}

.nav-link.liquid-pulse::after,
.btn-nav-flat.liquid-pulse::after {
  animation: liquid-button-sheen 760ms ease both;
}

.nav-link.liquid-touch-pulse.liquid-pulse::after,
.btn-nav-flat.liquid-touch-pulse.liquid-pulse::after,
.navbar-right .liquid-glass-action.liquid-touch-pulse.liquid-pulse::after {
  animation-duration: 1320ms;
}

.nav-link.liquid-pulse > svg,
.btn-nav-flat.liquid-pulse > svg {
  transform: translate3d(-1px, -1px, 0) rotate(-5deg) scale(1.08);
  filter: drop-shadow(0 4px 7px rgba(253, 171, 27, 0.3));
}

.nav-link.liquid-pulse .nav-text,
.btn-nav-flat.liquid-pulse .nav-text {
  transform: translate3d(1px, -0.5px, 0);
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.82);
}

.navbar-right .liquid-glass-action.liquid-pulse {
  background:
    radial-gradient(circle at var(--item-light-x) var(--item-light-y), rgba(255, 255, 255, 0.74), transparent 44%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(238, 255, 250, 0.45));
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow:
    0 8px 18px rgba(10, 73, 62, 0.08),
    inset 0 1px 8px rgba(255, 255, 255, 0.72);
  animation: liquid-button-pulse 820ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

.navbar-right .liquid-glass-action.liquid-pulse::before {
  opacity: 0.9;
  transform: scale(1) translate3d(0, 0, 0);
}

.navbar-right .liquid-glass-action.liquid-pulse::after {
  animation: liquid-button-sheen 760ms ease both;
}

.navbar-right .liquid-glass-action.liquid-pulse svg {
  transform: translate3d(-1px, -1px, 0) rotate(-5deg) scale(1.08);
  filter: drop-shadow(0 4px 7px rgba(10, 73, 62, 0.18));
}

.navbar-right .liquid-glass-action.liquid-pulse span {
  transform: translate3d(1px, -0.5px, 0);
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.82);
}

@media (hover: none), (pointer: coarse) {
  .navbar-right .btn-glass:not(.liquid-pulse):hover,
  .navbar-logo.hover-spring:hover {
    transform: none;
  }

  .navbar-right .btn-glass:not(.liquid-pulse):hover {
    background:
      radial-gradient(circle at var(--item-light-x) var(--item-light-y), rgba(255, 255, 255, 0.35), transparent 38%),
      rgba(255, 255, 255, 0.5);
  }
}

@keyframes liquid-light-drift {
  0% {
    transform: translate3d(-1.5%, -5%, 0) scale(1);
  }
  100% {
    transform: translate3d(2.5%, 5%, 0) scale(1.08);
  }
}

@keyframes liquid-caustic-flow {
  0% {
    transform: translate3d(-4%, -2%, 0) rotate(0deg);
  }
  100% {
    transform: translate3d(4%, 2%, 0) rotate(360deg);
  }
}

@keyframes liquid-shimmer-sweep {
  0%, 18% {
    opacity: 0;
    transform: translateX(-78%) skewX(-16deg);
  }
  46% {
    opacity: 0.68;
  }
  72%, 100% {
    opacity: 0;
    transform: translateX(78%) skewX(-16deg);
  }
}

@keyframes liquid-rim-breathe {
  0%, 100% {
    opacity: 0.56;
    transform: translate3d(0, 0, 0);
  }
  45% {
    opacity: 0.82;
    transform: translate3d(0.8%, -2%, 0);
  }
  70% {
    opacity: 0.66;
    transform: translate3d(-0.6%, 1.2%, 0);
  }
}

@keyframes liquid-button-wobble {
  0% {
    transform: translate3d(var(--item-pull-x), var(--item-pull-y), 0) scaleX(1) scaleY(1);
  }
  35% {
    transform: translate3d(calc(var(--item-pull-x) * 1.5), calc(var(--item-pull-y) - 2px), 0) scaleX(1.07) scaleY(0.93);
  }
  65% {
    transform: translate3d(calc(var(--item-pull-x) * 0.8), calc(var(--item-pull-y) - 0.5px), 0) scaleX(0.98) scaleY(1.04);
  }
  100% {
    transform: translate3d(var(--item-pull-x), calc(var(--item-pull-y) - 1px), 0) scale(1.025);
  }
}

@keyframes liquid-button-pulse {
  0% {
    transform: translate3d(var(--item-pull-x), var(--item-pull-y), 0) scaleX(1) scaleY(1);
  }
  24% {
    transform: translate3d(calc(var(--item-pull-x) * 1.5), calc(var(--item-pull-y) - 2px), 0) scaleX(1.07) scaleY(0.93);
  }
  46% {
    transform: translate3d(calc(var(--item-pull-x) * 0.8), calc(var(--item-pull-y) - 0.5px), 0) scaleX(0.98) scaleY(1.04);
  }
  62%, 86% {
    transform: translate3d(var(--item-pull-x), calc(var(--item-pull-y) - 1px), 0) scale(1.025);
  }
  100% {
    transform: translate3d(var(--item-pull-x), calc(var(--item-pull-y) - 1px), 0) scale(1.025);
  }
}

@keyframes liquid-button-sheen {
  0% {
    opacity: 0;
    transform: translateX(-110%) skewX(-18deg);
  }
  35% {
    opacity: 0.82;
  }
  100% {
    opacity: 0;
    transform: translateX(110%) skewX(-18deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .liquid-glass-nav,
  .liquid-glass-nav::before,
  .liquid-glass-rim,
  .liquid-glass-caustics,
  .liquid-glass-shimmer,
  .nav-link,
  .nav-link::before,
  .nav-link::after,
  .liquid-glass-action,
  .liquid-glass-action::before,
  .liquid-glass-action::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 768px) {
  .navbar-container {
    padding: 0 10px;
    gap: 4px;
    height: 52px;
  }
  .liquid-glass-nav {
    backdrop-filter: blur(16px) saturate(165%);
    -webkit-backdrop-filter: blur(16px) saturate(165%);
    box-shadow:
      0 12px 34px rgba(10, 73, 62, 0.13),
      inset 0 1px 1px rgba(255, 255, 255, 0.9),
      inset 0 -10px 20px rgba(10, 73, 62, 0.07);
  }
  .liquid-glass-caustics {
    opacity: 0.42;
    filter: blur(14px);
  }
  .liquid-glass-shimmer {
    opacity: 0.36;
  }
  .navbar-links {
    gap: 2px;
  }
  .nav-link, .btn-nav-flat {
    padding: 6px 10px;
    font-size: 0.8rem;
    gap: 4px;
  }
  .nav-link svg, .btn-nav-flat svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }
  .nav-text {
    display: inline;
    font-size: 0.78rem;
  }
  .admin-mobile-hide {
    display: none !important;
  }
  .nav-logo-img {
    height: 26px;
  }
  .lang-toggle {
    padding: 6px 10px;
    gap: 4px;
    font-size: 0.8rem;
  }
  .lang-toggle svg {
    width: 14px;
    height: 14px;
  }
  .logout-btn {
    padding: 6px 8px;
  }
  .navbar-right {
    gap: 4px;
  }
  .navbar-logo-area {
    gap: 5px;
  }
  .online-badge {
    padding: 2px 6px 2px 5px;
    font-size: 0.65rem;
    gap: 3px;
  }
  .online-badge svg {
    display: none;
  }
  .online-dot {
    width: 5px;
    height: 5px;
  }
}
.footer-container {
  padding: 0;
  margin-top: 72px;
  border-radius: 34px 34px 0 0;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 252, 250, 0.96));
  border: 1px solid rgba(10, 73, 62, 0.06);
  box-shadow: 0 -18px 50px rgba(10, 73, 62, 0.06);
}
.footer-container::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(253, 171, 27, 0.55), transparent);
  pointer-events: none;
}
.footer-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 30px;
  padding: 30px 40px;
}
.footer-left,
.footer-right {
  min-width: 0;
}
.footer-left h3 {
  margin-bottom: 6px;
  letter-spacing: -0.035em;
}
.footer-left p,
.footer-right p {
  margin: 0;
}
.footer-center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.footer-right {
  text-align: right;
}
.premium-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(10, 73, 62, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 251, 249, 0.92));
  color: #075447;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  font-family: inherit;
  box-shadow:
    0 10px 28px rgba(10, 73, 62, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 220ms cubic-bezier(0.2, 0.85, 0.22, 1.25), border-color 180ms ease, box-shadow 220ms ease;
}
.premium-btn::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  border: 1px solid rgba(253, 171, 27, 0.24);
  pointer-events: none;
}
.premium-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0 34%, rgba(253, 171, 27, 0.16) 48%, transparent 62% 100%);
  transform: translateX(-120%);
  transition: transform 620ms cubic-bezier(0.19, 1, 0.22, 1);
  z-index: -1;
}
.premium-btn:hover {
  border-color: rgba(253, 171, 27, 0.46);
  box-shadow:
    0 14px 34px rgba(10, 73, 62, 0.11),
    0 0 0 5px rgba(253, 171, 27, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.premium-btn:hover::before {
  transform: translateX(120%);
}
.premium-btn-glow {
  position: absolute;
  width: 80px;
  height: 80px;
  right: -34px;
  bottom: -52px;
  border-radius: 999px;
  background: rgba(253, 171, 27, 0.18);
  filter: blur(18px);
  pointer-events: none;
}
.crown-icon {
  color: #d58a00;
  stroke-width: 2.5;
}
.premium-text {
  color: #075447;
  font-size: 0.92rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.premium-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
/* =========================================
   VIP PREMIUM MODAL ELEGANT REDESIGN
========================================= */

.premium-modal {
  background: linear-gradient(145deg, #ffffff, #fefcf7);
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 32px;
  position: relative;
  box-shadow: 
    0 0 0 1px rgba(253, 171, 27, 0.15),
    0 40px 100px rgba(0, 0, 0, 0.25),
    0 0 60px rgba(253, 171, 27, 0.08);
  display: flex;
  flex-direction: column;
  color: var(--color-dark);
  font-family: 'Be Vietnam Pro', sans-serif !important;
}
.premium-modal::-webkit-scrollbar {
  width: 6px;
}
.premium-modal::-webkit-scrollbar-thumb {
  background: rgba(10, 73, 62, 0.2);
  border-radius: 10px;
}
.close-premium {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-dark-light);
  z-index: 10;
  transition: var(--transition-smooth);
}
.close-premium:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--color-dark);
  transform: scale(1.1);
}
.premium-fake-pricing {
  width: 100%;
  border-radius: 32px;
  background: linear-gradient(160deg, rgba(253, 171, 27, 0.12), rgba(10, 73, 62, 0.04));
  padding: 40px 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
}
.premium-badge.prominent {
  background: linear-gradient(135deg, #166b5c, #0a493e);
  padding: 12px 28px;
  border-radius: 50px;
  border: 3px solid #fdab1b;
  box-shadow: 0 8px 25px rgba(253, 171, 27, 0.4);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: scale(1.05);
}
.fake-title {
  color: #fdab1b !important; 
  font-weight: 800;
  font-size: 1.08rem !important;
  letter-spacing: 1.4px;
  margin: 0;
  white-space: nowrap;
}
.premium-compliment {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-dark);
  text-align: center;
  margin: 0 0 32px;
  line-height: 1.4;
}
.centered-features {
  display: flex;
  justify-content: center;
  width: 100%;
}
.features-inner-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.feat-item.align-left {
  justify-content: flex-start;
}
.feat-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.feat-icon-wrap {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fdab1b, #e59300);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(253, 171, 27, 0.3);
}
.feat-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-dark);
}
.premium-truth {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 0 28px 32px;
  gap: 20px;
  position: relative;
}
.truth-content {
  background: rgba(10, 73, 62, 0.04);
  padding: 24px 20px 18px;
  border-radius: 20px;
  position: relative;
  margin-top: 12px;
}
.truth-icon {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 4px;
  border-radius: 50%;
  border: 1.5px dashed rgba(10, 73, 62, 0.2);
}
.truth-desc {
  line-height: 1.6;
  font-size: 0.9rem;
  color: var(--color-dark);
  text-align: center;
  font-weight: 500;
}
.qr-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.qr-box {
  width: 100px;
  height: 100px;
  background: white;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(10, 73, 62, 0.1);
  border: 1px solid rgba(10, 73, 62, 0.05);
}
.qr-coming-soon {
  font-size: 0.85rem;
  color: var(--color-dark-light);
  margin-bottom: 12px;
  text-align: center;
  font-weight: 600;
  opacity: 0.8;
}
@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
    padding: 28px 22px;
  }
  .footer-right {
    text-align: center;
  }
}
@media (max-width: 520px) {
  .footer-container {
    margin-top: 48px;
    border-radius: 26px 26px 0 0;
  }
  .footer-content {
    padding: 24px 16px;
    gap: 16px;
  }
  .footer-left h3 {
    font-size: 1.16rem !important;
  }
  .premium-btn {
    min-height: 44px;
    padding: 0 16px;
  }
  .premium-text {
    font-size: 0.82rem;
  }
  .premium-badge.prominent {
    padding: 10px 18px;
  }
  .fake-title {
    font-size: 0.82rem !important;
    letter-spacing: 0.8px;
  }
}
.home-container {
  display: flex;
  flex-direction: column;
  gap: 60px;
}
.hero-banner {
  width: 100%;
  aspect-ratio: 21/8;
  height: auto;
  border-radius: 64px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(10, 73, 62, 0.18);
}
.banner-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.banner-content {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.banner-floating-tags {
  position: relative;
  width: 100%;
  height: 100%;
}
.floating-tag {
  position: absolute;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  animation: float-tag 6s ease-in-out infinite alternate;
  color: white;
  pointer-events: auto;
}
.tag-1 { top: 15%; left: 8%; animation-delay: 0s; }
.tag-2 { bottom: 15%; left: 12%; animation-delay: -2s; }
.tag-3 { bottom: 20%; right: 10%; animation-delay: -4s; }
@keyframes float-tag {
  0% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0); }
}
.search-filter-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.search-bar-wrapper {
  position: relative;
  width: 100%;
  max-width: 560px;
}
.search-input {
  width: 100%;
  padding: 18px 52px;
  font-size: 1.1rem;
  font-family: inherit;
  color: var(--color-dark);
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(10, 73, 62, 0.15);
  box-shadow: 0 12px 32px rgba(10, 73, 62, 0.12);
  transition: var(--transition-smooth);
}
.search-input:hover, .search-input:focus {
  background: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 12px 32px rgba(253, 171, 27, 0.2);
}
.search-icon {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  pointer-events: none;
  color: var(--color-dark-light); }
.search-clear {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-dark-light);
  display: flex;
  align-items: center;
  z-index: 5;
}
.filter-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.filter-sep {
  color: var(--color-dark-light);
  opacity: 0.4;
  font-size: 1.2rem;
  padding: 0 4px;
}
.filter-pill {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-dark);
  cursor: pointer;
  transition: var(--transition-dynamic);
}
.filter-pill:hover {
  background: rgba(253, 171, 27, 0.12);
  transform: translateY(-2px);
}
.filter-pill.active {
  background: var(--color-dark);
  color: white;
  border-color: var(--color-dark);
}
.no-result {
  text-align: center;
  padding: 48px;
  border-radius: var(--radius-lg);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-dark-light);
}
.movie-section {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.section-title {
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-icon {
  opacity: 0.9;
}
.count-badge {
  background: var(--color-primary);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}
.history-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: -10px;
}
.history-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.history-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px; }
.history-scroll::-webkit-scrollbar {
  height: 6px;
}
.history-scroll::-webkit-scrollbar-thumb {
  background: rgba(10, 73, 62, 0.15);
  border-radius: 10px;
}
.hist-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  max-width: 300px;
  background: rgba(255, 255, 255, 0.75);
  padding: 12px;
  border-radius: 20px;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  position: relative;
}
.hist-poster {
  width: 50px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
}
.hist-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  gap: 4px;
}
.hist-title {
  font-size: 0.95rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-dark);
}
.hist-ep {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-primary);
}
.hist-play {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 8px;
  box-shadow: 0 4px 12px rgba(253, 171, 27, 0.3);
}
.watch-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(0, 0, 0, 0.4);
  z-index: 10;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  overflow: hidden;
}
.watch-progress-fill {
  height: 100%;
  background: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary);
  border-top-right-radius: 2px;
  border-bottom-right-radius: 2px;
}
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
}
.movie-card {
  border-radius: 28px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  position: relative;
  background: rgba(255, 255, 255, 0.4);
}
.spotlight-card {
  --mouse-x: 50%;
  --mouse-y: 50%;
}
.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.4),
    rgba(255, 255, 255, 0.1)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 10;
}
.spotlight-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(
    circle 250px at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.6),
    transparent 80%
  );
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
}
.spotlight-card:hover .spotlight-overlay {
  opacity: 1;
}
.relative-z {
  position: relative;
  z-index: 2;
}
.poster-area {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: 20px;
  overflow: hidden;
  background: #eee;
}
.poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.movie-card:hover .poster-img {
  transform: scale(1.06);
}
.tags-top {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  z-index: 2;
  pointer-events: none;
}
.poster-badges-left,
.poster-badges-right {
  position: absolute;
  top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
  pointer-events: none;
}
.poster-badges-left {
  left: 10px;
  align-items: flex-start;
  max-width: calc(100% - 112px);
}
.poster-badges-right {
  right: 10px;
  align-items: flex-end;
  max-width: 120px;
}
.tags-bottom {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
}
.tag {
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.movie-badge {
  min-height: 28px;
  max-width: 120px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: var(--radius-pill);
  letter-spacing: -0.01em;
  box-sizing: border-box;
}
.tag-eps {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(4px);
  color: var(--color-dark);
}
.tag-new {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(253, 171, 27, 0.4);
}
.movie-badge.is-new,
.tag-new-ep {
  background: #ff5b6e;
  color: white;
  box-shadow: 0 4px 12px rgba(255, 91, 110, 0.34);
}
.movie-badge.is-type,
.tag-eps {
  background: rgba(255, 255, 255, 0.92);
  color: #075447;
}
.movie-badge.is-duration,
.tag-duration {
  background: #ffaa18;
  color: white;
}
.movie-card .tag-status {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(10, 73, 62, 0.08);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
.movie-card .tag-status.ongoing {
  color: #ff4757;
  background: rgba(255, 255, 255, 0.75);
}
.movie-card .tag-status.completed {
  color: var(--color-dark);
  background: rgba(255, 255, 255, 0.75);
}
.movie-info {
  padding: 4px 4px 2px;
}
.movie-title {
  font-size: 1rem;
  margin-bottom: 2px;
  line-height: 1.3;
}
.movie-subtitle {
  font-size: 0.82rem;
  opacity: 0.7;
}
.movie-meta {
  font-size: 0.78rem;
  margin-top: 4px;
  opacity: 0.6;
}
.tag-new {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(253, 171, 27, 0.4);
  animation: pulse-glow 2s infinite alternate;
}
.tag-hot {
  background: linear-gradient(135deg, #ff4757, #ff6b81);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
  animation: pulse-glow-hot 2s infinite alternate;
}
.tag-duration {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(253, 171, 27, 0.3);
}
@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(253, 171, 27, 0.4); }
  100% { box-shadow: 0 0 0 6px rgba(253, 171, 27, 0); }
}
@keyframes pulse-glow-hot {
  0% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.4); }
  100% { box-shadow: 0 0 0 6px rgba(255, 71, 87, 0); }
}
@media (max-width: 768px) {
  .home-container {
    gap: 20px;
  }
    .hero-banner {
    border-radius: 24px;
  }
  .search-input {
    min-width: unset;
    width: 100%;
    padding: 12px 24px 12px 42px;
    font-size: 0.95rem;
  }
  .search-icon {
    left: 16px;
    width: 18px;
  }
  .filter-pill {
    padding: 5px 12px;
    font-size: 0.78rem;
  }
  .search-filter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .filter-pills {
    justify-content: center;
    overflow-x: visible;
    flex-wrap: wrap;
    padding-bottom: 0;
  }
  .filter-pills::-webkit-scrollbar {
    height: 0;
  }
  .movie-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .movie-card {
    border-radius: 18px;
    padding: 7px;
    gap: 6px;
  }
  .poster-area {
    border-radius: 12px;
  }
  .movie-title {
    font-size: 0.82rem;
  }
  .movie-subtitle {
    font-size: 0.7rem;
  }
    .hist-card {
    min-width: 180px;
    max-width: 200px;
    padding: 10px;
    gap: 10px;
  }
  .hist-poster {
    width: 40px;
    height: 56px;
    border-radius: 8px;
  }
  .hist-title {
    font-size: 0.82rem;
  }
  .hist-ep {
    font-size: 0.75rem;
  }
  .hist-play {
    width: 26px;
    height: 26px;
  }
    .tags-bottom {
    bottom: 6px;
    left: 6px;
    right: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  .tags-top {
    top: 6px; left: 6px; right: 6px;
  }
  .poster-badges-left,
  .poster-badges-right {
    top: 6px;
    gap: 4px;
  }
  .poster-badges-left {
    left: 6px;
    max-width: calc(100% - 88px);
  }
  .poster-badges-right {
    right: 6px;
    max-width: 86px;
  }
  .tag {
    padding: 4px 8px;
    font-size: 0.65rem;
    white-space: nowrap;
    text-align: center;
  }
  .movie-badge {
    min-height: 23px;
    max-width: 86px;
    padding: 0 7px;
    font-size: 0.6rem;
    gap: 3px;
  }
  .tag-status {
    padding: 4px 8px;
    font-size: 0.65rem;
  }
    .section-title {
    font-size: 1.4rem;
  }
}
/* Home page liquid motion: use for interactive elements only */
.home-container {
  --home-motion-ease: cubic-bezier(0.19, 1, 0.22, 1);
  --home-motion-soft: cubic-bezier(0.2, 0.85, 0.22, 1.25);
}

.hero-banner,
.search-filter-row,
.history-section,
.movie-grid > * {
  animation: home-surface-rise 620ms var(--home-motion-ease) both;
}

.filter-pill,
.search-clear,
.hist-card,
.movie-card:not(.is-preview),
.hover-spring {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 260ms var(--home-motion-soft),
    box-shadow 240ms ease,
    background 220ms ease,
    border-color 180ms ease,
    color 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .filter-pill:hover,
  .search-clear:hover,
  .hist-card:hover,
  .movie-card:not(.is-preview):hover,
  .hover-spring:hover {
    animation: home-button-distort 640ms var(--home-motion-ease) both;
  }

  .filter-pill:hover svg,
  .search-clear:hover svg,
  .hist-card:hover svg,
  .movie-card:not(.is-preview):hover svg,
  .hover-spring:hover svg {
    animation: home-icon-wobble 620ms var(--home-motion-ease) both;
  }
}

.filter-pill:active,
.search-clear:active,
.hist-card:active,
.movie-card:not(.is-preview):active,
.hover-spring:active {
  animation: home-button-press 360ms var(--home-motion-ease) both;
}

.search-input:focus {
  animation: home-input-focus 420ms var(--home-motion-ease) both;
}

@keyframes home-surface-rise {
  0% { opacity: 0; transform: translateY(16px) scale(0.988); }
  62% { opacity: 1; transform: translateY(-2px) scale(1.003); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes home-button-distort {
  0% { transform: translateY(0) scaleX(1) scaleY(1); }
  34% { transform: translateY(-2px) scaleX(1.045) scaleY(0.94) skewX(-0.7deg); }
  66% { transform: translateY(-1px) scaleX(0.99) scaleY(1.035) skewX(0.35deg); }
  100% { transform: translateY(-1px) scaleX(1.014) scaleY(1); }
}

@keyframes home-button-press {
  0% { transform: scaleX(1.014) scaleY(1); }
  45% { transform: scaleX(0.95) scaleY(1.055); }
  100% { transform: scaleX(1) scaleY(1); }
}

@keyframes home-icon-wobble {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  35% { transform: translate3d(-1px, -2px, 0) rotate(-6deg) scale(1.08); }
  68% { transform: translate3d(1px, 0, 0) rotate(3deg) scale(0.99); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
}

@keyframes home-input-focus {
  0% { transform: scaleX(1) scaleY(1); }
  45% { transform: scaleX(1.015) scaleY(0.985); }
  100% { transform: scaleX(1) scaleY(1); }
}

@media (hover: none), (pointer: coarse) {
  .filter-pill:hover,
  .search-clear:hover,
  .hist-card:hover,
  .movie-card:not(.is-preview):hover,
  .hover-spring:hover {
    animation: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-container *,
  .home-container *::before,
  .home-container *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
.idol-container {
  display: flex;
  flex-direction: column;
  gap: 60px;
}
.profile-header {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 40px;
  border-radius: var(--radius-lg);
}
.avatar-huge {
  flex-shrink: 0;
  width: 300px;
  height: 300px;
  border-radius: var(--radius-pill);   overflow: hidden;
  box-shadow: 0 16px 40px rgba(10, 73, 62, 0.2);
  background: linear-gradient(135deg, #ffd782, #ffb433);
}
.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: white;
}
.idol-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.bio {
  padding: 24px;
  margin-top: 16px;
  max-width: 600px;
}
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }
  .avatar-huge {
    width: 200px;
    height: 200px;
  }
}
.watch-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  margin-top: -16px;
}
.watch-container.lights-off::before {
  content: '';
  position: fixed;
  inset: -100vh -100vw;
  background: #000;
  pointer-events: none;
  z-index: 4;
}
.dark-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  min-height: 100vh;
  background: #000;
  backdrop-filter: blur(10px);
  z-index: 5;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--color-dark);
  font-weight: 600;
  padding: 10px 20px;
  font-size: 0.9rem;
  align-self: flex-start;
  transition: var(--transition-dynamic);
}
.back-btn:hover {
  transform: translateX(-4px);
  background: rgba(255, 255, 255, 0.85);
}
.watch-back-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 50;
}
.back-btn-float {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--color-dark);
  text-decoration: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transition: var(--transition-dynamic);
}
.back-btn-float:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}
.video-player {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 36px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 32px 64px rgba(10, 73, 62, 0.3);
}
.video-iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.vp-root {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  cursor: pointer;
  border-radius: inherit;
  overflow: hidden;
  user-select: none;
}
.vp-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.vp-root.fixed-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  z-index: 99999 !important;
  border-radius: 0 !important;
  background: #000 !important;
}
.vp-root.fixed-fullscreen iframe.vp-video {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 100vw !important;
  height: 56.25vw !important; /* 100vw * 9/16 */
  max-height: 100dvh !important;
  max-width: 177.78dvh !important; /* 100dvh * 16/9 */
  aspect-ratio: 16/9 !important;
}
.vp-big-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: all;
  z-index: 5;
}
.vp-big-play > * {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}
.vp-big-play > *:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}
.vp-controls-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 20px 18px;
  background: linear-gradient(to top, rgba(10, 73, 62, 0.85) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: all;
  cursor: default;
  z-index: 10;
}
.vp-seek {
  width: 100%;
  padding: 8px 0;
  cursor: pointer;
  position: relative;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.vp-seek-track {
  position: relative;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 99px;
  overflow: visible;
  transition: height 0.18s ease;
}
.vp-seek:hover .vp-seek-track,
.vp-seek.dragging .vp-seek-track {
  height: 7px;
}
.vp-seek-buffer {
  position: absolute;
  top: 0; left: 0; height: 100%;
  background: rgba(255, 255, 255, 0.32);
  border-radius: inherit;
  pointer-events: none;
  transition: width 0.15s linear;
}
.vp-seek-progress {
  position: absolute;
  top: 0; left: 0; height: 100%;
  background: linear-gradient(90deg, #fdab1b, #ff9f43);
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(253, 171, 27, 0.6);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  transition: none;
}
.vp-seek-thumb {
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  transform: translateX(50%) scale(0);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}
.vp-seek:hover .vp-seek-thumb,
.vp-seek.dragging .vp-seek-thumb {
  transform: translateX(50%) scale(1);
}
.vp-seek.dragging .vp-seek-thumb {
  transform: translateX(50%) scale(1.25);
  box-shadow: 0 0 0 4px rgba(253, 171, 27, 0.25), 0 2px 8px rgba(0,0,0,0.5);
}
/* Hover time tooltip */
.vp-seek-hover-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Be Vietnam Pro', sans-serif;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 20;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.vp-seek-hover-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.85);
}
/* Skip animation badge */
.vp-skip-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  padding: 10px 16px;
  border-radius: 999px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.vp-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap; }
.vp-group {
  display: flex;
  align-items: center;
  gap: 4px;
}
.vp-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: white;
  padding: 7px 13px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.15);
  line-height: 1;
}
.vp-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.45);
  transform: scale(1.06) translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}
.vp-btn-play {
  background: rgba(253, 171, 27, 0.25);
  border-color: rgba(253, 171, 27, 0.45);
  padding: 8px 16px;
}
.vp-btn-play:hover {
  background: rgba(253, 171, 27, 0.45);
  border-color: rgba(253, 171, 27, 0.7);
  box-shadow: 0 4px 20px rgba(253, 171, 27, 0.4);
}
.vp-skip-label {
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.75;
  margin-left: -2px;
}
.vp-time {
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 0 6px;
  font-variant-numeric: tabular-nums;
}
.vp-volume-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.vp-volume-slider-pop {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.15);
  overflow: hidden;
  transform-origin: left center;
  z-index: 10;
}
.vp-volume-range {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 20px;
  background: transparent;
  outline: none;
  cursor: pointer;
  margin: 0;
}
.vp-volume-range::-webkit-slider-runnable-track {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #fdab1b var(--vol, 100%), rgba(255,255,255,0.25) var(--vol, 100%));
  border-radius: 99px;
  cursor: pointer;
}
.vp-volume-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 12px;
  width: 12px;
  border-radius: 50%;
  background: white;
  margin-top: -4.5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  cursor: pointer;
  transition: transform 0.15s;
}
.vp-volume-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}
.vp-speed-wrap {
  position: relative;
}
.vp-speed-btn {
  gap: 5px;
}
.vp-speed-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  background: rgba(15, 18, 28, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 82px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  z-index: 20;
}
.vp-speed-item {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.75);
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}
.vp-speed-item:hover {
  background: rgba(255,255,255,0.12);
  color: white;
}
.vp-speed-item.active {
  background: linear-gradient(135deg, rgba(253, 171, 27, 0.35), rgba(255, 159, 67, 0.25));
  color: #fdab1b;
  border: 1px solid rgba(253, 171, 27, 0.4);
}
.watch-toolbar {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-bottom: 16px;
}
.watch-toolbar > .server-selector {
  grid-column: 1;
  justify-self: start;
}
.watch-toolbar > .toolbar-ep-nav {
  grid-column: 2;
  justify-self: center;
}
.watch-toolbar > .action-nav {
  grid-column: 3;
  justify-self: end;
}
.server-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.server-selector::-webkit-scrollbar {
  display: none;
}
.player-controls-single-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
}
.ep-nav-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--glass-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 6px;
  border-radius: var(--radius-pill);
  border: var(--glass-border);
  box-shadow: 0 8px 24px rgba(10, 73, 62, 0.06);
}
.btn-ep {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--color-dark) !important;
  min-width: 110px;   justify-content: center;
  text-align: center;
}
.btn-ep:hover:not(:disabled) {
  background: rgba(10, 73, 62, 0.08) !important;
  transform: scale(1) !important; }
.ep-picker-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-dark);
  font-family: inherit;
  border: none;
  cursor: pointer;
  background: transparent;
  border-radius: var(--radius-pill);
  min-width: 110px;
  justify-content: center;
  transition: var(--transition-smooth);
  white-space: nowrap;
}
.ep-picker-btn:hover {
  background: rgba(10, 73, 62, 0.08);
}
.ep-picker-chevron {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  flex-shrink: 0;
}
.ep-picker-chevron.open {
  transform: rotate(180deg);
}
.ep-picker-menu {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 130px;
  max-height: 240px;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(10, 73, 62, 0.18), 0 4px 16px rgba(0,0,0,0.08);
  z-index: 100;
  scrollbar-width: thin;
  scrollbar-color: rgba(10,73,62,0.18) transparent;
}
.ep-picker-menu::-webkit-scrollbar {
  width: 4px;
}
.ep-picker-menu::-webkit-scrollbar-thumb {
  background: rgba(10,73,62,0.18);
  border-radius: 99px;
}
.ep-picker-item {
  padding: 8px 14px;
  border-radius: 12px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-dark);
  cursor: pointer;
  border: none;
  background: transparent;
  text-align: center;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.ep-picker-item:hover:not(.no-link) {
  background: rgba(10, 73, 62, 0.07);
  color: var(--color-dark);
}
.ep-picker-item.no-link {
  opacity: 0.45;
  cursor: not-allowed;
}
.ep-picker-item.no-link:hover {
  background: transparent;
}
.ep-picker-item.active {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  box-shadow: 0 4px 12px rgba(253, 171, 27, 0.35);
}
.ep-picker-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ep-indicator {
  padding: 8px 20px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-dark);
  text-align: center;
}
.action-nav {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  white-space: nowrap;
}
.action-label {
  color: inherit;
  font-size: 0.85rem;
  line-height: 1;
  white-space: nowrap;
}
.favorite-count-btn {
  gap: 7px;
  min-width: 62px;
  flex-shrink: 0;
  white-space: nowrap;
}
.favorite-count-text {
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.icon-only-btn {
  padding: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  justify-content: center;
}
.btn-error {
  background: #ff4757;
  color: white;
  border: none;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition-dynamic);
  box-shadow: 0 4px 16px rgba(255, 71, 87, 0.35);
}
.btn-error:hover {
  transform: scale(1.05);
  background: #ff2742;
  box-shadow: 0 8px 24px rgba(255, 71, 87, 0.5);
}
.fav-active-btn {
  color: #ff6b6b !important;
  border-color: rgba(255, 107, 107, 0.4) !important;
}
.btn-subscribe {
  padding: 0 16px !important;
  height: 44px;
  border-radius: 22px !important;
  gap: 8px !important;
  font-weight: 700 !important;
  color: var(--color-primary) !important;
  background: rgba(253, 171, 27, 0.08) !important;
  border: 1px solid rgba(253, 171, 27, 0.2) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-subscribe:hover {
  background: rgba(253, 171, 27, 0.15) !important;
  transform: translateY(-2px) scale(1.02);
}
.btn-download {
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(38, 166, 154, 0.28);
  background: linear-gradient(135deg, rgba(10, 73, 62, 0.12), rgba(38, 166, 154, 0.08));
  color: var(--color-dark);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(10, 73, 62, 0.12), inset 0 1px 0 rgba(255,255,255,0.45);
  transition: var(--transition-dynamic);
}
.btn-download:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(253, 171, 27, 0.45);
  background: linear-gradient(135deg, rgba(253, 171, 27, 0.22), rgba(38, 166, 154, 0.13));
  box-shadow: 0 14px 32px rgba(253, 171, 27, 0.18), inset 0 1px 0 rgba(255,255,255,0.5);
}
.btn-download:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.3);
}
.download-popup-backdrop {
  background: rgba(4, 22, 19, 0.46);
}
.download-popup-card {
  width: min(420px, calc(100vw - 40px));
  padding: 30px 28px 26px;
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255,255,255,0.94), rgba(245, 252, 249, 0.88));
  border: 1px solid rgba(255,255,255,0.72);
  box-shadow: 0 28px 80px rgba(10, 73, 62, 0.26), inset 0 1px 0 rgba(255,255,255,0.86);
  color: var(--color-dark);
  text-align: center;
}
.download-popup-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  color: #0a493e;
  background: linear-gradient(135deg, rgba(38, 166, 154, 0.18), rgba(253, 171, 27, 0.18));
  border: 1px solid rgba(10, 73, 62, 0.12);
}
.download-popup-card.is-error .download-popup-icon {
  color: #c0392b;
  background: linear-gradient(135deg, rgba(255, 71, 87, 0.14), rgba(253, 171, 27, 0.14));
}
.download-popup-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 900;
}
.download-popup-card p {
  margin: 0;
  color: rgba(10, 73, 62, 0.76);
  font-size: 0.95rem;
  line-height: 1.65;
}
.download-popup-ok {
  margin-top: 22px;
  min-width: 126px;
  height: 44px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  color: #fff;
  font-family: inherit;
  font-weight: 850;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  box-shadow: 0 12px 28px rgba(253, 171, 27, 0.28);
}
@keyframes sub-pulse {
  0% { box-shadow: 0 0 0 0 rgba(253, 171, 27, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(253, 171, 27, 0); }
  100% { box-shadow: 0 0 0 0 rgba(253, 171, 27, 0); }
}
.pulsing {
  animation: sub-pulse 1.5s infinite !important;
  opacity: 0.8;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
}
.modal-card {
  padding: 40px;
  border-radius: 32px;
  max-width: 440px;
  width: 100%;
}
.info-episodes-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: start;
  gap: 28px;
  width: 100%;
}
.movie-details {
  padding: 32px;
  border-radius: 32px;
  width: 100%; }
.movie-showcase-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  text-align: left;
}
.showcase-poster {
  width: 160px;
  height: 240px;
  object-fit: cover;
  aspect-ratio: 2/3;
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(10, 73, 62, 0.25);
  flex-shrink: 0;
}
.showcase-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  text-align: left;
}
.showcase-info .title-text {
  font-size: 2rem;
  line-height: 1.25;
}
.showcase-info .subtitle-text {
  font-size: 1.05rem;
  opacity: 0.8;
  margin-top: -6px;
}
.showcase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.glass-tag {
  background: rgba(10, 73, 62, 0.12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-dark);
  border: 1px solid rgba(10, 73, 62, 0.25);
  box-shadow: 0 2px 8px rgba(10, 73, 62, 0.05); }
.tag-status.ongoing {
  background: rgba(255, 50, 50, 0.12);
  color: #c0392b;
  border-color: rgba(255, 50, 50, 0.2);
}
.tag-status.completed {
  background: rgba(10, 73, 62, 0.15);
  color: var(--color-dark);
}
.showcase-desc {
  line-height: 1.7;
  font-size: 1rem;
  margin-top: 8px;
  color: var(--color-dark);
}
.showcase-cast {
  font-size: 0.95rem;
  color: var(--color-dark);
  opacity: 0.9;
  background: rgba(255, 255, 255, 0.4);
  padding: 8px 16px;
  border-radius: 12px;
  display: inline-block;
  align-self: flex-start;
}
.episodes-sidebar {
  padding: 32px;
  border-radius: 32px;
  width: 100%;
}
.episodes-pill-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ep-pill {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid rgba(10, 73, 62, 0.15);
  transition: var(--transition-smooth);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(4px);
  color: var(--color-dark);
}
.ep-pill:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 16px rgba(10, 73, 62, 0.15);
}
.ep-pill.active {
  background: var(--color-primary);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(253, 171, 27, 0.45);
}
.ep-pill.has-error {
  border-color: rgba(255, 71, 87, 0.5);
  background: rgba(255, 71, 87, 0.08);
}
.ep-pill.no-link {
  opacity: 0.45;
  border-style: dashed;
  border-color: rgba(10, 73, 62, 0.2);
  background: rgba(200, 200, 200, 0.15);
  cursor: default;
}
.ep-pill.no-link:hover {
  transform: none;
  box-shadow: none;
}
.error-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  background: #ff4757;
  color: white;
  font-size: 0.6rem;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.watch-not-found {
  padding: 60px;
  text-align: center;
  border-radius: 32px;
  margin: 40px auto;
  max-width: 480px;
}
.btn-glass:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
@media (max-width: 768px) {
  .watch-container {
    gap: 14px;
  }
    .vp-volume-slider-pop {
        display: none !important;
  }
  .vp-buttons {
    gap: 3px;
    overflow-x: visible;
    padding-bottom: 0px;
    justify-content: space-between;
  }
  .vp-skip-label {
    display: none;
  }
  .vp-speed-btn span {
    display: none;
  }
  .vp-btn {
    padding: 5px 8px;
  }
  .vp-btn svg {
    width: 14px !important;
    height: 14px !important;
  }
  .vp-time {
    font-size: 0.7rem;
    padding: 0 2px;
    white-space: nowrap;
  }
  .vp-controls-wrap {
    padding: 20px 6px 6px;
    gap: 6px;
  }
    .vp-speed-menu {
    min-width: 68px;
    border-radius: 12px;
    padding: 4px;
  }
  .vp-speed-item {
    padding: 6px 10px;
    font-size: 0.78rem;
  }
    .info-episodes-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
    .player-controls-single-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 0 2px;
  }
  .ep-nav-pill {
    width: 100%;
    justify-content: space-between;
    padding: 3px;
    gap: 2px;
  }
  .btn-ep {
    min-width: unset;
    flex: 1;
    padding: 7px 4px;
    font-size: 0.8rem;
  }
  .ep-picker-btn {
    min-width: unset;
    flex: 1.5;
    padding: 7px 10px;
    font-size: 0.8rem;
  }
  .ep-picker-menu {
    min-width: 110px;
    max-height: 200px;
    bottom: calc(100% + 8px);
  }
  .watch-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 10px;
  }
  .watch-toolbar > .server-selector,
  .watch-toolbar > .toolbar-ep-nav,
  .watch-toolbar > .action-nav {
    grid-column: auto;
    justify-self: stretch;
  }
  .server-selector {
    width: 100%;
    padding: 0 2px;
  }
  .action-nav {
    justify-content: flex-end;
    width: 100%;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .action-nav::-webkit-scrollbar {
    display: none;
  }
  .btn-download {
    min-width: 44px;
  }
  .favorite-count-btn {
    min-width: 58px;
  }
  .action-nav .btn-error {
    font-size: 0.78rem;
    padding: 8px 12px;
    gap: 5px;
    white-space: nowrap;
  }
  .action-nav .btn-error svg {
    width: 14px !important;
    height: 14px !important;
  }
    .movie-details {
    padding: 18px 16px;
  }
  .movie-showcase-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    text-align: left;
  }
  .showcase-poster {
    width: 90px;
    height: 135px;
    border-radius: 14px;
  }
  .showcase-info {
    text-align: left;
    gap: 8px;
  }
  .showcase-info .title-text {
    font-size: 1.1rem;
    line-height: 1.3;
  }
  .showcase-info .subtitle-text {
    font-size: 0.82rem;
  }
  .showcase-tags {
    justify-content: flex-start;
    gap: 5px;
  }
  .glass-tag {
    font-size: 0.72rem;
    padding: 3px 10px;
  }
  .showcase-desc {
    font-size: 0.82rem;
    line-height: 1.5;
    margin-top: 4px;
  }
  .showcase-cast {
    font-size: 0.78rem;
    padding: 6px 12px;
    align-self: flex-start;
  }
    .episodes-sidebar {
    padding: 18px 16px;
  }
  .episodes-pill-layout {
    gap: 6px;
    justify-content: flex-start;
  }
  .ep-pill {
    padding: 5px 10px;
    font-size: 0.8rem;
  }
    .modal-card {
    padding: 24px 20px;
    border-radius: 24px;
  }
}
@media (max-width: 430px) {
  .action-nav {
    gap: 6px;
  }
  .btn-download {
    width: 44px;
    padding: 0;
    justify-content: center;
  }
  .btn-download .download-label {
    display: none;
  }
  .favorite-count-btn {
    min-width: 54px;
    padding: 0 10px !important;
  }
  .action-nav .btn-error {
    padding: 8px 10px;
  }
}
@media (max-width: 370px) {
  .favorite-count-text {
    display: none;
  }
  .favorite-count-btn {
    width: 44px;
    min-width: 44px;
    padding: 0 !important;
    justify-content: center;
  }
  .action-nav .btn-error {
    width: 44px;
    padding: 0;
    height: 44px;
    border-radius: 50%;
    font-size: 0;
    justify-content: center;
  }
  .action-nav .btn-error svg {
    margin: 0;
  }
}

.ios-prompt-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  padding: 24px;
  max-width: 320px;
  width: 95%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(10, 73, 62, 0.04);
}
.lights-off .ios-prompt-card {
  background: rgba(25, 25, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

/* Liquid Switch */
.liquid-switch-wrap {
  width: 52px;
  height: 32px;
  border-radius: 32px;
  background: rgba(10, 73, 62, 0.15);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}
.lights-off .liquid-switch-wrap {
  background: rgba(255, 255, 255, 0.15);
}
.liquid-switch-wrap.active {
  background: var(--color-primary);
}
.liquid-switch-knob {
  width: 28px;
  height: 28px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15), 0 1px 3px rgba(0,0,0,0.1);
}

.ios-prompt-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(253, 171, 27, 0.35);
}
.ios-prompt-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-dark);
  margin: 0;
}
.lights-off .ios-prompt-title { color: white; }
.ios-prompt-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin: 4px 0;
}
.ios-step {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  font-size: 0.88rem;
  color: var(--color-dark);
  font-family: 'Be Vietnam Pro', sans-serif;
}
.lights-off .ios-step { color: rgba(255,255,255,0.85); }
.ios-step b {
  color: var(--color-primary-dark);
}
.lights-off .ios-step b { color: var(--color-primary); }
.ios-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(253, 171, 27, 0.15);
  color: var(--color-primary-dark);
  font-weight: 800;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lights-off .ios-step-num { color: var(--color-primary); }
.ios-prompt-btn {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  transition: all 0.25s;
  box-shadow: 0 8px 20px rgba(253, 171, 27, 0.3);
}
.ios-prompt-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(253, 171, 27, 0.4);
}
.ios-prompt-btn-alt {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-radius: var(--radius-pill);
  background: #24A1DE;
  color: white !important;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 8px 20px rgba(36, 161, 222, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.ios-prompt-btn-alt:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(36, 161, 222, 0.4);
  background: #2090C7;
}
.ios-prompt-btn-error {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-radius: var(--radius-pill);
  background: #ff4757;
  color: white !important;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 8px 20px rgba(255, 71, 87, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}
.ios-prompt-btn-error:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(255, 71, 87, 0.4);
  background: #ff2742;
}
.lights-off .ios-prompt-btn-alt {
  box-shadow: 0 8px 20px rgba(36,161,222,0.2);
}

/* Report User Message Textarea */
.report-message-wrap {
  width: 100%;
  margin-top: 8px;
}
.report-message-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-dark);
  opacity: 0.75;
  margin-bottom: 6px;
  text-align: left;
}
.lights-off .report-message-label {
  color: rgba(255, 255, 255, 0.7);
}
.report-message-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(10, 73, 62, 0.15);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 16px;
  color: var(--color-dark);
  resize: none;
  outline: none;
  transition: all 0.25s ease;
  box-sizing: border-box;
  line-height: 1.5;
}
.report-message-input::placeholder {
  color: rgba(10, 73, 62, 0.35);
  font-style: italic;
}
.report-message-input:focus {
  border-color: rgba(255, 71, 87, 0.4);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.08);
}
.lights-off .report-message-input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: white;
}
.lights-off .report-message-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
.lights-off .report-message-input:focus {
  border-color: rgba(255, 71, 87, 0.5);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
}
.report-message-counter {
  text-align: right;
  font-size: 0.72rem;
  color: var(--color-dark);
  opacity: 0.4;
  margin-top: 4px;
  font-weight: 500;
}
.lights-off .report-message-counter {
  color: rgba(255, 255, 255, 0.35);
}

/* Buffering spinner overlay */
.vp-buffering-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.15);
}
.vp-buffering-spinner {
  width: 48px;
  height: 48px;
  border: 3.5px solid rgba(255, 255, 255, 0.2);
  border-top-color: rgba(253, 171, 27, 0.9);
  border-radius: 50%;
  animation: vp-spin 0.8s linear infinite;
  box-shadow: 0 0 20px rgba(253, 171, 27, 0.15);
}
@keyframes vp-spin {
  to { transform: rotate(360deg); }
}
/* Watch page liquid motion: interactive controls only */
.watch-container {
  --watch-motion-ease: cubic-bezier(0.19, 1, 0.22, 1);
  --watch-motion-soft: cubic-bezier(0.2, 0.85, 0.22, 1.25);
}

.watch-container,
.video-player,
.player-controls-single-row,
.movie-details,
.episodes-sidebar {
  animation: watch-surface-rise 640ms var(--watch-motion-ease) both;
}

.video-player { animation-delay: 40ms; }
.player-controls-single-row { animation-delay: 90ms; }
.movie-details { animation-delay: 135ms; }
.episodes-sidebar { animation-delay: 180ms; }

.back-btn,
.back-btn-float,
.vp-btn,
.vp-big-play > *,
.vp-speed-item,
.btn-ep:not(:disabled),
.ep-picker-btn,
.ep-picker-item:not(.no-link),
.btn-error,
.btn-subscribe,
.icon-only-btn,
.ep-pill:not(.no-link),
.hover-spring {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 260ms var(--watch-motion-soft),
    box-shadow 240ms ease,
    background 220ms ease,
    border-color 180ms ease,
    color 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .back-btn:hover,
  .back-btn-float:hover,
  .vp-btn:hover,
  .vp-big-play > *:hover,
  .vp-speed-item:hover,
  .btn-ep:hover:not(:disabled),
  .ep-picker-btn:hover,
  .ep-picker-item:hover:not(.no-link),
  .btn-error:hover,
  .btn-subscribe:hover,
  .icon-only-btn:hover,
  .ep-pill:hover:not(.no-link),
  .hover-spring:hover {
    animation: watch-button-distort 640ms var(--watch-motion-ease) both;
  }

  .vp-btn:hover svg,
  .back-btn:hover svg,
  .back-btn-float:hover svg,
  .btn-error:hover svg,
  .btn-subscribe:hover svg,
  .ep-picker-btn:hover svg,
  .icon-only-btn:hover svg,
  .hover-spring:hover svg {
    animation: watch-icon-wobble 620ms var(--watch-motion-ease) both;
  }
}

.back-btn:active,
.back-btn-float:active,
.vp-btn:active,
.vp-big-play > *:active,
.vp-speed-item:active,
.btn-ep:active:not(:disabled),
.ep-picker-btn:active,
.ep-picker-item:active:not(.no-link),
.btn-error:active,
.btn-subscribe:active,
.icon-only-btn:active,
.ep-pill:active:not(.no-link),
.hover-spring:active {
  animation: watch-button-press 360ms var(--watch-motion-ease) both;
}

.ep-picker-menu,
.vp-speed-menu,
.modal-card {
  animation: watch-pop-menu 360ms var(--watch-motion-ease) both;
  transform-origin: bottom center;
}

.ep-pill.active,
.ep-picker-item.active,
.vp-speed-item.active {
  animation: watch-active-pulse 700ms var(--watch-motion-ease) both;
}

.vp-seek-track {
  transition: height 180ms ease, box-shadow 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .vp-seek:hover .vp-seek-track {
    box-shadow: 0 0 0 5px rgba(253, 171, 27, 0.08);
  }
}

.vp-seek-thumb {
  will-change: transform;
}

.vp-buffering-spinner {
  animation: vp-spin 0.8s linear infinite, watch-spinner-breathe 1.4s ease-in-out infinite;
}

@keyframes watch-surface-rise {
  0% { opacity: 0; transform: translateY(16px) scale(0.988); }
  62% { opacity: 1; transform: translateY(-2px) scale(1.003); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes watch-button-distort {
  0% { transform: translateY(0) scaleX(1) scaleY(1); }
  34% { transform: translateY(-2px) scaleX(1.055) scaleY(0.93) skewX(-0.8deg); }
  66% { transform: translateY(-1px) scaleX(0.985) scaleY(1.04) skewX(0.4deg); }
  100% { transform: translateY(-1px) scaleX(1.018) scaleY(1); }
}

@keyframes watch-button-press {
  0% { transform: scaleX(1.018) scaleY(1); }
  45% { transform: scaleX(0.94) scaleY(1.06); }
  100% { transform: scaleX(1) scaleY(1); }
}

@keyframes watch-icon-wobble {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  35% { transform: translate3d(-1px, -2px, 0) rotate(-6deg) scale(1.1); }
  68% { transform: translate3d(1px, 0, 0) rotate(3deg) scale(0.98); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
}

@keyframes watch-pop-menu {
  0% { opacity: 0; transform: translateX(-50%) translateY(8px) scale(0.96); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

.vp-speed-menu {
  transform-origin: bottom right;
}

@keyframes watch-active-pulse {
  0% { transform: scale(0.98); }
  52% { transform: scale(1.035); }
  100% { transform: scale(1); }
}

@keyframes watch-spinner-breathe {
  0%, 100% { box-shadow: 0 0 20px rgba(253, 171, 27, 0.15); }
  50% { box-shadow: 0 0 28px rgba(253, 171, 27, 0.32); }
}

@media (hover: none), (pointer: coarse) {
  .back-btn:hover,
  .back-btn-float:hover,
  .vp-btn:hover,
  .vp-big-play > *:hover,
  .vp-speed-item:hover,
  .btn-ep:hover:not(:disabled),
  .ep-picker-btn:hover,
  .ep-picker-item:hover:not(.no-link),
  .btn-error:hover,
  .btn-subscribe:hover,
  .icon-only-btn:hover,
  .ep-pill:hover:not(.no-link),
  .hover-spring:hover {
    animation: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .watch-container *,
  .watch-container *::before,
  .watch-container *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
.fix-notif-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;
  width: calc(100% - 48px);
  pointer-events: none;
}

.fix-notif-toast {
  background: rgba(255, 253, 247, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(6, 75, 64, 0.08);
  border-radius: 16px;
  padding: 14px 36px 14px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-shadow: 0 8px 32px rgba(6, 75, 64, 0.12), 0 2px 8px rgba(0,0,0,0.06);
  position: relative;
  pointer-events: auto;
}

/* Poster thumbnail */
.fix-notif-poster {
  flex-shrink: 0;
  width: 48px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(6, 75, 64, 0.06);
}

/* Icon fallback (no poster) */
.fix-notif-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 156, 103, 0.1);
  color: #1f9c67;
}

.fix-notif-icon.episode {
  background: rgba(253, 171, 27, 0.12);
  color: #d49200;
}

.fix-notif-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Label tag */
.fix-notif-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #1f9c67;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 2px;
}

.fix-notif-label.episode {
  color: #d49200;
}

.fix-notif-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #064b40;
  margin: 0 0 2px 0;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fix-notif-movie {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(6, 75, 64, 0.55);
  margin: 0 0 4px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fix-notif-desc {
  font-size: 0.76rem;
  color: rgba(6, 75, 64, 0.6);
  margin: 0 0 8px 0;
  font-style: italic;
  line-height: 1.35;
}

.fix-notif-btn {
  background: #ffaa18;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: background 0.2s, transform 0.2s;
  align-self: flex-start;
  margin-top: 4px;
}

.fix-notif-btn:hover {
  background: #e89a00;
  transform: translateY(-1px);
}

.fix-notif-close {
  background: none;
  border: none;
  color: rgba(6, 75, 64, 0.3);
  cursor: pointer;
  padding: 2px;
  position: absolute;
  top: 10px;
  right: 10px;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fix-notif-close:hover {
  color: rgba(6, 75, 64, 0.7);
}

@media (max-width: 768px) {
  .fix-notif-container {
    bottom: 20px;
    right: 50%;
    transform: translateX(50%);
    width: calc(100% - 40px);
    max-width: 320px;
  }

  .fix-notif-toast {
    padding: 10px 30px 10px 10px;
    gap: 10px;
    border-radius: 14px;
  }

  .fix-notif-poster {
    width: 40px;
    height: 54px;
  }

  .fix-notif-icon {
    width: 34px;
    height: 34px;
  }
}
:root {
  --topbar-height: 88px;
  --shell-gap: 16px;
}

.app-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.main-content {
  flex: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
    padding-top: 85px; 
  padding-left: 24px;
  padding-right: 24px;
}

.admin-main-route {
  max-width: none;
  margin: 0;
  padding: 0;
}

.admin-route-loading {
  min-height: 62vh;
  width: min(420px, calc(100vw - 40px));
  margin: 8vh auto 0;
  border-radius: 28px;
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 34px;
  color: var(--color-dark);
  font-weight: 800;
}

.admin-route-loading-orb {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.95), transparent 34%),
    conic-gradient(from 90deg, var(--color-primary), #59d8c6, var(--color-primary));
  box-shadow: 0 0 28px rgba(253, 171, 27, 0.34);
  animation: admin-loading-spin 900ms linear infinite;
}

@keyframes admin-loading-spin {
  to {
    transform: rotate(360deg);
  }
}
:root {
    --color-white: #ffffff;
  --color-primary: #fdab1b;     --color-dark: #0a493e;        
  --color-primary-light: #ffd782;
  --color-primary-dark: #e59300;
  --color-dark-light: #166b5c;
    --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: 1px solid rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(10, 73, 62, 0.08);
    --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --radius-pill: 9999px;
    --transition-dynamic: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --transition-smooth: all 0.3s ease;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Be Vietnam Pro', sans-serif;
  color: var(--color-dark);
  min-height: 100vh;
    background: 
    radial-gradient(circle at 10% 20%, rgba(253, 171, 27, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(10, 73, 62, 0.1) 0%, transparent 40%),
    linear-gradient(135deg, #f6f9fc 0%, #ffffff 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.glass-pill {
  background: var(--glass-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: var(--glass-border);
  box-shadow: 0 4px 16px rgba(10, 73, 62, 0.05);
  border-radius: var(--radius-pill);
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.title-text {
  font-weight: 700;
  color: var(--color-dark);
}
.subtitle-text {
  font-weight: 500;
  color: var(--color-dark-light);
}
.hover-float {
  transition: var(--transition-dynamic);
}
.hover-float:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 40px rgba(253, 171, 27, 0.2);
}
.hover-spring {
  transition: var(--transition-dynamic);
}
.hover-spring:hover {
  transform: scale(1.05);
}
.hover-glow:focus, .hover-glow:hover {
  box-shadow: 0 0 16px var(--color-primary-light);
  border-color: var(--color-primary);
  outline: none;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition-dynamic);
  display: inline-flex;
  gap: 8px;
  align-items: center;
  box-shadow: 0 4px 12px rgba(253, 171, 27, 0.3);
}
.btn-primary:hover {
  transform: scale(1.05);
  background: var(--color-primary-dark);
  box-shadow: 0 6px 16px rgba(253, 171, 27, 0.4);
}
.btn-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  color: var(--color-dark);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: var(--transition-dynamic);
  box-shadow: 0 4px 12px rgba(10, 73, 62, 0.05);
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.05);
}
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.2);
}
::-webkit-scrollbar-thumb {
  background: var(--color-primary-light);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}
@media (max-width: 768px) {
  html {
    font-size: 13px;   }
  .btn-primary {
    padding: 10px 18px;
    gap: 6px;
  }
  .btn-glass {
    padding: 8px 16px;
  }
  .glass-panel {
    border-radius: var(--radius-md) !important;
  }
}
body.ios-fullscreen-lock {
    overflow: hidden !important;
}
body.ios-fullscreen-lock #root > .app-layout > .main-content > .watch-main {
    transform: none !important;
    position: static !important;
    z-index: auto !important;
}

body.watch-lights-off {
  background: #000 !important;
}

body.watch-lights-off .footer-container,
body.watch-lights-off .fix-notification-popup,
body.watch-lights-off .feature-request-btn,
body.watch-lights-off .global-announcement-popup {
  display: none !important;
}
