:root {
  --bg-base: #f0f8ff;
  --bg-surface: #ffffff;
  --bg-footer: #e0f2fe;
  --text-primary: #334155;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --accent-hover: #0284c7;
  --accent-text: #ffffff;
  --accent-gradient: linear-gradient(135deg, #7dd3fc 0%, #f9a8d4 100%);
  --accent-light: rgba(249, 168, 212, 0.15);
  --border-color: #e0f2fe;
  --nav-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.9);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px -5px rgba(125, 211, 252, 0.3);
  --shadow-lg: 0 20px 40px -15px rgba(249, 168, 212, 0.3);
  --glow-1: rgba(125, 211, 252, 0.4);
  --glow-2: rgba(249, 168, 212, 0.4);
  --progress-bg: rgba(0, 0, 0, 0.15);
  --overlay-bg: rgba(255, 255, 255, 0.85);
  --controls-bg: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.6) 60%,
    transparent 100%
  );
}
[data-theme="dark"] {
  --bg-base: #0f172a;
  --bg-surface: #1e293b;
  --bg-footer: #0b1120;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --accent: #f472b6;
  --accent-hover: #f9a8d4;
  --accent-text: #0f172a;
  --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #f472b6 100%);
  --accent-light: rgba(244, 114, 182, 0.15);
  --border-color: #334155;
  --nav-bg: rgba(30, 41, 59, 0.6);
  --glass-border: rgba(255, 255, 255, 0.05);
  --shadow-md: 0 10px 30px -5px rgba(244, 114, 182, 0.15);
  --shadow-lg: 0 20px 50px -10px rgba(56, 189, 248, 0.15);
  --glow-1: rgba(56, 189, 248, 0.2);
  --glow-2: rgba(244, 114, 182, 0.2);
  --progress-bg: rgba(255, 255, 255, 0.2);
  --overlay-bg: rgba(15, 23, 42, 0.75);
  --controls-bg: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.95) 0%,
    rgba(15, 23, 42, 0.5) 50%,
    transparent 100%
  );
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
body {
  font-family: "Noto Sans", sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  transition:
    background-color 0.5s ease,
    color 0.5s ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  cursor: pointer;
}
body.intro-active {
  overflow: hidden;
}
#password-overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}
#password-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.pw-modal {
  background: var(--bg-surface);
  padding: 30px;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  text-align: center;
  width: 90%;
  max-width: 380px;
  transform: scale(1);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#password-overlay.hidden .pw-modal {
  transform: scale(0.9);
}
.pw-icon {
  margin-bottom: 12px;
  animation: bounceLock 2s infinite;
  display: inline-block;
  color: var(--accent);
}
@keyframes bounceLock {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
.pw-title {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.pw-question-box {
  background: var(--bg-base);
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px dashed var(--accent);
  margin-bottom: 20px;
}
.pw-question-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.pw-question-text {
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.4;
}
#pw-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: "Noto Sans", sans-serif;
  font-size: 15px;
  outline: none;
  transition: all 0.2s;
  text-align: center;
  font-weight: 700;
}
#pw-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-light);
}
.pw-btn {
  margin-top: 15px;
  width: 100%;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--glow-2);
  transition: 0.2s;
}
.pw-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--glow-2);
}
.pw-error {
  color: #ef4444;
  font-size: 13px;
  margin-top: 8px;
  font-weight: 600;
  min-height: 20px;
}
.shake {
  animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
@keyframes shake {
  10%,
  90% {
    transform: translate3d(-2px, 0, 0);
  }
  20%,
  80% {
    transform: translate3d(3px, 0, 0);
  }
  30%,
  50%,
  70% {
    transform: translate3d(-5px, 0, 0);
  }
  40%,
  60% {
    transform: translate3d(5px, 0, 0);
  }
}
#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: 0 0;
  transition:
    opacity 1s ease,
    visibility 1s ease;
}
#intro-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#intro-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}
#doors-container,
#ui-layer {
  position: absolute;
  inset: 0;
  display: flex;
  overflow: hidden;
}
#doors-container {
  z-index: 2;
  pointer-events: none;
}
#ui-layer {
  z-index: 10;
  pointer-events: none;
}
.door,
.ui-half {
  width: 50vw;
  height: 100vh;
  position: relative;
  pointer-events: auto;
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}
.door {
  background: #0a0a0a;
}
.ui-half {
  pointer-events: none;
}
.door-left {
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 5px 0 20px rgba(0, 0, 0, 0.5);
}
.door-right {
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
}
.door-left.open,
.ui-left.open {
  transform: translateX(-200%);
}
.door-right.open,
.ui-right.open {
  transform: translateX(200%);
}
#start-avatar {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(50%, -50%);
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  pointer-events: auto;
  border: 3px solid var(--accent);
  animation: pulseAvatar 2s infinite;
  transition: opacity 0.3s;
}
#intro-text {
  position: absolute;
  left: 0;
  top: calc(50% + 90px);
  transform: translateX(-50%);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
  white-space: nowrap;
  text-shadow: 0 0 15px rgba(244, 114, 182, 0.8);
  pointer-events: none;
}
@keyframes pulseAvatar {
  0% {
    box-shadow: 0 0 0 0 rgba(244, 114, 182, 0.7);
    border-color: #f472b6;
  }
  50% {
    box-shadow: 0 0 0 20px rgba(244, 114, 182, 0);
    border-color: #38bdf8;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(244, 114, 182, 0);
    border-color: #f472b6;
  }
}
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 15% 10%, var(--glow-1) 0, transparent 50%),
    radial-gradient(circle at 85% 90%, var(--glow-2) 0, transparent 50%);
  filter: blur(80px);
}
.grid-pattern {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, var(--border-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-color) 1px, transparent 1px);
  opacity: 0.4;
  mask-image: linear-gradient(to bottom, #000 20%, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, #000 20%, transparent 80%);
}
header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1200px;
  height: 64px;
  background: var(--nav-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transition: all 0.4s ease;
}
.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand {
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.5px;
}
.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px var(--glow-1);
  border: 2px solid var(--border-color);
  background: var(--bg-surface);
}
.nav-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.theme-btn {
  background: 0 0;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    color 0.2s;
}
.theme-btn:hover {
  background: var(--accent-light);
  color: var(--accent);
}
.cl-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.cl-bell-icon {
  transform-origin: top center;
}
.cl-bell-icon.ringing {
  animation: bellRing 2.5s infinite;
  color: var(--accent);
}
@keyframes bellRing {
  0%,
  100% {
    transform: rotate(0);
  }
  5%,
  15%,
  25% {
    transform: rotate(15deg);
  }
  10%,
  20% {
    transform: rotate(-15deg);
  }
  30% {
    transform: rotate(0);
  }
}
.cl-badge {
  position: absolute;
  top: 2px;
  right: 4px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  font-size: 10px;
  font-weight: 900;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
  pointer-events: none;
  transition:
    transform 0.2s,
    opacity 0.2s;
}
.cl-badge.hidden {
  opacity: 0;
  transform: scale(0);
}
.cl-popup {
  position: absolute;
  top: 55px;
  right: 0;
  width: 320px;
  max-height: calc(100vh - 100px);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1001;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cl-popup.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
}
.cl-header {
  padding: 14px 16px;
  font-weight: 800;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-base);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
.cl-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 320px;
}
.cl-body::-webkit-scrollbar {
  width: 6px;
}
.cl-body::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 10px;
}
.cl-item {
  font-size: 13.5px;
  color: var(--text-secondary);
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border-color);
  line-height: 1.5;
  animation: chatFadeIn 0.3s ease;
}
.cl-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.cl-date {
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
  font-size: 12.5px;
  display: inline-block;
  background: var(--accent-light);
  padding: 2px 8px;
  border-radius: 100px;
}
.cl-msg {
  color: var(--text-primary);
  font-weight: 500;
}
#timelinePopup {
  position: absolute;
  top: 45px;
  right: 0;
  width: 240px;
  max-height: calc(100vh - 100px);
}
#timelineBody {
  padding: 12px;
  gap: 10px;
  flex: 1;
}
#timelineBody .cl-item {
  padding-bottom: 8px;
}
#timelineBody .cl-date {
  font-size: 11px;
  padding: 2px 6px;
}
#timelineBody .cl-msg {
  font-size: 13px;
}
.player-container {
  max-width: 1600px;
  margin: 110px auto 40px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 320px 1fr 350px;
  gap: 24px;
  align-items: stretch;
}
.playlist-card,
.video-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}
.playlist-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: calc(100vh - 150px);
}
.video-card {
  padding: 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 150px);
}
.video-wrapper {
  position: relative;
  flex-grow: 1;
  width: 100%;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 10;
}
.yt-title-blocker,
.mobile-chat-gradient {
  display: none;
}
.video-info {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  min-width: 0;
}
.video-title-container {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 20;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition:
    opacity 0.3s,
    visibility 0.3s;
  min-width: 0;
  flex: 1;
}
.mobile-pill-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50px;
  padding: 4px 12px 4px 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: auto;
}
.pill-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}
.pill-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
}
.pill-main {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
.pill-sub {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}
.video-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  line-height: 1.4;
}
#real-time-clock {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  margin-left: 12px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  margin-top: 6px;
  display: block !important;
}
.action-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
  margin-left: 12px;
}
.download-btn {
  background: var(--accent-gradient);
  color: #fff;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  box-shadow: 0 4px 15px var(--glow-2);
  cursor: pointer;
}
.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--glow-2);
}
.custom-visit-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 15px var(--glow-2);
  cursor: default;
}
.custom-visit-badge .badge-label {
  background: #1e293b;
  color: #e7e7e7;
  padding: 6px 10px;
}
.custom-visit-badge .badge-number {
  background: #f472b6;
  color: #fff;
  padding: 6px 10px;
}
[data-theme="light"] .custom-visit-badge .badge-number {
  background: #38bdf8;
}
.right-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: calc(100vh - 150px);
}
.gift-card,
.comment-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.gift-card {
  flex: 3;
  padding: 16px;
}
.comment-card {
  flex: 7;
  padding: 20px;
}
.gift-card h3,
.comment-card h3 {
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.gift-card h3 {
  font-size: 13px;
  margin-bottom: 12px;
}
.gift-card h3 svg {
  width: 14px;
  height: 14px;
}
.comment-card h3 {
  font-size: 15px;
  margin-bottom: 14px;
}
.comment-card h3 svg {
  width: 17px;
  height: 17px;
}
.gift-list,
.comment-list {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding-right: 8px;
  flex-grow: 1;
  height: 100%;
}
.gift-list {
  gap: 11px;
}
.comment-list {
  gap: 16px;
}
.gift-list::-webkit-scrollbar,
.comment-list::-webkit-scrollbar {
  width: 6px;
}
.gift-list::-webkit-scrollbar-thumb,
.comment-list::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 10px;
}
.comment-item {
  display: flex;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
  animation: chatFadeIn 0.3s ease;
}
@keyframes chatFadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.comment-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.comment-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid var(--border-color);
}
.comment-body {
  flex-grow: 1;
  min-width: 0;
}
.comment-header {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}
.comment-name {
  font-weight: 700;
  color: var(--accent);
  font-size: 14px;
  filter: brightness(1.2);
}
.comment-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.sys-msg {
  color: var(--text-muted);
  font-size: 13px;
  font-style: italic;
  text-align: center;
  padding: 20px 0;
}
.badge-container {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 2px;
  align-items: center;
  margin-right: 4px;
  flex-shrink: 0;
}
.tt-badge {
  display: inline-flex;
  align-items: center;
  height: 16px;
  border-radius: 4px;
  padding: 0 4px 0 2px;
  flex-shrink: 0;
}
.badge-icon {
  height: 12px;
  width: auto;
  margin-right: 2px;
}
.badge-text {
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}
.gift-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.15), transparent);
  padding: 6px 12px 6px 6px;
  border-radius: 50px;
  border-left: 3px solid #ffd700;
  gap: 10px;
  animation: slideInRight 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  transition: opacity 0.3s ease;
  width: 100%;
}
@keyframes slideInRight {
  from {
    transform: translateX(20px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.gift-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.gift-avt {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #ffd700;
  flex-shrink: 0;
  object-fit: cover;
}
.gift-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.g-user-wrap {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  width: 100%;
  min-width: 0;
}
.g-user {
  font-size: 11px;
  font-weight: bold;
  color: var(--text-primary);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.g-user-wrap .badge-text {
  font-size: 11px;
}
[data-theme="dark"] .g-user {
  color: #fff;
}
.g-info {
  font-size: 10px;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.g-info b {
  font-weight: bold;
  font-style: normal;
  color: var(--text-primary);
}
[data-theme="dark"] .g-info b {
  color: #fff;
}
.gift-icon-inline {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}
.combo-text {
  font-size: 13px;
  font-weight: 900;
  font-style: italic;
  color: #ffcc00;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000,
    0px 3px 5px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}
@keyframes comboPop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3) rotate(-5deg);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}
.playlist-header-wrapper {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-base);
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: 24px 24px 0 0;
}
.playlist-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.desktop-playlist-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.mobile-landscape-brand {
  display: none;
}
.badge-count {
  background: var(--bg-surface);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid var(--border-color);
}
.search-container {
  position: relative;
  width: 100%;
}
.search-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: "Noto Sans", sans-serif;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}
.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.playlist-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.playlist-items::-webkit-scrollbar {
  width: 6px;
}
.playlist-items::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 10px;
}
.playlist-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  background: 0 0;
}
.playlist-item:hover {
  background: var(--bg-base);
  border-color: var(--border-color);
  transform: translateX(4px);
}
.playlist-item.active {
  background: var(--accent-light);
  border-color: rgba(249, 168, 212, 0.4);
}
.playlist-item.active .item-title {
  color: var(--accent);
  font-weight: 700;
}
.item-thumb {
  width: 85px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid transparent;
  transition: 0.3s;
  background: var(--bg-base);
}
.playlist-item.active .item-thumb {
  border-color: var(--accent);
  box-shadow: 0 4px 15px var(--glow-2);
}
.item-icon {
  width: 85px;
  height: 48px;
  border-radius: 8px;
  background: var(--bg-base);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: 0.3s;
}
.playlist-item.active .item-icon {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px var(--glow-2);
}
.playlist-item.active .item-icon svg {
  stroke: currentColor;
  fill: currentColor;
}
.item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  word-break: break-word;
  line-height: 1.4;
  transition: 0.2s;
}
.no-results {
  text-align: center;
  color: var(--text-muted);
  padding: 20px;
  font-size: 14px;
  font-style: italic;
}
.ext-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100000;
  opacity: 1;
  transition: all 0.3s ease;
}
.ext-modal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.ext-modal {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  width: 90%;
  max-width: 700px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(0) scale(1);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.ext-modal-overlay.hidden .ext-modal {
  transform: translateY(30px) scale(0.95);
}
.ext-modal-header {
  display: flex;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
  background: var(--bg-base);
}
.ext-modal-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ext-modal-close {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.2s;
}
.ext-modal-close:hover {
  background: var(--accent-light);
  color: var(--accent);
}
.ext-modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-height: 80vh;
  overflow-y: auto;
}
.ext-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.ext-card {
  background: var(--bg-base);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: 0.3s;
}
.ext-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.ext-card h3 {
  color: var(--accent);
  font-size: 18px;
  font-weight: 800;
}
.ext-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  flex-grow: 1;
}
.ext-card p b {
  color: var(--text-primary);
}
.ext-dl-btn {
  margin-top: 10px;
  background: var(--accent-gradient);
  color: #fff;
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 4px 15px var(--glow-2);
  transition: 0.2s;
}
.ext-dl-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--glow-2);
  color: #fff;
}
.ext-dl-btn.disabled-btn {
  background: var(--text-muted);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.6;
}
.ext-guide {
  background: var(--bg-base);
  padding: 20px;
  border-radius: 16px;
  border: 1px dashed var(--border-color);
}
.ext-guide h4 {
  margin-bottom: 12px;
  color: var(--text-primary);
  text-align: center;
  font-size: 16px;
}
.ext-guide ol {
  padding-left: 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.ext-guide code {
  background: rgba(0, 0, 0, 0.1);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--accent);
  font-weight: 600;
  border: 1px solid var(--border-color);
}
.player-container:fullscreen,
.player-container:-webkit-full-screen {
  max-width: none;
  width: 100vw;
  margin: 0;
  padding: 16px;
  gap: 16px;
  background-color: #000;
  height: 100vh;
  border-radius: 0;
  overflow: hidden;
  --bg-base: #000000;
  --bg-surface: #0a0a0a;
  --border-color: rgba(255, 255, 255, 0.08);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
}
.player-container:fullscreen .playlist-card,
.player-container:-webkit-full-screen .playlist-card {
  height: calc(100vh - 32px);
  border-radius: 24px;
  border: 1px solid var(--border-color);
}
.player-container:fullscreen .right-column,
.player-container:-webkit-full-screen .right-column {
  height: calc(100vh - 32px);
  gap: 16px;
  border-radius: 0;
  border: none;
}
.player-container:fullscreen .gift-card,
.player-container:-webkit-full-screen .gift-card {
  border-radius: 24px;
  border: 1px solid var(--border-color);
}
.player-container:fullscreen .comment-card,
.player-container:-webkit-full-screen .comment-card {
  border-radius: 24px;
  border: 1px solid var(--border-color);
}
.player-container:fullscreen .video-card,
.player-container:-webkit-full-screen .video-card {
  height: calc(100vh - 32px);
  padding: 0;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  background: #000;
  position: relative;
  overflow: hidden;
}
.player-container:fullscreen .video-wrapper,
.player-container:-webkit-full-screen .video-wrapper {
  height: 100%;
  border-radius: 24px;
  box-shadow: none;
}
.player-container:fullscreen .yt-title-blocker,
.player-container:-webkit-full-screen .yt-title-blocker {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.9) 0%,
    transparent 100%
  );
  z-index: 15;
  pointer-events: none;
}
.player-container:fullscreen .video-info,
.player-container:-webkit-full-screen .video-info {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 20;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  pointer-events: none;
}
.player-container:fullscreen .action-badges,
.player-container:-webkit-full-screen .action-badges {
  display: none;
}
.player-container:fullscreen .video-title,
.player-container:-webkit-full-screen .video-title {
  display: none;
}
.player-container:fullscreen .mobile-pill-title,
.player-container:-webkit-full-screen .mobile-pill-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50px;
  padding: 4px 12px 4px 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: auto;
}
.player-container:fullscreen .pill-avatar,
.player-container:-webkit-full-screen .pill-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}
.player-container:fullscreen .pill-text,
.player-container:-webkit-full-screen .pill-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
}
.player-container:fullscreen .pill-main,
.player-container:-webkit-full-screen .pill-main {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
.player-container:fullscreen .pill-sub,
.player-container:-webkit-full-screen .pill-sub {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}
.player-container:fullscreen #real-time-clock,
.player-container:-webkit-full-screen #real-time-clock {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  margin-left: 12px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  margin-top: 6px;
  display: block !important;
}
.k-loading-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.4s ease,
    visibility 0.4s;
}
.k-loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#statusOverlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 20px;
  opacity: 1;
  transition:
    opacity 0.4s ease,
    visibility 0.4s;
}
#statusOverlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#statusOverlay h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}
#statusOverlay p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}
.k-spinner {
  width: 60px;
  height: 60px;
  border: 5px solid var(--progress-bg);
  border-top-color: var(--accent);
  border-bottom-color: var(--accent-hover);
  border-radius: 50%;
  animation: spin 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(244, 114, 182, 0.3);
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.k-loading-text {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.5px;
}
.k-gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-right: 4px;
}
.k-dots span {
  display: inline-block;
  animation: bounce 1.4s infinite ease-in-out both;
  color: var(--accent);
}
.k-dots span:nth-child(1) {
  animation-delay: -0.32s;
}
.k-dots span:nth-child(2) {
  animation-delay: -0.16s;
}
@keyframes bounce {
  0%,
  80%,
  100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1.2);
  }
}
@keyframes pulseAura {
  0% {
    box-shadow: 0 0 0 0 rgba(244, 114, 182, 0.7);
  }
  70% {
    box-shadow: 0 0 0 25px rgba(244, 114, 182, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(244, 114, 182, 0);
  }
}
.k-center-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 70px;
  height: 70px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  color: #fff;
  animation: pulseAura 2s infinite;
  transition:
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    opacity 0.4s ease,
    visibility 0.4s;
}
.k-loading-overlay:not(.hidden) ~ .k-center-play,
.video-wrapper.is-playing .k-center-play {
  transform: translate(-50%, -50%) scale(2.5);
  opacity: 0;
  visibility: hidden;
  animation: none;
}
.k-center-play:hover {
  transform: translate(-50%, -50%) scale(1.1);
}
.k-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--controls-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 30px 20px 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 25;
}
.video-wrapper:not(.ui-active) .k-controls {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(100%);
  transition:
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    opacity 0.3s,
    visibility 0.3s;
}
.video-wrapper.ui-active .k-controls {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition:
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    opacity 0.3s;
}
.k-progress-slider {
  width: 100%;
  height: 5px;
  -webkit-appearance: none;
  background: var(--progress-bg);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  transition: height 0.2s;
  margin-bottom: 10px;
}
.k-progress-slider:hover {
  height: 8px;
}
.k-progress-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: scale(0);
}
.k-progress-slider:hover::-webkit-slider-thumb {
  transform: scale(1);
}
.k-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.k-left-btns,
.k-right-btns {
  display: flex;
  align-items: center;
  gap: 18px;
}
button.k-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    color 0.2s,
    transform 0.2s;
}
button.k-btn:hover {
  color: var(--accent);
  transform: scale(1.15);
}
button.k-btn.active-state {
  color: var(--accent);
}
.k-time {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  user-select: none;
}
.k-volume-container {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  width: 24px;
  transition: width 0.3s ease;
}
.k-volume-container:hover {
  width: 100px;
}
.k-volume-slider {
  width: 60px;
  height: 4px;
  -webkit-appearance: none;
  background: var(--progress-bg);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.k-volume-container:hover .k-volume-slider {
  opacity: 1;
}
.k-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-primary);
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}
.startup-overlay {
  position: absolute;
  inset: 0;
  z-index: 15;
  background: var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.5s ease,
    visibility 0.5s;
}
.startup-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    transparent 0%,
    rgba(0, 0, 0, 0.8) 100%
  );
  pointer-events: none;
}
.startup-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.startup-content {
  text-align: center;
  position: relative;
  z-index: 2;
  animation: floatUp 3s ease-in-out infinite;
}
.startup-brand {
  font-size: 32px;
  font-weight: 900;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  letter-spacing: 2px;
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 15px var(--glow-2));
}
.startup-sub {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 4px;
  text-transform: uppercase;
}
#snowflakeContainer {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 5;
}
.snowflake {
  padding-left: 15px;
  font-size: 14px;
  line-height: 24px;
  position: fixed;
  color: var(--accent);
  opacity: 0.4;
  user-select: none;
}
@media (min-width: 769px) {
  #start-avatar {
    width: 260px;
    height: 260px;
  }
  #intro-text {
    top: calc(50% + 160px);
    font-size: 20px;
  }
}
#joinLog {
  font-size: 10px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 5px 14px;
  border-radius: 50px;
  text-align: center;
  margin-top: 4px;
  min-height: 20px;
  opacity: 0;
  transition: opacity 0.3s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
#joinLog.hidden-by-user {
  display: none !important;
}
[data-theme="light"] #joinLog {
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.05);
}
.viewer-count-display {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  padding: 2px 8px;
  border-radius: 100px;
  margin-left: 8px;
  vertical-align: middle;
}
.pill-sub .viewer-count-display {
  font-size: 9px;
  padding: 1px 5px;
  margin-left: 4px;
  background: rgba(239, 68, 68, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  text-shadow: none;
  border-radius: 50px;
}
#interaction-shield {
  position: absolute;
  inset: 0;
  z-index: 12;
  cursor: pointer;
}
.top-right-actions {
  position: absolute;
  top: 65px;
  right: 20px;
  display: flex;
  gap: 12px;
  z-index: 30;
  pointer-events: auto;
}
.top-right-actions .k-btn {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: #fff;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s;
}
.top-right-actions .k-btn:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: scale(1.1);
  color: var(--accent);
}
#chatToggleBarBtn {
  display: none;
}
.video-wrapper:fullscreen .top-right-actions,
.video-wrapper:-webkit-full-screen .top-right-actions {
  top: 16px !important;
}
.video-wrapper:fullscreen .video-title-container,
.video-wrapper:-webkit-full-screen .video-title-container {
  top: 16px !important;
}
.translated-text {
  font-size: 11px;
  font-style: italic;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
  border-left: 2px solid var(--accent);
  padding: 4px 8px;
  margin-top: 4px;
  border-radius: 4px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.4;
  animation: chatFadeIn 0.3s ease;
}
[data-theme="light"] .translated-text {
  background: rgba(0, 0, 0, 0.03);
}
.translated-text svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.video-wrapper .translated-text {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 2px solid #f472b6;
}
@media (max-width: 991px) and (orientation: portrait) {
  .cl-popup {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 92vw;
    max-width: 360px;
    right: auto;
  }
  .cl-popup.hidden {
    transform: translate(-50%, -10px);
  }
  #timelinePopup.cl-popup {
    position: absolute;
    top: 45px;
    left: auto;
    right: 0;
    transform: translateY(0);
    width: 220px;
    max-width: 85vw;
  }
  #timelinePopup.cl-popup.hidden {
    transform: translateY(-10px);
  }
  #timelineBody {
    padding: 10px;
    gap: 8px;
  }
  #timelineBody .cl-date {
    font-size: 10px;
  }
  #timelineBody .cl-msg {
    font-size: 12px;
  }
  .ext-cards {
    grid-template-columns: 1fr;
  }
  #openExtModalBtn {
    display: none;
  }
  .nav-actions {
    gap: 8px;
  }
  .nav-title {
    display: none;
  }
  header {
    height: 60px;
    top: 12px;
    width: calc(100% - 24px);
  }
  .brand {
    font-size: 15px;
  }
  .player-container {
    display: flex;
    flex-direction: column;
    margin-top: 80px;
    padding: 0 12px;
    gap: 16px;
  }
  .video-card {
    order: 1;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: none;
    height: auto;
  }
  .right-column {
    order: 2;
    height: auto;
    gap: 16px;
  }
  .playlist-card {
    order: 3;
    max-height: 500px;
    height: auto;
    border-radius: 20px;
  }
  .video-wrapper {
    height: 84vh;
    border-radius: 16px;
    max-width: 100%;
  }
  .video-wrapper:-webkit-full-screen {
    background: #000;
    overflow: hidden;
  }
  .video-wrapper:fullscreen {
    background: #000;
    overflow: hidden;
  }
  .video-wrapper:-webkit-full-screen #main-player,
  .video-wrapper:-webkit-full-screen #local-player-wrapper {
    width: calc(110vh * 9 / 16) !important;
    height: 95vh !important;
    max-height: none !important;
    max-width: none !important;
    top: auto !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
  .video-wrapper:fullscreen #main-player,
  .video-wrapper:fullscreen #local-player-wrapper {
    width: calc(95vh * 9 / 16) !important;
    height: 95vh !important;
    max-height: none !important;
    max-width: none !important;
    top: auto !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
  .yt-title-blocker {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.9) 0%,
      transparent 100%
    );
    z-index: 15;
    pointer-events: none;
  }
  .mobile-chat-gradient {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65%;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.15) 0%,
      transparent 85%
    );
    z-index: 15;
    pointer-events: none;
  }
  .gift-card.empty-data,
  .comment-card.empty-data {
    display: none !important;
  }
  .gift-card.hidden-by-user,
  .comment-card.hidden-by-user {
    display: none !important;
  }
  .video-wrapper .video-title-container {
    position: absolute;
    top: 0;
    left: 12px;
    z-index: 20;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .video-wrapper .video-title {
    display: none;
  }
  .video-wrapper .mobile-pill-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50px;
    padding: 4px 12px 4px 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
  }
  .video-wrapper .pill-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
  }
  .video-wrapper .pill-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
  }
  .video-wrapper .pill-main {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  }
  .video-wrapper .pill-sub {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
  }
  .video-wrapper #real-time-clock {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
    margin-left: 12px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  }
  .video-wrapper .comment-card {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35%;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 12px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    pointer-events: none;
  }
  .video-wrapper .comment-card h3 {
    display: none;
  }
  .video-wrapper .comment-list {
    padding-right: 0;
    mask-image: linear-gradient(to top, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, black 85%, transparent 100%);
    pointer-events: none;
    justify-content: flex-end;
  }
  .video-wrapper .comment-list::-webkit-scrollbar {
    width: 0px;
    display: none;
  }
  .video-wrapper .comment-item {
    border-bottom: none;
    padding-bottom: 5px;
  }
  .video-wrapper .comment-avatar {
    width: 25px;
    height: 25px;
  }
  .video-wrapper .comment-name {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px #000;
  }
  .video-wrapper .comment-text {
    font-size: 13px;
    color: #fff;
    text-shadow: 1px 1px 2px #000;
    line-height: 1.4;
  }
  .video-wrapper .sys-msg {
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 1px 1px 2px #000;
  }
  .video-wrapper #joinLog {
    font-size: 10px;
    padding: 4px 10px;
    min-height: 16px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    max-width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    position: absolute;
    bottom: 35%;
    left: 12px;
    margin: 0;
    margin-bottom: 4px;
    z-index: 21;
  }
  .video-wrapper .gift-card {
    position: absolute;
    bottom: calc(35% + 30px);
    left: 0;
    width: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 10px 12px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
    height: 150px;
  }
  .video-wrapper .gift-card h3 {
    display: none;
  }
  .video-wrapper .gift-list {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    gap: 6px;
    overflow: hidden;
    mask-image: linear-gradient(to top, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, black 70%, transparent 100%);
    width: 100%;
  }
  .video-wrapper .gift-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    width: max-content;
    max-width: 65vw;
    pointer-events: none;
    flex-shrink: 0;
    animation: slideInRight 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  }
  .video-wrapper .gift-pill {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50px;
    padding: 3px 10px 3px 3px;
    gap: 6px;
    max-width: 50vw;
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }
  .video-wrapper .gift-avt {
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .video-wrapper .gift-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1;
  }
  .video-wrapper .g-user-wrap {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
  }
  .video-wrapper .g-user {
    color: #fff;
    text-shadow: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    font-size: 9px;
    font-weight: bold;
    flex: 1;
    min-width: 0;
  }
  .video-wrapper .g-user-wrap .badge-text {
    font-size: 9px;
  }
  .video-wrapper .g-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }
  .video-wrapper .g-info b {
    color: #fff;
    font-weight: normal;
  }
  .video-wrapper .gift-icon-inline {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
  }
  .video-wrapper .combo-text {
    font-size: 18px;
    font-weight: 900;
    font-style: italic;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    flex-shrink: 0;
  }
  .video-info {
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
    background: var(--bg-surface);
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
  }
  .action-badges {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }
  .download-btn {
    flex: 1;
    justify-content: center;
    padding: 12px;
  }
  .video-badge {
    display: none;
  }
  .playlist-header-wrapper {
    padding: 16px;
    gap: 12px;
  }
  .playlist-items {
    padding: 12px;
  }
  .playlist-item {
    padding: 10px 12px;
    gap: 12px;
  }
  .item-thumb,
  .item-icon {
    width: 75px;
    height: 42px;
  }
  .top-right-actions {
    top: 55px;
    right: 12px;
  }
  #chatToggleBarBtn {
    display: flex;
  }
}
@media (max-width: 1250px) and (orientation: landscape) {
  .player-container {
    grid-template-columns: 220px 1fr 260px;
    gap: 14px;
    padding: 0 14px;
    margin-top: 85px;
  }
  header {
    width: calc(100% - 28px);
    height: 54px;
    top: 12px;
  }
  .nav-title {
    display: none;
  }
  .badge-count {
    font-size: 9.5px;
    padding: 3px 8px;
  }
  .playlist-card,
  .video-card,
  .right-column {
    height: calc(100vh - 110px);
  }
  .video-card {
    padding: 12px;
  }
  .video-info {
    margin-top: 12px;
    align-items: center;
  }
  .video-title {
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .video-info .download-btn {
    display: none;
  }
  .custom-visit-badge {
    transform: scale(0.9);
    transform-origin: right center;
  }
  .playlist-header-wrapper {
    padding: 12px;
  }
  .playlist-title-row h3 {
    font-size: 14px;
  }
  .playlist-item {
    padding: 8px;
    gap: 10px;
  }
  .item-thumb,
  .item-icon {
    width: 45px;
    height: 25px;
  }
  .item-title {
    font-size: 9px;
    line-height: 1.3;
  }
  .video-card {
    padding: 0;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
  }
  .video-wrapper {
    height: 100%;
    border-radius: 20px;
    box-shadow: none;
  }
  .video-info {
    display: none;
  }
  .yt-title-blocker {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.85) 0%,
      transparent 100%
    );
    z-index: 15;
    pointer-events: none;
  }
  .video-title-container {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 20;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .video-title {
    display: none;
  }
  .mobile-pill-title {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50px;
    padding: 2px 8px 2px 2px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    pointer-events: auto;
  }
  .pill-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
  }
  .pill-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
  }
  .pill-main {
    font-size: 10.5px;
    font-weight: 800;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  }
  .pill-sub {
    font-size: 8px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
  }
  #real-time-clock {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
    margin-left: 8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    display: block !important;
  }
  .top-right-actions {
    top: 10px;
    right: 10px;
  }
  .top-right-actions .k-btn {
    width: 28px;
    height: 28px;
  }
  .top-right-actions .k-btn svg {
    width: 14px;
    height: 14px;
  }
  .right-column {
    gap: 10px;
  }
  .gift-card {
    padding: 8px;
  }
  .comment-card {
    padding: 10px;
  }
  .gift-card h3,
  .comment-card h3 {
    font-size: 11px;
    margin-bottom: 6px;
  }
  .comment-item {
    gap: 6px;
    padding-bottom: 6px;
  }
  .comment-avatar {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }
  .comment-name,
  .comment-text {
    font-size: 10px;
  }
  .gift-list {
    gap: 6px;
  }
  .gift-row {
    padding: 3px 8px 3px 3px;
    gap: 6px;
  }
  .gift-pill {
    padding: 2px 6px 2px 2px;
    gap: 4px;
  }
  .gift-avt {
    width: 18px;
    height: 18px;
  }
  .g-user {
    font-size: 8.5px;
  }
  .g-info {
    font-size: 8px;
  }
  .combo-text {
    font-size: 10px;
  }
}
ios-fake-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 99999 !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background-color: #000 !important;
}
