/* YouTube Dark Inspired Theme */
:root {
  color-scheme: dark;
  --bg-primary: #0f0f0f;
  --bg-secondary: #181818;
  --bg-tertiary: #272727;
  --bg-hover: #3f3f3f;
  --text-main: #f1f1f1;
  --text-muted: #aaaaaa;
  --accent-red: #ff0033;
  --accent-blue: #3ea6ff;
  --accent-gold: #ffb703;
  --border-color: #303030;
  --border-radius-card: 12px;
  --font-family: 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

select {
  color-scheme: dark;
}

select option {
  background-color: #1f1f1f !important;
  color: #ffffff !important;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.yt-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  gap: 16px;
}

.header-left .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-main);
  font-size: 20px;
  font-weight: 600;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.logo-fish-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(245, 158, 11, 0.4));
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
}

.logo:hover .logo-fish-img {
  transform: scale(1.15) rotate(-6deg);
  filter: drop-shadow(0 4px 10px rgba(245, 158, 11, 0.7));
}

.logo-text strong {
  color: var(--accent-red);
}

.header-center {
  flex: 1;
  max-width: 580px;
}

.search-box {
  display: flex;
  align-items: center;
  background: #121212;
  border: 1px solid var(--border-color);
  border-radius: 40px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.search-box:focus-within {
  border-color: var(--accent-blue);
}

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 10px 18px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 14px;
}

.search-box button {
  background: var(--bg-tertiary);
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.search-box button:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.server-status-badge {
  background: rgba(62, 166, 255, 0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(62, 166, 255, 0.25);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

/* Auth Header Section */
.auth-section {
  position: relative;
}

.btn-auth-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--accent-blue);
  border: 1px solid rgba(62, 166, 255, 0.4);
  padding: 7px 16px;
  border-radius: 24px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-auth-primary:hover {
  background: rgba(62, 166, 255, 0.15);
  border-color: var(--accent-blue);
}

/* User Pill & Avatar */
.user-profile-wrap {
  position: relative;
}

.btn-user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 4px 12px 4px 5px;
  border-radius: 30px;
  cursor: pointer;
  color: var(--text-main);
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s;
}

.btn-user-pill:hover {
  background: var(--bg-tertiary);
  border-color: #444;
}

.avatar-container {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: #333;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.avatar-fallback {
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
}

.user-name {
  font-size: 13px;
  font-weight: 500;
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-role {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-role-admin {
  background: rgba(255, 183, 3, 0.2);
  color: var(--accent-gold);
  border: 1px solid rgba(255, 183, 3, 0.4);
}

.badge-role-user {
  background: rgba(62, 166, 255, 0.15);
  color: var(--accent-blue);
  border: 1px solid rgba(62, 166, 255, 0.25);
}

.arrow-icon {
  font-size: 10px;
  color: var(--text-muted);
}

/* User Dropdown Menu */
.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  background: #212121;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  padding: 8px 0;
  z-index: 150;
}

.dropdown-header {
  padding: 12px 18px;
}

.dropdown-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-email {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-role-tag {
  margin-top: 6px;
  font-size: 11px;
  color: var(--accent-gold);
  font-weight: 500;
}

.dropdown-separator {
  height: 1px;
  background: var(--border-color);
  margin: 6px 0;
}

.dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: inherit;
  font-size: 13.5px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.dropdown-item:hover {
  background: var(--bg-hover);
}

.dropdown-item .item-icon {
  font-size: 16px;
}

.btn-admin-item {
  color: var(--accent-gold);
  font-weight: 500;
}

.btn-logout {
  color: #ff6b6b;
}

/* Category Chips Bar */
.chips-container {
  position: sticky;
  top: 57px;
  z-index: 90;
  background-color: var(--bg-primary);
  padding: 12px 24px;
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
}

.chips-scroll {
  display: flex;
  gap: 10px;
  white-space: nowrap;
}

.chip {
  background: var(--bg-tertiary);
  color: var(--text-main);
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.chip:hover {
  background: var(--bg-hover);
}

.chip.active {
  background: #f1f1f1;
  color: #0f0f0f;
  font-weight: 600;
}

/* Tags Filter Bar */
.tags-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.tags-filter-label {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 500;
}

.tags-filter-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 2px;
}

.tags-filter-scroll::-webkit-scrollbar {
  height: 4px;
}

.tags-filter-scroll::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #adb5bd;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.tag-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #4dabf7;
}

.tag-chip.active {
  background: #339af0;
  color: #fff;
  border-color: #339af0;
  font-weight: 600;
}

.tag-chip-count {
  font-size: 10.5px;
  background: rgba(255, 255, 255, 0.12);
  padding: 1px 6px;
  border-radius: 10px;
  color: #ced4da;
}

.tag-chip.active .tag-chip-count {
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
}

.btn-clear-tag {
  background: rgba(255, 107, 107, 0.15);
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 11.5px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.btn-clear-tag:hover {
  background: #ff6b6b;
  color: #fff;
}

.card-tag {
  cursor: pointer;
  transition: color 0.15s;
}

.card-tag:hover {
  color: var(--accent-gold);
  text-decoration: underline;
}

.tags-row .tag {
  cursor: pointer;
  transition: all 0.2s;
}

.tags-row .tag:hover {
  background: #339af0;
  color: #fff;
}

/* Main Layout */
.main-content {
  padding: 24px;
  max-width: 1500px;
  margin: 0 auto;
}

.view-section.hidden,
.hidden {
  display: none !important;
}

.view-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}

.view-header h2 {
  font-size: 20px;
  font-weight: 600;
}

.novel-count {
  color: var(--text-muted);
  font-size: 13px;
}

/* Novel Grid (YouTube Style Cards) */
.novel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px 18px;
}

.novel-card {
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
}

.novel-card:hover {
  transform: translateY(-4px);
}

.card-thumbnail-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--border-radius-card);
  overflow: hidden;
  background: var(--bg-secondary);
}

.card-thumbnail-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.novel-card:hover .card-thumbnail-wrap img {
  transform: scale(1.05);
}

.badge-episodes {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  z-index: 3;
}

/* History Card & Progress Bar (YouTube Style) */
.card-progress-bar-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  z-index: 2;
}

.card-progress-bar-fill {
  height: 100%;
  background: var(--accent-red);
  border-radius: 0 2px 2px 0;
  transition: width 0.3s ease;
}

.history-card .badge-episodes {
  background: rgba(15, 15, 15, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.card-body {
  padding-top: 12px;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-main);
}

.card-meta {
  color: var(--text-muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-tag {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
}

/* Watch Page Layout (YouTube Style) */
.watch-container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}

.watch-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.player-card {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border-color);
}

.player-cover-wrap {
  position: relative;
  width: 100%;
  max-height: 380px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  margin-bottom: 20px;
}

.player-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sound-wave-overlay {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 30px;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 12px;
  border-radius: 8px;
}

.sound-wave-overlay .bar {
  width: 4px;
  height: 6px;
  background: var(--accent-red);
  border-radius: 2px;
  transition: height 0.2s;
}

.playing .sound-wave-overlay .bar:nth-child(1) { animation: wave 0.8s infinite ease-in-out; }
.playing .sound-wave-overlay .bar:nth-child(2) { animation: wave 1.2s infinite ease-in-out 0.2s; }
.playing .sound-wave-overlay .bar:nth-child(3) { animation: wave 0.9s infinite ease-in-out 0.4s; }
.playing .sound-wave-overlay .bar:nth-child(4) { animation: wave 1.1s infinite ease-in-out 0.1s; }
.playing .sound-wave-overlay .bar:nth-child(5) { animation: wave 0.7s infinite ease-in-out 0.3s; }

@keyframes wave {
  0%, 100% { height: 6px; }
  50% { height: 26px; }
}

.player-info-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.player-novel-title {
  color: var(--accent-blue);
  font-size: 13.5px;
  font-weight: 500;
}

.btn-fav-toggle {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  transition: all 0.2s;
}

.btn-fav-toggle:hover {
  background: var(--bg-hover);
}

.btn-fav-toggle.active {
  background: rgba(255, 0, 51, 0.15);
  color: var(--accent-red);
  border-color: rgba(255, 0, 51, 0.4);
}

.player-episode-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.player-author-meta {
  color: var(--text-muted);
  font-size: 13px;
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

/* Audio Controller */
.audio-controller {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-tertiary);
  padding: 16px 20px;
  border-radius: 12px;
}

.progress-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-container input[type="range"],
.volume-box input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: #444;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.progress-container input[type="range"]::-webkit-slider-thumb,
.volume-box input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: var(--accent-red);
  border-radius: 50%;
  cursor: pointer;
}

.time-display {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

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

.playback-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-ctrl {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 16px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s;
}

.btn-ctrl:hover {
  background: var(--bg-hover);
}

.btn-play {
  background: var(--accent-red);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.btn-play:hover {
  background: #cc0029;
}

.secondary-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.volume-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 170px;
}

.volume-box input[type="range"] {
  height: 6px !important;
}

.volume-box input[type="range"]::-webkit-slider-thumb {
  width: 14px !important;
  height: 14px !important;
}

.vol-percent {
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 34px;
  text-align: right;
  font-weight: 500;
}

.speed-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.speed-selector select {
  background: #242424;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 6px;
  outline: none;
  font-family: inherit;
  cursor: pointer;
  font-size: 11.5px;
  color-scheme: dark;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.speed-selector select:hover,
.speed-selector select:focus {
  background: #2e2e2e;
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

.speed-selector select option {
  background-color: #1f1f1f !important;
  color: #ffffff !important;
}

/* Description Card */
.description-card {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border-color);
}

.desc-header {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}

.desc-text {
  color: #d1d1d1;
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 14px;
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags-row .tag {
  background: rgba(62, 166, 255, 0.12);
  color: var(--accent-blue);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
}

/* ==================== NOVEL COMMENTS SECTION ==================== */
.comments-card {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 14px;
}

.comments-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.comments-icon {
  font-size: 20px;
}

.comments-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
}

.comments-count {
  font-size: 15px;
  color: #f59e0b;
  font-weight: 600;
}

/* Comment Input Box */
.comment-input-box {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
}

.comment-form-wrap {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.comment-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #2a2e35;
  border: 1.5px solid rgba(245, 158, 11, 0.3);
}

.comment-input-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comment-input-area textarea {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  min-height: 52px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.comment-input-area textarea:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.comment-input-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.comment-footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #888;
}

.comment-char-count {
  color: #777;
}

.comment-ep-hint {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
}

.comment-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.btn-comment-cancel {
  background: transparent;
  border: none;
  color: #aaa;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.btn-comment-cancel:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn-comment-submit {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border: none;
  padding: 7px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-comment-submit:hover:not(:disabled) {
  opacity: 0.92;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
  transform: translateY(-1px);
}

.btn-comment-submit:disabled {
  background: #333842;
  color: #777;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Guest prompt wrap */
.comment-guest-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border-color);
  border-radius: 8px;
  gap: 15px;
  flex-wrap: wrap;
}

.guest-prompt-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #ccc;
}

.guest-icon {
  font-size: 18px;
}

.btn-comment-login {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border: none;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-comment-login:hover {
  opacity: 0.9;
}

/* Comments List */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.comments-loading, .comments-empty {
  text-align: center;
  padding: 30px 10px;
  color: #888;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.comment-spinner {
  width: 26px;
  height: 26px;
  border: 3px solid rgba(245, 158, 11, 0.2);
  border-top-color: #f59e0b;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Single Comment Card */
.comment-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.comment-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #23272e;
}

.comment-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.comment-author-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
}

.badge-role-comment-admin {
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 10px;
}

.badge-role-comment-premium {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 10px;
}

.comment-ep-tag {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 6px;
  font-weight: 500;
}

.comment-date {
  font-size: 11.5px;
  color: #777;
}

.comment-text {
  font-size: 13.5px;
  color: #e2e8f0;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Comment actions (Like, Reply, Delete) */
.comment-actions-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.btn-action-comment {
  background: transparent;
  border: none;
  color: #888;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 6px;
  border-radius: 4px;
  transition: all 0.15s;
}

.btn-action-comment:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.06);
}

.btn-action-comment.liked {
  color: #ef4444;
}

.btn-action-comment.btn-delete-comment:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* Nested Replies */
.replies-container {
  margin-top: 10px;
  padding-left: 14px;
  border-left: 2px solid rgba(245, 158, 11, 0.25);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reply-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.reply-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #23272e;
}

.reply-input-box {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 8px;
  border: 1px solid var(--border-color);
}

.reply-input-box textarea {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--text-main);
  font-size: 13px;
  resize: vertical;
  min-height: 44px;
  box-sizing: border-box;
}

.reply-input-box textarea:focus {
  outline: none;
  border-color: #f59e0b;
}

.btn-back {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  align-self: flex-start;
  transition: background 0.2s;
}

.btn-back:hover {
  background: var(--bg-hover);
}

/* Playlist Sidebar (YouTube Style) */
.playlist-card {
  background: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  position: sticky;
  top: 130px;
}

.playlist-header {
  padding: 18px 20px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.playlist-header h3 {
  font-size: 16px;
  font-weight: 600;
}

.playlist-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.autoplay-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
}

.playlist-items {
  max-height: 520px;
  overflow-y: auto;
}

.ep-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.2s;
}

.ep-item:hover {
  background: var(--bg-hover);
}

.ep-item.active {
  background: rgba(255, 0, 51, 0.12);
  border-left: 3px solid var(--accent-red);
}

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

.ep-number {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 20px;
}

.ep-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
}

.ep-duration {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==================== MODALS COMMON ==================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: #1f1f1f;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-icon {
  font-size: 22px;
}

.modal-header h2, .modal-header h3 {
  font-size: 18px;
  font-weight: 600;
}

.modal-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==================== AUTH MODAL ==================== */
.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 0;
}

.auth-tabs {
  display: flex;
  background: #141414;
  border-bottom: 1px solid var(--border-color);
  border-radius: 16px 16px 0 0;
  padding: 6px;
  gap: 6px;
}

.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 12px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab-btn.active {
  background: var(--bg-tertiary);
  color: var(--text-main);
  font-weight: 600;
}

.auth-body {
  padding: 24px;
}

.auth-alert {
  background: rgba(255, 0, 51, 0.15);
  border: 1px solid rgba(255, 0, 51, 0.35);
  color: #ff6b6b;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

.auth-alert.success {
  background: rgba(46, 204, 113, 0.15);
  border-color: rgba(46, 204, 113, 0.35);
  color: #2ecc71;
}

.google-auth-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.google-btn-container {
  display: flex;
  justify-content: center;
}

.btn-google-oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #ffffff;
  color: #1f1f1f;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 24px;
  font-weight: 500;
  font-size: 13.5px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-google-oauth:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.btn-patreon-oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #FF424D;
  color: #ffffff !important;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 13.5px;
  transition: transform 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.btn-patreon-oauth:hover {
  background: #e0323c;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 66, 77, 0.4);
  color: #ffffff !important;
}

.patreon-sync-card {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 66, 77, 0.12), rgba(255, 107, 107, 0.05));
  border: 1px solid rgba(255, 66, 77, 0.3);
}

.patreon-card-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.patreon-card-icon {
  color: #FF424D;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.patreon-card-info {
  flex: 1;
}

.patreon-card-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main, #ffffff);
}

.patreon-card-desc {
  font-size: 12px;
  color: var(--text-muted, #aaaaaa);
  margin-top: 3px;
  line-height: 1.4;
}

.btn-patreon-sync {
  background: #FF424D;
  color: #ffffff !important;
  border: none;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.btn-patreon-sync:hover {
  background: #e0323c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 66, 77, 0.35);
  color: #ffffff !important;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0;
  color: var(--text-muted);
  font-size: 12px;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
  padding: 0 12px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12.5px;
  font-weight: 500;
  color: #d1d1d1;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: #141414;
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent-blue);
}

.btn-submit-auth {
  margin-top: 6px;
  background: var(--accent-red);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit-auth:hover {
  background: #cc0029;
}

.auth-footer-note {
  margin-top: 20px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
}

/* ==================== ADMIN PANEL MODAL ==================== */
.admin-card {
  width: 100%;
  max-width: 980px;
}

.admin-tabs {
  display: flex;
  background: #151515;
  border-bottom: 1px solid var(--border-color);
  padding: 8px 24px 0 24px;
  gap: 12px;
}

.admin-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 10px 18px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.admin-tab-btn.active {
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
  font-weight: 600;
}

.admin-body {
  padding: 24px;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.toolbar-left {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.toolbar-left h3 {
  font-size: 16px;
  font-weight: 600;
}

.toolbar-count {
  font-size: 12px;
  color: var(--text-muted);
}

.btn-admin-action {
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-success {
  background: #238636;
  color: #fff;
}
.btn-success:hover {
  background: #2ea043;
}

.btn-danger {
  background: rgba(255, 0, 51, 0.2);
  color: #ff6b6b;
  border: 1px solid rgba(255, 0, 51, 0.4);
}
.btn-danger:hover {
  background: rgba(255, 0, 51, 0.4);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background: var(--bg-hover);
}

.admin-table-container {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: 10px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.admin-table th {
  background: #161616;
  color: var(--text-muted);
  font-weight: 600;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
}

.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.table-cover-img {
  width: 50px;
  height: 32px;
  border-radius: 4px;
  object-fit: cover;
}

.table-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #333;
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.action-buttons-cell {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-table-action {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.btn-table-action:hover {
  background: var(--bg-hover);
}

.btn-table-delete {
  color: #ff6b6b;
  border-color: rgba(255, 107, 107, 0.3);
}

.btn-table-delete:hover {
  background: rgba(255, 0, 51, 0.2);
}

/* ==================== NOVEL EDIT MODAL ==================== */
.edit-card {
  width: 100%;
  max-width: 560px;
}

.edit-form {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}

.btn-cancel {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13.5px;
}

.btn-cancel:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}

.btn-save {
  background: #238636;
  border: none;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
}

.btn-save:hover {
  background: #2ea043;
}

/* ==================== EPISODES MANAGER ==================== */
.episodes-card {
  width: 100%;
  max-width: 680px;
}

.episodes-manager-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.add-episode-box {
  background: #171717;
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: 12px;
}

.add-episode-box h4,
.existing-episodes-box h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.add-ep-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ep-form-row {
  display: grid;
  grid-template-columns: 70px 1fr 100px;
  gap: 12px;
}

.ep-list-scroll {
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.admin-ep-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
}

.admin-ep-item:hover {
  background: var(--bg-hover);
}

.admin-ep-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.admin-ep-badge {
  background: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #252525;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.25s ease-out;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.toast.toast-success {
  border-left: 4px solid #2ecc71;
}

.toast.toast-error {
  border-left: 4px solid #ff4757;
}

.toast.toast-info {
  border-left: 4px solid var(--accent-blue);
}

/* Responsive */
@media (max-width: 992px) {
  .watch-container {
    grid-template-columns: 1fr;
  }
  .playlist-card {
    position: static;
  }
}

@media (max-width: 600px) {
  .yt-header {
    flex-wrap: wrap;
    padding: 10px 14px;
  }
  .header-center {
    order: 3;
    max-width: 100%;
    width: 100%;
  }
  .chips-container {
    top: 100px;
    padding: 8px 14px;
  }
  .main-content {
    padding: 14px;
  }
  .ep-form-row, .form-row {
    grid-template-columns: 1fr;
  }
}

/* ========================================================
   Persistent Bottom Player Dock (Decoupled Player Bar)
   ======================================================== */
body.has-bottom-dock {
  padding-bottom: 96px !important;
}

.bottom-player-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 84px;
  background: rgba(18, 18, 24, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.65);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  user-select: none;
}

.bottom-player-dock.hidden {
  display: none !important;
}

/* Scrub Progress Bar on Top Edge */
.dock-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  cursor: pointer;
  transition: height 0.15s ease;
}

.dock-progress-track:hover {
  height: 6px;
}

.dock-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff0033, #ff4d6d, #ff85a1);
  width: 0%;
  border-radius: 0 2px 2px 0;
  position: relative;
  box-shadow: 0 0 8px rgba(255, 0, 51, 0.6);
}

.dock-inner {
  display: grid;
  grid-template-columns: 290px 1fr 390px;
  align-items: center;
  height: 80px;
  padding: 0 24px;
  gap: 16px;
}

/* Left: Track Info */
.dock-track-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background 0.2s;
}

.dock-track-info:hover {
  background: rgba(255, 255, 255, 0.06);
}

.dock-cover-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.dock-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dock-sound-wave {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.playing .dock-sound-wave {
  display: flex;
}

.dock-sound-wave span {
  width: 3px;
  height: 6px;
  background: #ff0033;
  border-radius: 2px;
}

.playing .dock-sound-wave span:nth-child(1) { animation: dockWave 0.7s infinite ease-in-out; }
.playing .dock-sound-wave span:nth-child(2) { animation: dockWave 1.0s infinite ease-in-out 0.2s; }
.playing .dock-sound-wave span:nth-child(3) { animation: dockWave 0.8s infinite ease-in-out 0.4s; }

@keyframes dockWave {
  0%, 100% { height: 4px; }
  50% { height: 20px; }
}

.dock-titles {
  min-width: 0;
  flex: 1;
}

.dock-ep-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.1px;
}

.dock-novel-meta {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.dock-novel-title {
  color: #38bdf8;
  font-weight: 500;
}

.dock-separator {
  color: #555;
}

.btn-dock-icon {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.btn-dock-icon:hover {
  color: #fff;
  transform: scale(1.15);
}

.btn-dock-icon.active {
  color: #ff0033;
}

/* Center: Controls & Scrubber */
.dock-center-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
}

.dock-buttons-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-dock-ctrl {
  background: transparent;
  border: none;
  color: #cccccc;
  font-size: 14px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.btn-dock-ctrl:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-dock-play {
  background: #ff0033;
  color: #ffffff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(255, 0, 51, 0.45);
  transition: all 0.15s;
}

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

.dock-scrubber-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.dock-time {
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 36px;
}

.dock-slider-wrap {
  flex: 1;
  display: flex;
  align-items: center;
}

.dock-slider-wrap input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.dock-slider-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  background: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  transition: transform 0.1s;
}

.dock-slider-wrap input[type="range"]:hover::-webkit-slider-thumb {
  transform: scale(1.25);
  background: #ff0033;
}

/* Right: Options (Volume on Top, Speed on Bottom) */
.dock-right-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* Vertical Stack for Volume and Speed */
.dock-audio-settings {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 195px;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Top: Volume Control - Wider & Prominent */
.dock-volume-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.btn-dock-vol {
  padding: 2px !important;
  color: #ddd;
}

.dock-vol-slider-wrap {
  flex: 1;
  display: flex;
  align-items: center;
}

.dock-vol-slider-wrap input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.dock-vol-slider-wrap input[type="range"]:hover {
  background: rgba(255, 255, 255, 0.3);
}

.dock-vol-slider-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease, background 0.15s ease;
}

.dock-vol-slider-wrap input[type="range"]:hover::-webkit-slider-thumb {
  transform: scale(1.15);
  background: #ff0033;
}

.dock-vol-percent {
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 32px;
  text-align: right;
  font-weight: 500;
}

/* Bottom: Speed Control */
.dock-speed-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 2px;
}

.dock-speed-label {
  font-size: 11px;
  color: var(--text-muted);
}

.dock-speed-select {
  background: #242424;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  color-scheme: dark;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.dock-speed-select:hover,
.dock-speed-select:focus {
  background: #2e2e2e;
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

.dock-speed-select option {
  background-color: #1f1f1f !important;
  color: #ffffff !important;
}

/* Action buttons group */
.dock-action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-dock-expand {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: all 0.2s;
}

.btn-dock-expand:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
}

.btn-dock-minimize {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ddd;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: all 0.2s;
}

.btn-dock-minimize:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-dock-close {
  background: transparent;
  border: none;
  color: #777;
  font-size: 15px;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

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

/* Bottom Dock Minimized State */
.bottom-player-dock.minimized {
  transform: translateY(115%);
  opacity: 0;
  pointer-events: none;
}

body.has-mini-dock {
  padding-bottom: 24px !important;
}

/* ==================== MINI FLOATING PLAYER WIDGET ==================== */
.mini-player-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  height: 62px;
  min-width: 290px;
  max-width: 360px;
  background: rgba(18, 18, 24, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 32px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  padding: 0 14px 0 9px;
  gap: 12px;
  z-index: 1000;
  cursor: pointer;
  user-select: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.2s ease, opacity 0.2s ease;
  animation: miniPopIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.mini-player-widget:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85), 0 0 20px rgba(255, 0, 51, 0.25);
  border-color: rgba(255, 255, 255, 0.28);
}

.mini-player-widget.hidden {
  display: none !important;
}

@keyframes miniPopIn {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.85);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Scrub Progress Line at Bottom of Mini Player */
.mini-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
}

.mini-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff0033, #ff4d6d, #ff85a1);
  width: 0%;
  transition: width 0.15s linear;
  box-shadow: 0 0 6px rgba(255, 0, 51, 0.6);
}

/* Spinning Vinyl Disc Cover */
.mini-disc-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: #111;
}

.mini-cover-disc {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.mini-player-widget.playing .mini-cover-disc {
  animation: spinDisc 6s linear infinite;
}

.mini-player-widget:not(.playing) .mini-cover-disc {
  animation-play-state: paused;
}

@keyframes spinDisc {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Vinyl Disc Center Hole */
.mini-disc-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 9px;
  height: 9px;
  background: #101016;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
}

/* Sound Wave Bars on Mini Disc */
.mini-sound-bars {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  gap: 2.5px;
  border-radius: 50%;
}

.mini-player-widget.playing .mini-sound-bars {
  display: flex;
}

.mini-sound-bars span {
  width: 2.5px;
  height: 6px;
  background: #ff0033;
  border-radius: 2px;
}

.mini-player-widget.playing .mini-sound-bars span:nth-child(1) { animation: dockWave 0.7s infinite ease-in-out; }
.mini-player-widget.playing .mini-sound-bars span:nth-child(2) { animation: dockWave 1.0s infinite ease-in-out 0.2s; }
.mini-player-widget.playing .mini-sound-bars span:nth-child(3) { animation: dockWave 0.8s infinite ease-in-out 0.4s; }

/* Info Snippet */
.mini-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mini-ep-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.1px;
}

.mini-novel-title {
  font-size: 11px;
  color: #38bdf8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

/* Actions in Mini Player */
.mini-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.btn-mini-play {
  background: #ff0033;
  color: #ffffff;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(255, 0, 51, 0.45);
  transition: all 0.15s ease;
}

.btn-mini-play:hover {
  background: #e6002e;
  transform: scale(1.08);
}

.btn-mini-icon {
  background: transparent;
  border: none;
  color: #aaa;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-mini-icon:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.btn-mini-restore {
  color: #38bdf8;
}

.btn-mini-restore:hover {
  color: #ffffff;
  background: rgba(56, 189, 248, 0.25);
  transform: scale(1.08);
}

.btn-mini-close:hover {
  color: #ff4d6d;
  background: rgba(255, 0, 51, 0.15);
}

/* Controls SVG Helpers */
.btn-ctrl, .btn-dock-ctrl, .btn-dock-icon, .btn-dock-play, .btn-play, .btn-dock-minimize, .btn-dock-close, .btn-dock-expand, .card-play-overlay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-ctrl svg, .btn-dock-ctrl svg, .btn-dock-icon svg, .btn-dock-play svg, .btn-play svg, .btn-mini-play svg, .btn-mini-icon svg, .card-play-overlay svg, .btn-dock-minimize svg {
  display: block;
  pointer-events: none;
  flex-shrink: 0;
}

/* Card Instant Play Button */
.card-play-overlay {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: #ff0033;
  color: #ffffff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.novel-card:hover .card-play-overlay {
  opacity: 1;
  transform: scale(1);
}

.card-play-overlay:hover {
  background: #e6002e;
  transform: scale(1.12) !important;
}

/* Responsive adjustments for Dock */
@media (max-width: 900px) {
  .dock-inner {
    grid-template-columns: 240px 1fr auto;
    padding: 0 14px;
    gap: 10px;
  }
  .dock-audio-settings {
    display: none !important;
  }
  .dock-novel-meta {
    display: none;
  }
}

@media (max-width: 650px) {
  body.has-bottom-dock {
    padding-bottom: 76px !important;
  }
  .bottom-player-dock {
    height: 68px;
  }
  .dock-inner {
    grid-template-columns: 1fr auto;
    height: 64px;
    padding: 0 10px;
    gap: 8px;
  }
  .dock-scrubber-row,
  .dock-right-controls {
    display: none;
  }
  .dock-center-controls {
    max-width: none;
    width: auto;
  }
  .btn-dock-ctrl {
    display: none;
  }
  .btn-dock-play {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
  .dock-cover-wrap {
    width: 44px;
    height: 44px;
  }
  .dock-track-info {
    max-width: 220px;
  }
  .card-play-overlay {
    opacity: 1;
    transform: scale(1);
  }
}

/* =========================================================
   Subscription & Premium Styling
   ========================================================= */

/* Header Subscribe Button & Badge */
.btn-subscribe-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #ffd43b 0%, #fab005 50%, #f59f00 100%);
  color: #1a1a1a;
  border: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(250, 176, 5, 0.35);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-subscribe-header:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(250, 176, 5, 0.5);
  filter: brightness(1.06);
}

.btn-subscribe-header.is-premium {
  background: rgba(250, 176, 5, 0.15);
  border: 1px solid rgba(250, 176, 5, 0.45);
  color: #ffd43b;
  box-shadow: none;
}

.btn-subscribe-header.is-premium:hover {
  background: rgba(250, 176, 5, 0.25);
  box-shadow: 0 2px 10px rgba(250, 176, 5, 0.2);
}

.btn-subscribe-header .crown-icon {
  font-size: 15px;
}

/* Subscription Modal Card */
.subscription-card {
  max-width: 680px;
  width: 95%;
  background: #14161b;
  border: 1px solid rgba(255, 212, 59, 0.25);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(250, 176, 5, 0.12);
  color: #f1f3f5;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.sub-header-banner {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

.sub-crown-badge {
  font-size: 38px;
  line-height: 1;
  display: inline-block;
  filter: drop-shadow(0 4px 12px rgba(250, 176, 5, 0.5));
  margin-bottom: 6px;
  animation: crownFloat 3s ease-in-out infinite alternate;
}

@keyframes crownFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px) scale(1.05); }
}

.sub-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.sub-title span {
  background: linear-gradient(135deg, #ffd43b, #f59f00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sub-subtitle {
  color: #adb5bd;
  font-size: 14px;
  margin: 4px 0 0 0;
}

/* Active Subscription Notice */
.active-sub-status-box {
  background: linear-gradient(135deg, rgba(250, 176, 5, 0.12), rgba(250, 176, 5, 0.04));
  border: 1px solid rgba(250, 176, 5, 0.35);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
}

.active-sub-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  margin-bottom: 4px;
}

.active-sub-badge {
  color: #ffd43b;
  font-size: 14px;
}

.active-sub-days {
  background: #f59f00;
  color: #14161b;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 12px;
}

.active-sub-expiry {
  font-size: 13px;
  color: #dee2e6;
}

.active-sub-hint {
  font-size: 12px;
  color: #909296;
  margin-top: 4px;
}

/* Feature Highlights Grid */
.sub-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}

.sub-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 12px;
  border-radius: 10px;
}

.sub-feature-item .feat-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.sub-feature-item strong {
  display: block;
  font-size: 13px;
  color: #fff;
}

.sub-feature-item small {
  display: block;
  font-size: 11.5px;
  color: #868e96;
}

.step-heading {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 12px 0;
}

/* Plan Options Grid */
.plan-options-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.plan-option-card {
  position: relative;
  background: #1c1f26;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.plan-option-card:hover {
  border-color: rgba(250, 176, 5, 0.5);
  transform: translateY(-2px);
}

.plan-option-card.selected {
  background: #24241d;
  border-color: #ffd43b;
  box-shadow: 0 0 18px rgba(250, 176, 5, 0.25);
}

.plan-badge-tag {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: #e03131;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  white-space: nowrap;
}

.plan-badge-tag.best {
  background: #2f9e44;
}

.plan-badge-save {
  display: inline-block;
  background: rgba(250, 176, 5, 0.2);
  color: #ffd43b;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  margin-bottom: 4px;
}

.plan-card-header {
  font-size: 13.5px;
  font-weight: 600;
  color: #dee2e6;
  margin-bottom: 4px;
}

.plan-price-num {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.plan-price-num span {
  font-size: 14px;
  font-weight: 400;
  color: #ffd43b;
}

.plan-price-sub {
  font-size: 10.5px;
  color: #868e96;
  margin-top: 2px;
}

.plan-price-sub del {
  color: #6c757d;
  margin-right: 3px;
}

/* Custom Months Row */
.custom-months-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #ced4da;
}

.custom-months-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-month-step {
  width: 30px;
  height: 30px;
  background: #2b303c;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.btn-month-step:hover {
  background: #3b4252;
}

#customMonthsInput {
  width: 50px;
  text-align: center;
  background: #14161b;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffd43b;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px;
  padding: 4px;
}

/* Order Summary Box */
.order-summary-box {
  background: #1a1c23;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 18px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: #adb5bd;
  padding: 4px 0;
}

.summary-row.discount-row {
  color: #51cf66;
}

.summary-row.total-row {
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  margin-top: 8px;
  padding-top: 10px;
  font-size: 15px;
  color: #fff;
  font-weight: 600;
}

.total-price-highlight {
  font-size: 24px;
  font-weight: 800;
  color: #ffd43b;
}

/* Submit Order Button */
.btn-submit-order {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #ffd43b 0%, #fab005 50%, #f59f00 100%);
  color: #14161b;
  border: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(250, 176, 5, 0.35);
  transition: all 0.2s ease;
}

.btn-submit-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(250, 176, 5, 0.5);
  filter: brightness(1.05);
}

.btn-submit-order .btn-arrow {
  font-size: 18px;
  transition: transform 0.2s;
}

.btn-submit-order:hover .btn-arrow {
  transform: translateX(4px);
}

/* Step 2 Payment Layout */
.payment-view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-back-step {
  background: none;
  border: none;
  color: #adb5bd;
  font-family: inherit;
  font-size: 13.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  transition: color 0.15s;
}

.btn-back-step:hover {
  color: #fff;
}

.payment-order-id {
  font-size: 13px;
  color: #868e96;
}

.payment-box-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
}

/* QR Column */
.qr-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #1a1c23;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}

.promptpay-logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #0077b6;
  background: #e0f2fe;
  padding: 4px 12px;
  border-radius: 16px;
  margin-bottom: 12px;
}

.qr-image-wrapper {
  width: 200px;
  height: 200px;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  position: relative;
}

.qr-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-timer {
  margin-top: 12px;
  font-size: 12.5px;
  color: #adb5bd;
}

.qr-timer strong {
  color: #ffd43b;
}

/* Details Column */
.details-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.amount-due-card {
  background: linear-gradient(135deg, rgba(250, 176, 5, 0.12), rgba(250, 176, 5, 0.05));
  border: 1px solid rgba(250, 176, 5, 0.35);
  border-radius: 12px;
  padding: 12px 16px;
  text-align: center;
}

.amount-label {
  font-size: 12.5px;
  color: #dee2e6;
}

.amount-val {
  font-size: 26px;
  font-weight: 800;
  color: #ffd43b;
  margin: 2px 0;
}

.amount-note {
  font-size: 11px;
  color: #adb5bd;
}

.payee-info-list {
  background: #1a1c23;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
}

.payee-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.payee-item:last-child {
  border-bottom: none;
}

.payee-item .label {
  color: #868e96;
}

.copyable-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-copy-pp {
  background: #2c3240;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #dee2e6;
  font-family: inherit;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-copy-pp:hover {
  background: #3c4456;
}

/* Slip Upload Card */
.slip-upload-card {
  background: #1a1c23;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
}

.slip-upload-card h4 {
  font-size: 14px;
  color: #fff;
  margin: 0 0 4px 0;
}

.slip-hint {
  font-size: 12px;
  color: #868e96;
  margin: 0 0 10px 0;
}

.slip-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s ease;
  position: relative;
}

.slip-dropzone:hover {
  border-color: #ffd43b;
  background: rgba(250, 176, 5, 0.04);
}

#slipDropPrompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.drop-icon {
  font-size: 26px;
}

.drop-text {
  font-size: 13px;
  font-weight: 500;
  color: #dee2e6;
}

#slipDropPrompt small {
  font-size: 11px;
  color: #868e96;
}

.slip-preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.slip-preview-wrap img {
  max-height: 140px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.btn-remove-slip {
  background: #c92a2a;
  border: none;
  color: #fff;
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-confirm-slip {
  width: 100%;
  margin-top: 10px;
  background: #2b8a3e;
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-confirm-slip:hover:not(:disabled) {
  background: #2f9e44;
}

.btn-confirm-slip:disabled {
  background: #2b303c;
  color: #6c757d;
  cursor: not-allowed;
}

/* Order Status Alert */
.order-status-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(34, 184, 207, 0.12);
  border: 1px solid rgba(34, 184, 207, 0.35);
  border-radius: 10px;
  padding: 12px 14px;
}

.order-status-box.reviewing {
  background: rgba(250, 176, 5, 0.12);
  border-color: rgba(250, 176, 5, 0.4);
}

.order-status-box.active {
  background: rgba(47, 158, 68, 0.15);
  border-color: rgba(47, 158, 68, 0.4);
}

.order-status-box .status-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.order-status-box .status-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
}

.order-status-box .status-desc {
  font-size: 12px;
  color: #ced4da;
  margin-top: 2px;
}

.payment-actions-footer {
  text-align: right;
  margin-top: 6px;
}

.btn-cancel-order {
  background: none;
  border: none;
  color: #868e96;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}

.btn-cancel-order:hover {
  color: #fa5252;
}

/* Episode Lock & Premium Badges */
.badge-ep-premium {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(250, 176, 5, 0.18);
  color: #ffd43b;
  border: 1px solid rgba(250, 176, 5, 0.45);
  margin-left: 6px;
}

.badge-ep-free {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(77, 171, 247, 0.12);
  color: #74c0fc;
  border: 1px solid rgba(77, 171, 247, 0.25);
  margin-left: 6px;
}

.ep-item.is-locked {
  opacity: 0.85;
}

.ep-item.is-locked:hover {
  background: rgba(250, 176, 5, 0.08);
  border-color: rgba(250, 176, 5, 0.3);
}

.ep-lock-icon {
  color: #ffd43b;
  margin-right: 4px;
}

/* Responsive Subscription Modal */
@media (max-width: 720px) {
  .plan-options-grid {
    grid-template-columns: 1fr 1fr;
  }
  .payment-box-layout {
    grid-template-columns: 1fr;
  }
  .qr-col {
    padding: 12px;
  }
  .sub-features-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Anti-Scraping, CAPTCHA & Security Modals
   ========================================================================== */

.captcha-card {
  max-width: 440px;
  width: 90%;
  padding: 30px;
  background: #16181d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  position: relative;
}

.captcha-header {
  text-align: center;
}

.captcha-icon {
  font-size: 42px;
  margin-bottom: 6px;
}

.captcha-title {
  font-size: 21px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.captcha-desc {
  font-size: 13.5px;
  color: #9aa0a6;
  line-height: 1.5;
  margin: 0;
}

.captcha-preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 16px;
}

.captcha-svg-container {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  background: #111317;
}

.captcha-svg-container svg {
  display: block;
}

.captcha-refresh-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ced4da;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.captcha-input {
  width: 100%;
  box-sizing: border-box;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 6px;
  text-transform: uppercase;
  text-align: center;
  height: 48px;
  background: #0d0f12;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  color: #fff;
  transition: border-color 0.2s ease;
}

.captcha-input:focus {
  outline: none;
  border-color: #ff0033;
  box-shadow: 0 0 10px rgba(255, 0, 51, 0.4);
}

.captcha-error {
  color: #ff6b6b;
  font-size: 13px;
  text-align: center;
  margin-top: 10px;
  background: rgba(255, 107, 107, 0.1);
  padding: 6px 10px;
  border-radius: 6px;
}

/* Suspended Account Modal */
.suspended-card {
  max-width: 480px;
  width: 90%;
  padding: 34px;
  background: #181416;
  border: 1px solid rgba(255, 0, 51, 0.35);
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 0, 51, 0.15);
}

.suspended-icon {
  font-size: 52px;
  margin-bottom: 10px;
}

.suspended-title {
  font-size: 22px;
  font-weight: 700;
  color: #ff6b6b;
  margin-bottom: 8px;
}

.suspended-desc {
  font-size: 14px;
  color: #d1d5db;
  line-height: 1.6;
  margin: 0 0 16px;
}

.suspended-notice {
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.3);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  color: #ffa8a8;
  text-align: left;
  line-height: 1.5;
}
