:root {
  --primary: #ff640a;
  --primary-hover: #ff7d2e;
  --primary-glow: rgba(255, 100, 10, 0.45);
  --bg-dark: #0a0c10;
  --glass: rgba(14, 17, 24, 0.88);
  --glass-border: rgba(255, 255, 255, 0.12);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  font-family: 'Outfit', sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  min-height: 100%;
  background: #000000;
  color: var(--text-main);
  overflow: hidden;
}

.player-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
}

#mainVideo {
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  object-fit: fill;
  background: #000000;
  cursor: pointer;
}

/* Loading Spinner */
.loading-spinner {
  position: absolute;
  width: 52px;
  height: 52px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
  z-index: 25;
  box-shadow: 0 0 20px var(--primary-glow);
}

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

/* Custom Subtitle Overlay (Crunchyroll Style) */
.custom-subtitle-overlay {
  position: absolute;
  bottom: 74px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 900px;
  text-align: center;
  pointer-events: none;
  z-index: 18;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: bottom 0.2s ease;
}

.custom-sub-cue {
  display: inline-block;
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  text-shadow:
    -2px -2px 0 #000,
    2px -2px 0 #000,
    -2px 2px 0 #000,
    2px 2px 0 #000,
    0 2px 4px rgba(0, 0, 0, 0.9),
    0 4px 8px rgba(0, 0, 0, 0.8);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .custom-subtitle-overlay {
    bottom: 58px;
    width: 95%;
  }
  .custom-sub-cue {
    font-size: 17px;
  }
}

/* Top Bar */
.top-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.3s;
}

.top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.top-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-tag {
  background: linear-gradient(135deg, #ff640a, #ff9045);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
  box-shadow: 0 0 10px var(--primary-glow);
}

.title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.anime-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.ep-info {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.server-badge {
  background: rgba(255, 100, 10, 0.15);
  border: 1px solid rgba(255, 100, 10, 0.4);
  color: var(--primary);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

/* Center Controls Trio (Modern Glassmorphism) */
.center-controls {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.center-main-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(14, 16, 22, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.center-main-btn:hover {
  background: #ff0000;
  border-color: #ff0000;
  transform: scale(1.15);
  box-shadow: 0 0 24px rgba(255, 0, 0, 0.5);
}

.center-main-btn:active {
  transform: scale(0.95);
}

.center-main-btn svg {
  width: 32px;
  height: 32px;
}

.center-sub-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(14, 16, 22, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  color: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.center-sub-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: #fff;
  transform: scale(1.12);
}

.center-sub-btn:active {
  transform: scale(0.95);
}

.center-sub-btn svg {
  width: 24px;
  height: 24px;
}

/* Skip Intro / Outro Pill */
.skip-pill {
  position: absolute;
  bottom: 84px;
  right: 28px;
  background: rgba(15, 18, 26, 0.9);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: none;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
  z-index: 22;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
  transition: all 0.2s ease;
}

.skip-pill:hover {
  background: var(--primary);
  border-color: #fff;
  transform: scale(1.05);
}

.skip-pill.show {
  display: flex;
}

/* Bottom Controls */
.bottom-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.35) 60%, transparent 100%);
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.3s;
}

.bottom-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 28px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 20;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Scrub / Progress Bar (YouTube Red) */
.progress-bar-wrap {
  position: relative;
  width: 100%;
  height: 18px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.progress-track {
  position: relative;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  transition: height 0.12s ease;
}

.progress-bar-wrap:hover .progress-track {
  height: 5px;
}

.progress-buffer {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  width: 0;
  pointer-events: none;
}

.progress-hover-ghost {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 2px;
  width: 0;
  pointer-events: none;
}

.progress-filled {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #ff0000;
  border-radius: 2px;
  width: 0;
  pointer-events: none;
}

.progress-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 14px;
  background: #ff0000;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.12s ease;
  pointer-events: none;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
}

.progress-bar-wrap:hover .progress-thumb,
.progress-bar-wrap.scrubbing .progress-thumb {
  transform: translate(-50%, -50%) scale(1);
}

.time-tooltip {
  position: absolute;
  bottom: 26px;
  left: 0;
  transform: translateX(-50%);
  background: rgba(20, 20, 20, 0.95);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  font-family: Roboto, 'Outfit', monospace;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: none;
  pointer-events: none;
  white-space: nowrap;
  z-index: 30;
}

/* Control Buttons (YouTube Style) */
.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.controls-left, .controls-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ctrl-btn {
  background: transparent;
  border: 0;
  color: #eee;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.ctrl-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.ctrl-btn:active {
  transform: scale(0.92);
}

.ctrl-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.volume-group {
  display: flex;
  align-items: center;
  gap: 2px;
}

.volume-slider-wrap {
  width: 0;
  overflow: hidden;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
}

.volume-group:hover .volume-slider-wrap {
  width: 68px;
}

.volume-slider {
  width: 64px;
  height: 3px;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
}

.time-display {
  font-size: 13px;
  font-weight: 500;
  color: #ddd;
  font-family: Roboto, 'Outfit', sans-serif;
  margin-left: 8px;
  letter-spacing: 0.02em;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.time-display:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* Audio SUB / DUB Toggle (Bottom Bar) */
.audio-toggle-wrap {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 2px;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  margin-right: 4px;
}

.audio-tab {
  background: transparent;
  border: 0;
  color: #9ca3af;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.audio-tab:hover {
  color: #fff;
}

.audio-tab.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Popup Menus */
/* Popup Menus (YouTube Glass Style) */
.pop-dialog {
  position: absolute;
  bottom: 64px;
  right: 24px;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 8px 0;
  min-width: 260px;
  max-height: 380px;
  overflow-y: auto;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
  z-index: 40;
  display: none;
  flex-direction: column;
  animation: popUp 0.16s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-view {
  display: none;
  flex-direction: column;
  width: 100%;
}

.settings-view.active {
  display: flex;
}

.dialog-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #aaa;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}

.back-header {
  cursor: pointer;
  color: #eee;
  transition: color 0.15s ease, transform 0.15s ease;
}

.back-header:hover {
  color: #fff;
}

.back-header svg {
  transition: transform 0.15s ease;
}

.back-header:hover svg {
  transform: translateX(-3px);
}

.section-mini-title {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #777;
  padding: 8px 16px 4px;
}

.dialog-item {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #ddd;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: background 0.12s ease, color 0.12s ease;
}

.dialog-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.dialog-item.active {
  background: transparent;
  color: #fff;
  font-weight: 600;
}

.dialog-item.active::after {
  content: '✓';
  color: #ff0000;
  font-weight: 900;
  font-size: 14px;
  margin-left: 8px;
}

.item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.item-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.val-txt {
  font-size: 11px;
  color: #aaa;
  font-weight: 400;
}

.toggle-checkbox {
  appearance: none;
  width: 36px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: background 0.2s;
}

.toggle-checkbox::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.toggle-checkbox:checked {
  background: #ff0000;
}

.toggle-checkbox:checked::before {
  transform: translateX(16px);
}

.hd-badge {
  font-size: 9px;
  font-weight: 800;
  background: rgba(255, 0, 0, 0.18);
  border: 1px solid rgba(255, 0, 0, 0.4);
  color: #ff3b30;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 6px;
}

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

.sp-choice {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #e5e7eb;
  padding: 6px 0;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.12s;
}

.sp-choice:hover {
  background: rgba(255, 255, 255, 0.12);
}

.sp-choice.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Custom Context Menu (YouTube Style) */
.custom-context-menu {
  position: absolute;
  background: rgba(28, 28, 28, 0.96);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 6px 0;
  min-width: 250px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85);
  z-index: 999;
  display: none;
  flex-direction: column;
  animation: popUp 0.14s cubic-bezier(0.4, 0, 0.2, 1);
}

.ctx-item {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #eee;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.12s;
}

.ctx-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.ctx-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 0;
}

/* Stats for Nerds (Player Details HUD) */
.stats-hud {
  position: absolute;
  top: 24px;
  left: 24px;
  background: rgba(10, 12, 16, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 12px 16px;
  min-width: 320px;
  max-width: 440px;
  font-family: monospace;
  font-size: 11px;
  color: #fff;
  z-index: 900;
  display: none;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
}

.stats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 6px;
  font-weight: 700;
  color: #ff0000;
  letter-spacing: 0.04em;
}

.stats-close-btn {
  background: transparent;
  border: 0;
  color: #aaa;
  font-size: 14px;
  cursor: pointer;
  padding: 0 4px;
}

.stats-close-btn:hover {
  color: #fff;
}

.stats-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 1.4;
}

.stats-key {
  color: #888;
}

.stats-val {
  color: #eee;
  font-weight: 600;
}

/* Toast Bubble */
.toast-bubble {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(28, 28, 28, 0.95);
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-bubble.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Hide UI on Inactivity */
.fade-controls {
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 900px) {
  .bottom-controls {
    padding: 0 18px 12px;
    gap: 8px;
  }

  .skip-pill {
    top: 16px;
    right: 16px;
    padding: 8px 14px;
    font-size: 11px;
  }

  .stats-hud {
    top: 14px;
    left: 14px;
    min-width: 280px;
  }
}

@media (max-width: 640px) {
  .bottom-controls {
    padding: 0 12px 10px;
    gap: 6px;
  }

  .controls-row {
    gap: 8px;
  }

  .ctrl-btn {
    width: 30px;
    height: 30px;
  }

  .ctrl-btn svg {
    width: 18px;
    height: 18px;
  }

  .volume-slider {
    width: 44px;
  }

  .time-display {
    font-size: 11px;
    margin-left: 2px;
  }

  .center-btn.main {
    width: 52px;
    height: 52px;
  }

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

  .center-btn.sub {
    width: 38px;
    height: 38px;
  }

  .center-btn.sub svg {
    width: 16px;
    height: 16px;
  }

  .center-cluster {
    gap: 16px;
  }

  .audio-toggle-wrap {
    height: 22px;
    padding: 1px;
  }

  .audio-tab {
    padding: 2px 7px;
    font-size: 10px;
  }

  .pop-dialog {
    bottom: 56px;
    right: 10px;
    min-width: 220px;
    max-width: calc(100vw - 20px);
    max-height: 280px;
  }

  .dialog-item {
    padding: 9px 12px;
    font-size: 12px;
  }

  .subtitle-overlay {
    bottom: 50px;
    padding: 0 16px;
  }

  .custom-sub-cue {
    font-size: clamp(14px, 4vw, 20px) !important;
    padding: 3px 8px;
  }

  .stats-hud {
    min-width: 240px;
    max-width: calc(100vw - 28px);
    font-size: 10px;
  }
}

@media (max-width: 420px) {
  #btnRewind,
  #btnForward {
    display: none;
  }

  .volume-slider {
    display: none;
  }

  .time-display {
    font-size: 10px;
  }

  .ctrl-btn {
    width: 28px;
    height: 28px;
  }

  .ctrl-btn svg {
    width: 16px;
    height: 16px;
  }

  .center-btn.main {
    width: 46px;
    height: 46px;
  }

  .center-btn.sub {
    width: 34px;
    height: 34px;
  }

  .center-cluster {
    gap: 12px;
  }

  .pop-dialog {
    left: 10px;
    right: 10px;
    min-width: auto;
    width: calc(100vw - 20px);
  }
}

/* Invisible First-Click Popunder Shield */
.click-shield {
  position: absolute;
  inset: 0;
  z-index: 18;
  cursor: pointer;
  background: transparent;
}

/* Responsive In-Player Ad Banner Overlay */
.ad-banner-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 25;
  display: none;
  pointer-events: auto;
  animation: adFadeIn 0.25s ease-out;
}

.ad-banner-overlay.show {
  display: block;
}

.ad-banner-card {
  background: rgba(14, 16, 22, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 8px 12px 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75);
  max-width: min(340px, 90vw);
  text-align: center;
}

.ad-banner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ad-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ffaa00;
  background: rgba(255, 170, 0, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

.ad-close-btn {
  background: none;
  border: none;
  color: #aaa;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.ad-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.ad-banner-content {
  min-width: 250px;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ad-placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
}

.ad-text-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.ad-text-desc {
  font-size: 11px;
  color: #bbb;
}

.ad-action-btn {
  margin-top: 4px;
  background: #ff4444;
  color: #fff;
  border: none;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.ad-action-btn:hover {
  background: #ff2222;
  transform: scale(1.05);
}

@keyframes adFadeIn {
  from { opacity: 0; transform: translate(-50%, -46%) scale(0.95); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@media (max-width: 480px) {
  .ad-banner-card {
    max-width: 280px;
    padding: 6px 8px 8px;
  }
  .ad-banner-content {
    min-width: 220px;
    min-height: 80px;
  }
}
