:root {
  --bg-body: #f4f5f8;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-subtle: #f8f9fa;
  --bg-hover: #ebebeb;
  --bg-badge: #ebebeb;
  --border-color: #e5e7eb;
  --border-light: #f0f2f5;

  --text-main: #111827;
  --text-muted: #6b7280;
  --text-dim: #9ca3af;

  --accent-primary: #1E90FF;
  --accent-primary-hover: #0d80f2;
  --accent-primary-light: #e6f3ff;
  --accent-green: #10b981;
  --accent-star: #f59e0b;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --schedule-bg: var(--bg-card);
  --schedule-border: var(--border-color);
  --schedule-item-hover: var(--bg-hover);
  --schedule-text: var(--text-main);
  --schedule-time: var(--text-muted);
  --schedule-tab-bg: var(--bg-card-subtle);
}

[data-theme="dark"] {
  --bg-body: #0a0a0c;
  --bg-surface: #121214;
  --bg-card: #121214;
  --bg-card-subtle: #18181c;
  --bg-hover: #1f1f24;
  --bg-badge: #232329;
  --border-color: #27272f;
  --border-light: #1f1f24;

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  --accent-primary-light: #182030;

  --schedule-bg: var(--bg-card);
  --schedule-border: var(--border-color);
  --schedule-item-hover: var(--bg-hover);
  --schedule-text: var(--text-main);
  --schedule-time: var(--text-muted);
  --schedule-tab-bg: var(--bg-card-subtle);
}

/* 4. Midnight OLED Theme (Pitch Black & Electric Cyan) */
[data-theme="oled"] {
  --bg-body: #000000;
  --bg-surface: #070709;
  --bg-card: #08080a;
  --bg-card-subtle: #0f0f13;
  --bg-hover: #16161d;
  --bg-badge: #141419;
  --border-color: #1a1a24;
  --border-light: #121218;

  --text-main: #ffffff;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  --accent-primary: #00e5ff;
  --accent-primary-hover: #00c7de;
  --accent-primary-light: #062830;

  --schedule-bg: var(--bg-card);
  --schedule-border: var(--border-color);
  --schedule-item-hover: var(--bg-hover);
  --schedule-text: var(--text-main);
  --schedule-time: var(--text-muted);
  --schedule-tab-bg: var(--bg-card-subtle);
}

/* 5. Midnight Navy Theme (Classic AniShift #201f31) */
[data-theme="navy"] {
  --bg-body: #201f31;
  --bg-surface: #26253b;
  --bg-card: #26253b;
  --bg-card-subtle: #1c1b2c;
  --bg-hover: #2e2c45;
  --bg-badge: #2c2a42;
  --border-color: #35334e;
  --border-light: #2c2a42;

  --text-main: #ffffff;
  --text-muted: #a5a8be;
  --text-dim: #72758e;

  --accent-primary: #1E90FF;
  --accent-primary-hover: #0d80f2;
  --accent-primary-light: #263352;

  --schedule-bg: var(--bg-card);
  --schedule-border: var(--border-color);
  --schedule-item-hover: var(--bg-hover);
  --schedule-text: var(--text-main);
  --schedule-time: var(--text-muted);
  --schedule-tab-bg: var(--bg-card-subtle);
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.45;
  font-size: 14.2px;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

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

input {
  font-family: inherit;
}

/* Glass Skeleton Loader */
.glass-skeleton {
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.05) 0%,
      rgba(255, 255, 255, 0.25) 50%,
      rgba(255, 255, 255, 0.05) 100%);
  background-size: 200% 100%;
  animation: glass-shimmer 1.5s infinite linear;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
}

[data-theme="light"] .glass-skeleton {
  background: linear-gradient(90deg,
      rgba(229, 231, 235, 0.5) 0%,
      rgba(243, 244, 246, 0.9) 50%,
      rgba(229, 231, 235, 0.5) 100%);
  background-size: 200% 100%;
}

@keyframes glass-shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.page-container {
  flex: 1 0 auto;
  width: 100%;
  box-sizing: border-box;
  max-width: 1540px;
  margin: 0 auto;
  padding: 16px 20px 48px;
}

/* Blur overlay for drawer */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ===================================================
   1. NAVBAR
   =================================================== */
.navbar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 900;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  width: 100%;
  transition: background-color 0.25s, border-color 0.25s;
}

.navbar-container {
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  height: 58px;
  padding: 6px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
}

/* Fallback if navbar-container wrapper is not present */
.navbar:not(:has(.navbar-container)) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 20px;
  height: 58px;
  gap: 16px;
  max-width: 1540px;
  margin: 0 auto;
}

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

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-hover);
  color: var(--text-muted);
  font-size: 13px;
  transition: all 0.15s ease;
  cursor: pointer;
}

.icon-btn:hover {
  background-color: var(--border-color);
  color: var(--text-main);
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo-img {
  height: 28px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: inline-block;
}

/* Light Theme shows light_logo and icon-light, hides dark */
.logo-dark,
.icon-dark {
  display: none !important;
}
.logo-light,
.icon-light {
  display: inline-block !important;
}

/* Dark, OLED & Navy Themes show dark_logo and icon-dark, hides light */
[data-theme="dark"] .logo-dark,
[data-theme="dark"] .icon-dark,
[data-theme="oled"] .logo-dark,
[data-theme="oled"] .icon-dark,
[data-theme="navy"] .logo-dark,
[data-theme="navy"] .icon-dark {
  display: inline-block !important;
}
[data-theme="dark"] .logo-light,
[data-theme="dark"] .icon-light,
[data-theme="oled"] .logo-light,
[data-theme="oled"] .icon-light,
[data-theme="navy"] .logo-light,
[data-theme="navy"] .icon-light {
  display: none !important;
}

/* Strictly hide default AniShift icons when custom user avatar is loaded */
.has-custom-avatar .icon-light,
.has-custom-avatar .icon-dark,
.has-custom-avatar .drawer-profile-img,
.has-custom-avatar .nav-profile-avatar,
.has-custom-avatar .profile-avatar-img,
[data-theme="dark"] .has-custom-avatar .icon-dark,
[data-theme="dark"] .has-custom-avatar .nav-profile-avatar,
[data-theme="dark"] .has-custom-avatar .drawer-profile-img,
[data-theme="dark"] .has-custom-avatar .profile-avatar-img,
[data-theme="oled"] .has-custom-avatar .icon-dark,
[data-theme="oled"] .has-custom-avatar .nav-profile-avatar,
[data-theme="navy"] .has-custom-avatar .icon-dark,
[data-theme="navy"] .has-custom-avatar .nav-profile-avatar,
[data-theme="light"] .has-custom-avatar .icon-light,
[data-theme="light"] .has-custom-avatar .nav-profile-avatar {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
}

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

.miruro-search-group {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.miruro-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--bg-hover);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0 6px 0 32px;
  height: 32px;
  transition: all 0.2s;
}

.miruro-input-wrap .search-inner-icon {
  position: absolute;
  left: 10px;
  color: var(--text-dim);
  font-size: 12px;
  pointer-events: none;
}

.miruro-input-wrap:focus-within {
  background-color: var(--bg-surface);
  border-color: var(--text-main);
}

.miruro-input-wrap input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 12.5px;
  color: var(--text-main);
  outline: none;
}

.miruro-input-wrap input::placeholder {
  color: var(--text-dim);
}

/* Clear Button */
.search-clear-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
  flex-shrink: 0;
  border-radius: 3px;
}

.search-clear-btn:hover {
  color: var(--text-main);
}

/* Search Suggestions Dropdown (Miruro Style) */
.search-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  overflow: hidden;
}

[data-theme="dark"] .search-suggestions-dropdown,
[data-theme="oled"] .search-suggestions-dropdown,
[data-theme="navy"] .search-suggestions-dropdown {
  background: var(--bg-surface);
  border-color: var(--border-color);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.search-suggestions-list {
  display: flex;
  flex-direction: column;
  max-height: 360px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.search-suggestions-list::-webkit-scrollbar {
  display: none;
}

.search-suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-light);
  transition: background-color 0.15s ease;
  text-decoration: none;
}

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

.search-suggestion-item:hover,
.search-suggestion-item.active {
  background-color: var(--bg-hover);
}

.suggestion-thumb {
  width: 38px;
  height: 52px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-hover);
}

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

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

.suggestion-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.suggestion-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.suggestion-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.suggestion-badge.score-badge i {
  color: var(--accent-star);
}

.suggestion-status-text {
  padding: 16px;
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Standalone action boxes (Search button & Filter button) */
.nav-action-box {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-hover);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 12px;
  transition: all 0.15s ease;
  cursor: pointer;
}

.nav-action-box:hover {
  background-color: var(--border-color);
  color: var(--text-main);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-search-toggle-btn {
  display: none;
}

/* Mobile Search Row (sits cleanly beneath sticky navbar) */
.mobile-search-row {
  display: none;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 14px 10px;
  width: 100%;
  box-sizing: border-box;
  position: -webkit-sticky;
  position: sticky;
  top: 58px;
  z-index: 899;
}

.mobile-search-row .miruro-input-wrap {
  width: 100%;
  height: 38px;
  border-radius: 6px;
  padding: 0 10px 0 34px;
}

.mobile-search-row .miruro-input-wrap .search-inner-icon {
  font-size: 13px;
  left: 12px;
}

.mobile-search-row .miruro-input-wrap input {
  font-size: 13px;
}

/* Profile Square Box with 48x48 icon inside */
.nav-profile-box {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-hover);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  padding: 2px;
  transition: all 0.15s ease;
}

.nav-profile-box:hover {
  background-color: var(--border-color);
  border-color: var(--text-main);
}

.nav-profile-avatar {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.nav-profile-box .user-letter-avatar,
.drawer-profile-btn .user-letter-avatar {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent-primary) 0%, #8b5cf6 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  user-select: none;
}

.nav-profile-box .user-custom-img,
.drawer-profile-btn .user-custom-img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
  display: block;
}

/* Notification Button (Desktop & Mobile, placed to the left of Profile) */
.nav-notification-btn {
  position: relative;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-hover);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.nav-notification-btn:hover,
.nav-notification-btn.active {
  background-color: var(--border-color);
  color: var(--text-main);
}

/* Notification Bell Count Bubble Tag (Matches comments bubble) */
.nav-notif-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  font-family: inherit;
  line-height: 15px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--bg-surface, #0f172a);
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.6), 0 0 10px rgba(239, 68, 68, 0.4);
  pointer-events: none;
  z-index: 10;
  animation: notifPulse 2s infinite ease-in-out;
}

@keyframes notifPulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.18); opacity: 0.9; }
  100% { transform: scale(1); opacity: 1; }
}

/* ===================================================
   NOTIFICATION SLIDE-OVER DRAWER (Matches Miruro UX)
   =================================================== */
.notif-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.notif-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.notification-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  max-width: 100vw;
  background-color: var(--bg-surface);
  border-left: 1px solid var(--border-color);
  z-index: 9999;
  box-shadow: none;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
  display: flex;
  flex-direction: column;
}

.notification-drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  box-shadow: none;
}

/* 1. Drawer Header */
.notif-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-surface);
  flex-shrink: 0;
}

.notif-drawer-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

.notif-drawer-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.notif-action-btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.notif-action-btn:hover {
  background: var(--border-color);
  color: var(--text-main);
}

.notif-mark-read-btn {
  height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 4px;
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.notif-mark-read-btn:hover {
  background: var(--border-color);
  color: var(--text-main);
}

.notif-close-btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.notif-close-btn:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

/* 2. Notification Drawer Body */
.notif-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.notif-empty-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.notif-empty-text {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
}

/* Notification Item Cards */
.notif-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notif-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  color: inherit;
}

.notif-card:hover {
  background: var(--bg-hover);
  border-color: var(--text-dim);
  transform: translateX(-2px);
}

.notif-card-poster {
  width: 44px;
  height: 60px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-hover);
}

.notif-card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notif-card-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.notif-card-ep {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-primary);
  background: rgba(30, 144, 255, 0.12);
  padding: 1.5px 6px;
  border-radius: 3px;
}

.notif-card-time {
  font-size: 10.5px;
  color: var(--text-dim);
}

/* Admin RP Avatar and Notification Item Styling */
.admin-rp-avatar-wrap {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-hover);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 2px;
  box-sizing: border-box;
  flex-shrink: 0;
  box-shadow: none;
}

.admin-rp-avatar-wrap .admin-rp-theme-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  margin: 0;
}

.notif-card-avatar {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.notif-card.is-reply-notif {
  border-left: 3px solid var(--accent-primary);
  background: var(--bg-card);
}

.notif-card.is-reply-notif.is-admin-notif {
  background: rgba(30, 144, 255, 0.05);
  border-color: rgba(30, 144, 255, 0.35);
}

/* Mobile full-screen slide-over drawer */
@media (max-width: 640px) {
  .notification-drawer {
    width: 100% !important;
    max-width: 100% !important;
    border-left: none;
  }
}


/* ===================================================
   2. ANNOUNCEMENT BAR
   =================================================== */
.announcement-bar {
  background-color: var(--accent-primary-light);
  border: 1px solid rgba(30, 144, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  margin: 0 0 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  box-sizing: border-box;
  font-size: 12.5px;
  color: #1e40af;
  transition: all 0.3s ease;
}

[data-theme="dark"] .announcement-bar,
[data-theme="oled"] .announcement-bar,
[data-theme="navy"] .announcement-bar {
  color: #93c5fd;
}

/* Alert Themes */
.announcement-bar.theme-blue {
  background-color: rgba(30, 144, 255, 0.12);
  border-color: rgba(30, 144, 255, 0.35);
  color: #93c5fd;
}
.announcement-bar.theme-emerald {
  background-color: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}
.announcement-bar.theme-amber {
  background-color: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fcd34d;
}
.announcement-bar.theme-rose {
  background-color: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.35);
  color: #fda4af;
}
.announcement-bar.theme-purple {
  background-color: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.35);
  color: #d8b4fe;
}

.announcement-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.announcement-content {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.announcement-content.slide-entering {
  opacity: 0;
  transform: translateX(24px);
}

.announcement-content.slide-active {
  opacity: 1;
  transform: translateX(0);
}

.announcement-content i {
  color: inherit;
  font-size: 13px;
  flex-shrink: 0;
}

.announcement-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .announcement-text {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}

.announcement-link {
  font-weight: 600;
  text-decoration: underline;
  margin-left: 3px;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.announcement-link:hover {
  opacity: 0.8;
}

.close-banner-btn {
  color: inherit;
  opacity: 0.65;
  font-size: 14px;
  padding: 2px 4px;
  cursor: pointer;
  background: none;
  border: none;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.close-banner-btn:hover {
  opacity: 1;
}

/* Dots indicator overlay at bottom center - Does NOT increase banner height */
.announcement-dots-row {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  margin: 0;
  pointer-events: auto;
  z-index: 2;
}

.announcement-dot {
  width: 4px;
  height: 4px;
  border-radius: 9999px;
  background: currentColor;
  opacity: 0.35;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.announcement-dot.active {
  width: 12px;
  opacity: 0.95;
}

/* ===================================================
   3. HERO BANNER SLIDER
   =================================================== */
/* ===================================================
   3. HERO BANNER SLIDER
   =================================================== */
.hero-slider-card {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: transparent;
  margin-bottom: 24px;
  box-shadow: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: opacity 0.4s ease;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(244, 245, 248, 0) 0%,
      rgba(244, 245, 248, 0) 35%,
      rgba(244, 245, 248, 0.45) 60%,
      rgba(244, 245, 248, 0.88) 85%,
      var(--bg-body) 100%),
    linear-gradient(to right,
      rgba(244, 245, 248, 0.96) 0%,
      rgba(244, 245, 248, 0.85) 45%,
      rgba(244, 245, 248, 0.12) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 48px;
}

[data-theme="dark"] .hero-overlay {
  background:
    linear-gradient(to bottom,
      rgba(10, 10, 12, 0) 0%,
      rgba(10, 10, 12, 0) 35%,
      rgba(10, 10, 12, 0.5) 60%,
      rgba(10, 10, 12, 0.9) 85%,
      var(--bg-body) 100%),
    linear-gradient(to right,
      rgba(10, 10, 12, 0.97) 0%,
      rgba(10, 10, 12, 0.86) 45%,
      rgba(10, 10, 12, 0.15) 100%);
}

[data-theme="oled"] .hero-overlay {
  background:
    linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0) 35%,
      rgba(0, 0, 0, 0.55) 60%,
      rgba(0, 0, 0, 0.92) 85%,
      var(--bg-body) 100%),
    linear-gradient(to right,
      rgba(0, 0, 0, 0.98) 0%,
      rgba(0, 0, 0, 0.88) 45%,
      rgba(0, 0, 0, 0.15) 100%);
}

[data-theme="navy"] .hero-overlay {
  background:
    linear-gradient(to bottom,
      rgba(32, 31, 49, 0) 0%,
      rgba(32, 31, 49, 0) 35%,
      rgba(32, 31, 49, 0.55) 60%,
      rgba(32, 31, 49, 0.92) 85%,
      var(--bg-body) 100%),
    linear-gradient(to right,
      rgba(32, 31, 49, 0.98) 0%,
      rgba(32, 31, 49, 0.88) 45%,
      rgba(32, 31, 49, 0.15) 100%);
}

.hero-top-badge {
  position: absolute;
  top: 18px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Pagination Box */
.pill-pagination {
  display: inline-flex;
  align-items: center;
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
}

.pill-pagination button {
  width: 26px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 10px;
  transition: background 0.15s, color 0.15s;
}

.pill-pagination button:hover {
  background: var(--border-color);
  color: var(--text-main);
}

.pill-pagination .pill-page-number {
  padding: 0 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  line-height: 24px;
}

.hero-slide-nav {
  position: absolute;
  top: 18px;
  right: 24px;
}

.hero-info {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--bg-hover);
  color: var(--text-muted);
}

.meta-chip.chip-score {
  color: var(--accent-star);
}

.hero-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-details {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-weight: 700;
  font-size: 12.5px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

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

.btn-watch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 12.5px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.btn-watch:hover {
  background: var(--accent-primary-hover);
}

/* ===================================================
   4. GENRE ROW CENTERED WITH FADE EFFECT (NO CARD BG)
   =================================================== */
.genre-row-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  position: relative;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 4px 0;
  overflow: hidden;
}

.genre-nav-btn {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-hover);
  color: var(--text-muted);
  font-size: 11px;
  transition: all 0.15s;
  z-index: 3;
}

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

.genre-chips-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  flex: 1;
  padding: 2px 28px;
  /* Smooth Fade on both sides */
  mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
}

.genre-chips-scroll::-webkit-scrollbar {
  display: none;
}

.genre-chip {
  flex-shrink: 0;
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-hover);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.genre-chip:hover {
  background: var(--text-main);
  color: var(--bg-surface);
}

/* ===================================================
   4.5. COMPACT TOP 10 XP STRIP (DIRECTLY BELOW GENRE)
   =================================================== */
/* ===================================================
   4.5. COMPACT TOP 10 XP STRIP (DIRECTLY BELOW GENRE)
   =================================================== */
.top-leaderboard-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -6px;
  margin-bottom: 24px;
  position: relative;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 4px 0;
  overflow: hidden;
  width: 100%;
}

.leaderboard-strip-scroll {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  padding: 8px 0 4px;
}

.leaderboard-strip-scroll::-webkit-scrollbar {
  display: none;
}

.leaderboard-loading-placeholder {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  color: var(--text-dim);
  font-size: 13px;
}

/* Minimalist User Leaderboard Item (No card background, perfectly centered) */
.leaderboard-user-item {
  flex: 1 1 0;
  min-width: 65px;
  max-width: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  background: transparent;
  border: none;
  position: relative;
  transition: transform 0.18s ease;
  user-select: none;
  padding: 2px 0;
}

.leaderboard-user-item:hover {
  transform: translateY(-2px);
}

/* Square Avatar Box with 48x48 icon inside (matching .nav-profile-box) */
.leaderboard-avatar-box {
  width: 40px;
  height: 40px;
  border-radius: 7px;
  background-color: var(--bg-hover);
  border: 1px solid var(--border-color);
  padding: 2px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px; /* Room for crown */
  margin-bottom: 5px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.leaderboard-user-item:hover .leaderboard-avatar-box {
  border-color: var(--accent-primary);
  box-shadow: 0 3px 10px rgba(30, 144, 255, 0.25);
}

.leaderboard-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
  display: block;
}

/* Fallback letter avatar matching user initials */
.leaderboard-avatar-box .leaderboard-letter-avatar {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--accent-primary) 0%, #8b5cf6 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  user-select: none;
}

/* Crown Rank Badge floating on top of square avatar */
.leaderboard-crown-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 16px;
  padding: 0 5px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
  z-index: 2;
  white-space: nowrap;
}

.leaderboard-crown-badge i {
  font-size: 8px;
}

/* Podium Crown Colors */
.leaderboard-user-item.rank-1 .leaderboard-avatar-box {
  border-color: #f59e0b;
}
.leaderboard-user-item.rank-1 .leaderboard-crown-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border-color: #f59e0b;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.45);
}

.leaderboard-user-item.rank-2 .leaderboard-avatar-box {
  border-color: #9ca3af;
}
.leaderboard-user-item.rank-2 .leaderboard-crown-badge {
  background: linear-gradient(135deg, #9ca3af, #6b7280);
  color: #fff;
  border-color: #9ca3af;
  box-shadow: 0 2px 6px rgba(156, 163, 175, 0.35);
}

.leaderboard-user-item.rank-3 .leaderboard-avatar-box {
  border-color: #b45309;
}
.leaderboard-user-item.rank-3 .leaderboard-crown-badge {
  background: linear-gradient(135deg, #b45309, #78350f);
  color: #fff;
  border-color: #b45309;
  box-shadow: 0 2px 6px rgba(180, 83, 9, 0.35);
}

/* Tiny Level Badge overlay at bottom-right of avatar */
.leaderboard-lv-pill {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: var(--accent-primary);
  color: #ffffff;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 3px;
  border-radius: 3px;
  line-height: 1.1;
  border: 1px solid var(--bg-surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* Center Aligned Info Below Avatar */
.leaderboard-meta-col {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.leaderboard-user-name {
  width: 100%;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.leaderboard-user-item:hover .leaderboard-user-name {
  color: var(--accent-primary);
}

.leaderboard-title-badge {
  width: 100%;
  font-size: 9px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.leaderboard-xp-val {
  font-size: 9.5px;
  font-weight: 700;
  color: #f59e0b;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  line-height: 1.3;
}

.leaderboard-xp-val i {
  font-size: 7.5px;
}

/* Track container that spans full width on desktop matching hero */
.leaderboard-track-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 16px;
}

/* Hide duplicate set on desktop screens so only 10 users show perfectly balanced across full width */
.leaderboard-user-item.duplicate-item {
  display: none;
}

/* Continuous Infinite Marquee Loop for Mobile Screens */
@keyframes leaderboardMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 900px) {
  .leaderboard-track-wrap {
    width: max-content !important;
    justify-content: flex-start !important;
    animation: leaderboardMarquee 26s linear infinite;
    will-change: transform;
  }

  /* Show duplicate set on mobile to achieve 100% seamless infinite looping */
  .leaderboard-user-item.duplicate-item {
    display: flex !important;
  }

  .leaderboard-strip-scroll {
    justify-content: flex-start !important;
    overflow-x: hidden !important;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    padding: 10px 0 6px !important;
  }

  .leaderboard-strip-scroll:hover .leaderboard-track-wrap,
  .leaderboard-strip-scroll:active .leaderboard-track-wrap {
    animation-play-state: paused;
  }

  .leaderboard-user-item {
    flex: 0 0 76px !important;
    width: 76px !important;
  }
  .leaderboard-avatar-box {
    width: 44px !important;
    height: 44px !important;
  }
}

/* ===================================================
   5. WATCH HISTORY SECTION
   =================================================== */
.section-subhead {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.section-head {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.history-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.history-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-hover);
  overflow: hidden;
}

.history-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.history-card:hover .history-card-thumb img {
  transform: scale(1.03);
}

.history-ep-pill {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.history-time-pill {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.history-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
}

.history-progress-bar {
  height: 100%;
  background: #ef4444;
}

.history-dismiss-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.15s ease;
  border: none;
  cursor: pointer;
  z-index: 5;
}

.history-card:hover .history-dismiss-btn {
  opacity: 1;
}

.history-dismiss-btn:hover {
  background: #ef4444;
  transform: scale(1.12);
}

.history-card-meta {
  padding: 8px 10px;
}

.history-card-title {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-main);
}

.history-view-more {
  border: 1px dashed var(--border-color);
  background: var(--bg-card-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13px;
  transition: all 0.15s;
  cursor: pointer;
}

.history-view-more:hover {
  background: var(--bg-hover);
  color: var(--text-main);
  border-color: var(--text-main);
}

.history-clear-btn {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.history-clear-btn:hover {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.08);
}

.history-empty-box {
  grid-column: 1 / -1;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  text-align: center;
  gap: 6px;
}

.history-empty-box i {
  font-size: 26px;
  color: var(--text-dim);
  opacity: 0.6;
  margin-bottom: 4px;
}

/* ===================================================
   6. TWO-COLUMN MAIN AREA
   =================================================== */
.main-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  margin-bottom: 36px;
  align-items: start;
}

.main-left-col {
  min-width: 0;
}

.main-right-col {
  width: 330px;
  min-width: 330px;
}

/* Subreddit / Community Callout */
.community-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.community-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.community-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
}

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

.community-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.community-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.community-share-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-hover);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.15s ease;
}

.community-share-btn:hover {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  transform: scale(1.08);
}

/* Section Header Bar with Title & Pill Pagination */
.section-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 12px;
}

.section-bar-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--text-main);
  text-transform: uppercase;
}

.btn-view-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

.btn-view-more:hover {
  background: var(--text-main);
  color: var(--bg-surface);
  border-color: var(--text-main);
}

/* EXACT 6-COLUMN ANIME POSTER GRID MATCHING IMAGE 3 */
.anime-grid-6col {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  column-gap: 15px;
  row-gap: 20px;
  width: 100%;
}

.anime-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Natural Anime Poster Aspect Ratio (2 / 3) */
.anime-poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 2.95;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--bg-hover);
  margin-bottom: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.anime-poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.25s ease;
}

.anime-card:hover .anime-poster-wrap img {
  transform: scale(1.05);
}

/* Anime Poster Hover Overlay (Miruro Style) */
.anime-poster-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 2;
}

.anime-card:hover .anime-poster-overlay {
  opacity: 1;
  pointer-events: auto;
}

.poster-play-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 26px;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.6));
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.anime-card:hover .poster-play-btn {
  transform: scale(1.12);
}

.poster-bookmark-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  font-size: 11px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.poster-bookmark-btn i {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

[data-theme="dark"] .poster-bookmark-btn,
[data-theme="oled"] .poster-bookmark-btn,
[data-theme="navy"] .poster-bookmark-btn {
  background: rgba(25, 25, 30, 0.9);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.1);
}

.poster-bookmark-btn:hover {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  transform: scale(1.1);
}

.anime-card-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  display: inline-block;
  flex-shrink: 0;
}

.anime-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 10.5px;
  color: var(--text-muted);
}

.meta-tag {
  background: var(--bg-badge);
  padding: 2px 5px;
  border-radius: 4px;
  font-weight: 600;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}


/* ===================================================
   SCHEDULE SECTION (LIST ONLY IN CARD AS IN 2IMG)
   Header & Tabs stay outside, list inside the card
   =================================================== */
.schedule-section {
  margin: 24px 0;
  width: 100%;
}

.schedule-banner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.schedule-head-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.2px;
}

.schedule-head-clock {
  font-size: 10.5px;
  background: var(--bg-card);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.3px;
  border: 1px solid var(--border-color);
  white-space: nowrap;
  flex-shrink: 0;
}

.schedule-tabs-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.schedule-day-pill {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 8px 4px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.schedule-day-pill:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}

.schedule-day-pill.active {
  background: var(--text-main);
  border-color: var(--text-main);
  color: var(--bg-surface);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.schedule-day-name {
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 2px;
}

.schedule-day-sub {
  font-size: 9.5px;
  opacity: 0.85;
}

.schedule-items-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 12px 14px;
  box-shadow: var(--shadow-sm);
}

.schedule-items-table {
  display: flex;
  flex-direction: column;
}

.schedule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
  border-radius: 4px;
}

.schedule-row:last-child {
  border-bottom: none;
}

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

.schedule-row-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.schedule-row-time {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  width: 44px;
  flex-shrink: 0;
}

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

.schedule-row-right {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 600;
  flex-shrink: 0;
}

.schedule-row-right i {
  font-size: 8px;
  color: var(--text-main);
}

.btn-schedule-more {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-schedule-more:hover {
  background: var(--text-main);
  color: var(--bg-surface);
  border-color: var(--text-main);
}

/* ===================================================
   RIGHT SIDEBAR: TOP RATED & JUST FINISHED
   Distinct container cards containing anime card items
   =================================================== */
.side-widget-box {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 14px 16px;
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
}

.side-widget-header {
  padding: 0 0 12px 2px;
  font-size: 13.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 12px;
}

.side-widget-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-widget-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.side-widget-item:hover {
  transform: translateY(-2px);
  border-color: var(--text-dim);
  box-shadow: var(--shadow-md);
}

/* Grayscale banner background layer with theme-aware gradient overlay */
.side-item-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  filter: grayscale(100%);
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.2s ease, transform 0.3s ease;
}

[data-theme="dark"] .side-item-bg,
[data-theme="oled"] .side-item-bg,
[data-theme="navy"] .side-item-bg {
  opacity: 0.22;
}

.side-widget-item:hover .side-item-bg {
  opacity: 0.28;
  transform: scale(1.04);
}

.side-item-thumb {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-hover);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

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

.side-item-info {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}

.side-item-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.side-item-title .item-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-green);
  display: inline-block;
  flex-shrink: 0;
}

.side-item-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.side-item-meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* ===================================================
   7. BOTTOM ROW: JUST FINISHED & TOP MOVIES
   =================================================== */
.bottom-lists-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.bottom-list-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.bottom-list-header {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border-light);
}

.bottom-list-items {
  display: flex;
  flex-direction: column;
}

.bottom-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
}

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

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

.bottom-item-thumb {
  width: 42px;
  height: 56px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-hover);
}

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

.bottom-item-info {
  flex: 1;
  min-width: 0;
}

.bottom-item-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

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

/* ===================================================
   8. FOOTER
   =================================================== */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface);
  padding: 30px 24px;
}

.footer-inner {
  max-width: 1540px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand-wrap {
  max-width: 500px;
}

.footer-brand {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.footer-brand-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: inline-block;
  border-radius: 8px;
}

.footer-disclaimer {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
  font-size: 11px;
  color: var(--text-dim);
}

.footer-version-tag {
  background: var(--bg-hover);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

/* Footer Theme Icons (Segmented 5 Themes matching Menu) */
.footer-theme-icons {
  display: flex;
  align-items: stretch;
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  height: 30px;
  padding: 0;
  gap: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.theme-icon-btn {
  width: 30px;
  height: 100%;
  border: none;
  border-right: 1px solid var(--border-color);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-dim);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
  user-select: none;
}

.theme-icon-btn:last-child {
  border-right: none;
}

.theme-icon-btn:hover {
  background-color: var(--border-light);
  color: var(--text-main);
}

.theme-icon-btn.active {
  background-color: var(--bg-surface);
  color: var(--text-main);
  box-shadow: none;
}

/* ===================================================
   9. SLIDE-OUT SIDEBAR
   =================================================== */
.side-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  background-color: var(--bg-surface);
  z-index: 999;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.side-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-light);
}

.drawer-menu {
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s;
}

.drawer-item i {
  font-size: 15px;
  width: 18px;
}

.drawer-item:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}

.drawer-item.active {
  background: var(--accent-primary-light);
  color: var(--accent-primary);
}

.drawer-footer {
  padding: 16px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-dim);
}

.drawer-version-badge {
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  padding: 1px 7px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.3px;
}

/* ===================================================
   DRAWER FOOTER ICON TOOLBAR (Matches Miruro Segmented Style)
   =================================================== */
.drawer-theme-row {
  display: flex;
  align-items: stretch;
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  height: 35px;
  padding: 0;
  gap: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.drawer-theme-btn,
.drawer-tracker-btn {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-right: 1px solid var(--border-color);
  border-radius: 0;
  background: transparent;
  color: var(--text-dim);
  font-size: 13.5px;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
  user-select: none;
}

.drawer-theme-btn:last-child,
.drawer-tracker-btn:last-child {
  border-right: none;
}

.drawer-theme-btn:hover,
.drawer-tracker-btn:hover {
  background-color: var(--border-light);
  color: var(--text-main);
}

.drawer-theme-btn.active,
.drawer-tracker-btn.active {
  background-color: var(--bg-surface);
  color: var(--text-main);
  box-shadow: none;
}

.drawer-tracker-btn svg {
  display: block;
}

.drawer-profile-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 6px;
  width: 100%;
}

.drawer-profile-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-main);
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.drawer-profile-btn:hover {
  background: var(--border-color);
  border-color: var(--text-dim);
}

.drawer-profile-img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.drawer-settings-btn {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  transition: all 0.15s ease;
  cursor: pointer;
}

.drawer-settings-btn:hover {
  background: var(--border-color);
  color: var(--text-main);
}

/* ===================================================
   RESPONSIVE QUERIES
   =================================================== */
@media (max-width: 1280px) {
  .anime-grid-6col {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1024px) {
  .main-two-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .main-right-col {
    width: 100%;
  }

  .bottom-lists-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .anime-grid-6col {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0;
  }
  .navbar-container,
  .navbar:not(:has(.navbar-container)) {
    padding: 10px 14px;
  }

  .page-container {
    padding: 12px 14px 32px;
  }

  .nav-center {
    display: none;
  }

  .mobile-search-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background-color: var(--bg-hover);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
  }

  .mobile-search-toggle-btn:hover,
  .mobile-search-toggle-btn.active {
    background-color: var(--border-color);
    color: var(--text-main);
  }

  .mobile-search-row.open {
    display: block;
  }

  .bottom-lists-row {
    grid-template-columns: 1fr;
  }

  .hero-slider-card {
    height: 350px;
    margin-bottom: 20px;
  }

  .hero-overlay {
    padding: 20px 16px;
    background:
      linear-gradient(to bottom,
        rgba(244, 245, 248, 0) 0%,
        rgba(244, 245, 248, 0) 25%,
        rgba(244, 245, 248, 0.5) 55%,
        rgba(244, 245, 248, 0.9) 82%,
        var(--bg-body) 100%),
      linear-gradient(to right,
        rgba(244, 245, 248, 0.98) 0%,
        rgba(244, 245, 248, 0.9) 55%,
        rgba(244, 245, 248, 0.25) 100%);
  }

  [data-theme="dark"] .hero-overlay {
    background:
      linear-gradient(to bottom,
        rgba(10, 10, 12, 0) 0%,
        rgba(10, 10, 12, 0) 25%,
        rgba(10, 10, 12, 0.55) 55%,
        rgba(10, 10, 12, 0.92) 82%,
        var(--bg-body) 100%),
      linear-gradient(to right,
        rgba(10, 10, 12, 0.98) 0%,
        rgba(10, 10, 12, 0.9) 55%,
        rgba(10, 10, 12, 0.25) 100%);
  }

  [data-theme="oled"] .hero-overlay {
    background:
      linear-gradient(to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0) 25%,
        rgba(0, 0, 0, 0.58) 55%,
        rgba(0, 0, 0, 0.94) 82%,
        var(--bg-body) 100%),
      linear-gradient(to right,
        rgba(0, 0, 0, 0.99) 0%,
        rgba(0, 0, 0, 0.92) 55%,
        rgba(0, 0, 0, 0.25) 100%);
  }

  [data-theme="navy"] .hero-overlay {
    background:
      linear-gradient(to bottom,
        rgba(32, 31, 49, 0) 0%,
        rgba(32, 31, 49, 0) 25%,
        rgba(32, 31, 49, 0.58) 55%,
        rgba(32, 31, 49, 0.94) 82%,
        var(--bg-body) 100%),
      linear-gradient(to right,
        rgba(32, 31, 49, 0.99) 0%,
        rgba(32, 31, 49, 0.92) 55%,
        rgba(32, 31, 49, 0.25) 100%);
  }

  .hero-top-badge {
    top: 14px;
    left: 14px;
    padding: 4px 10px;
    font-size: 10px;
  }

  .hero-slide-nav {
    top: 14px;
    right: 14px;
  }

  .pill-pagination button {
    width: 24px;
    height: 22px;
    font-size: 9px;
  }

  .pill-pagination .pill-page-number {
    padding: 0 8px;
    font-size: 11px;
    line-height: 22px;
  }

  .hero-tags {
    margin-bottom: 8px;
    gap: 6px;
    flex-wrap: wrap;
  }

  .meta-chip {
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 4px;
  }

  .hero-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 8px;
    -webkit-line-clamp: 2;
  }

  .hero-desc {
    font-size: 11.5px;
    line-height: 1.45;
    margin-bottom: 14px;
    -webkit-line-clamp: 2;
  }

  .hero-actions {
    gap: 10px;
  }

  .btn-details,
  .btn-watch {
    padding: 8px 16px;
    font-size: 11.5px;
    border-radius: 6px;
  }

  /* Genres Section Mobile Refinement */
  .genre-row-container {
    gap: 4px;
    margin-bottom: 20px;
  }

  .genre-nav-btn {
    width: 22px;
    height: 22px;
    font-size: 10px;
  }

  .genre-chips-scroll {
    padding: 2px 4px;
    gap: 6px;
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  }

  .genre-chip {
    padding: 5px 12px;
    font-size: 11.5px;
    border-radius: 6px;
  }

  .anime-grid-6col {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px;
  }

  /* Watch History Horizontal Scrollable Row */
  .history-grid {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .history-grid::-webkit-scrollbar {
    display: none;
  }

  .history-card {
    flex: 0 0 170px;
    min-width: 170px;
    max-width: 170px;
    scroll-snap-align: start;
  }

  .history-dismiss-btn {
    opacity: 0.75;
  }

  .history-time-pill {
    display: none;
  }

  .history-view-more {
    flex: 0 0 130px;
    min-width: 130px;
    min-height: 100px;
    scroll-snap-align: start;
  }

  /* Estimated Schedule on Mobile */
  .schedule-banner-head {
    flex-wrap: wrap;
    gap: 8px;
  }

  .schedule-head-clock {
    font-size: 10px;
    padding: 3px 8px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .schedule-tabs-row {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 8px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .schedule-tabs-row::-webkit-scrollbar {
    display: none;
  }

  .schedule-day-pill {
    flex: 0 0 74px;
    min-width: 74px;
    padding: 8px 4px;
    scroll-snap-align: start;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0;
  }
  .navbar-container,
  .navbar:not(:has(.navbar-container)) {
    padding: 8px 12px;
  }

  .nav-right {
    gap: 6px;
  }

  .brand-logo-img {
    height: 25px;
  }

  .page-container {
    padding: 10px 10px 28px;
  }

  .hero-slider-card {
    height: 310px;
    margin-bottom: 16px;
  }

  .hero-overlay {
    padding: 14px 12px;
  }

  .hero-title {
    font-size: 16px;
    line-height: 1.25;
    margin-bottom: 6px;
  }

  .hero-desc {
    font-size: 11px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    margin-bottom: 12px;
  }

  .btn-details,
  .btn-watch {
    padding: 7px 13px;
    font-size: 11px;
  }

  .anime-grid-6col {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px;
  }

  .anime-card-title {
    font-size: 11px;
    margin-bottom: 3px;
    gap: 4px;
  }

  .status-dot {
    width: 5px;
    height: 5px;
  }

  .anime-card-meta {
    gap: 2px 3px;
    font-size: 8.5px;
  }

  .meta-tag {
    font-size: 8.5px;
    padding: 1.5px 3.5px;
    border-radius: 3px;
    gap: 2px;
  }

  .meta-tag i {
    font-size: 7.5px;
  }

  .history-card {
    flex: 0 0 145px;
    min-width: 145px;
    max-width: 145px;
  }

  .footer-inner {
    padding: 0 8px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 11.5px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 10.5px;
  }
}

/* ==================================================
   GLOBAL ANISHIFT AUTH MODAL (Miruro Dual-Column Style)
   ================================================== */
.profile-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.profile-modal-overlay.open {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 999999 !important;
}

.miruro-auth-modal-box {
  display: flex;
  flex-direction: row;
  max-width: 820px;
  width: 95%;
  max-height: 90vh;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-modal-overlay.open .miruro-auth-modal-box {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-surface);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  border: 1px solid var(--border-color);
  z-index: 10;
  transition: all 0.15s ease;
}

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

.auth-visual-col {
  position: relative;
  width: 42%;
  min-height: 480px;
  background: #0d1117;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  flex-shrink: 0;
}

.auth-bg-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}

.auth-visual-col:hover .auth-bg-art {
  transform: scale(1.03);
}

.auth-visual-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 17, 23, 0.05) 0%, rgba(13, 17, 23, 0.75) 100%);
  pointer-events: none;
}

.auth-content-col {
  flex: 1;
  padding: 28px 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.auth-header {
  margin-bottom: 18px;
}

.auth-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.auth-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.auth-features-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}

.auth-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.auth-feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}

.auth-feature-text {
  flex: 1;
  min-width: 0;
}

.auth-feature-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.auth-feature-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

.auth-actions-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Stacked Sign In & Sign Up Choice Buttons */
.auth-stacked-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.btn-choice-signin {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 10px;
  border: none;
  background: var(--accent-primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}

.btn-choice-signin:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}

.btn-choice-signup {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-choice-signup:hover {
  background: var(--bg-hover);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-1px);
}

/* Dedicated Form Views (No features list shown inside forms) */
.auth-form-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeIn 0.18s ease-out;
}

.auth-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 8px;
  padding: 4px 0;
  transition: color 0.15s ease;
  font-family: inherit;
  width: fit-content;
}

.auth-back-btn:hover {
  color: var(--accent-primary);
}

.auth-form-heading {
  margin-bottom: 6px;
}

.auth-form-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.auth-form-subtitle {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
}

.auth-field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-field-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.auth-field-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-field-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.auth-action-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 8px;
  border: none;
  background: var(--accent-primary);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.auth-action-submit-btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.4);
}

.auth-action-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-field-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.auth-field-header-row .auth-field-label {
  margin-bottom: 0;
}

.auth-forgot-link {
  color: var(--accent-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-decoration: none;
  transition: color 0.15s ease;
}

.auth-forgot-link:hover {
  color: #2563eb;
  text-decoration: underline;
}

.auth-switch-prompt {
  text-align: center;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.auth-switch-link {
  color: var(--accent-primary);
  font-weight: 700;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0 4px;
  font-family: inherit;
  font-size: 12.5px;
  text-decoration: underline;
}

.auth-switch-link:hover {
  color: #2563eb;
}

.auth-error-banner {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  margin-bottom: 12px;
  font-weight: 500;
}

.auth-success-banner {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  margin-bottom: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

.auth-footer-note {
  text-align: center;
  margin-top: 16px;
}

.auth-maybe-later {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12.5px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.15s ease;
  padding: 4px 8px;
}

.auth-maybe-later:hover {
  color: var(--text-main);
  text-decoration: none;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .miruro-auth-modal-box {
    flex-direction: column;
    max-height: 92vh;
    width: 90%;
    max-width: 380px;
    border-radius: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    overflow: hidden;
  }
  .modal-close-btn {
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.45);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  .modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
  }
  .auth-visual-col {
    width: 100%;
    min-height: 145px;
    height: 145px;
    padding: 0;
    position: relative;
    overflow: hidden;
  }
  .auth-bg-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
  }
  .auth-visual-gradient {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
  }
  .auth-content-col {
    padding: 20px 18px 22px 18px;
    overflow-y: auto;
  }
  .auth-header {
    margin-bottom: 14px;
    text-align: left;
  }
  .auth-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.4px;
  }
  .auth-subtitle {
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-muted);
  }
  .auth-features-list {
    gap: 12px;
    margin-bottom: 18px;
  }
  .auth-feature-item {
    gap: 12px;
    align-items: center;
  }
  .auth-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 13.5px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--accent-primary);
    flex-shrink: 0;
  }
  .auth-feature-title {
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 2px;
  }
  .auth-feature-desc {
    font-size: 11px;
    line-height: 1.35;
  }
  .auth-actions-group {
    gap: 8px;
  }
  .auth-provider-btn {
    padding: 11px 16px;
    font-size: 13.5px;
    border-radius: 12px;
  }
  .auth-footer-note {
    margin-top: 12px;
  }
  .auth-maybe-later {
    font-size: 12px;
    color: var(--text-muted);
  }
}

/* ===================================================
   GLOBAL ANISHIFT CONFIRM MODAL (Replaces browser popup)
   =================================================== */
.custom-confirm-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-confirm-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.custom-confirm-box {
  width: 100%;
  max-width: 400px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: scale(0.92) translateY(12px);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-confirm-overlay.active .custom-confirm-box {
  transform: scale(1) translateY(0);
}

.custom-confirm-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.custom-confirm-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.custom-confirm-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.custom-confirm-message {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.custom-confirm-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.btn-confirm-cancel {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-hover);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-confirm-cancel:hover {
  background-color: var(--border-color);
}

.btn-confirm-danger {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  background-color: #ef4444;
  border: 1px solid #ef4444;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
  transition: all 0.15s ease;
}

.btn-confirm-danger:hover {
  background-color: #dc2626;
  border-color: #dc2626;
  transform: translateY(-1px);
}

/* Modal Alert Button Variations */
.btn-confirm-primary {
  padding: 8px 22px;
  border-radius: var(--radius-sm);
  background-color: var(--accent-primary, #1E90FF);
  border: 1px solid var(--accent-primary, #1E90FF);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(30, 144, 255, 0.3);
  transition: all 0.15s ease;
}

.btn-confirm-primary:hover {
  background-color: #1a7fd9;
  border-color: #1a7fd9;
  transform: translateY(-1px);
}

.custom-confirm-icon-wrap.type-warning {
  background-color: rgba(245, 158, 11, 0.14);
  color: #f59e0b;
}

.custom-confirm-icon-wrap.type-info {
  background-color: rgba(30, 144, 255, 0.14);
  color: var(--accent-primary, #1E90FF);
}

.custom-confirm-icon-wrap.type-success {
  background-color: rgba(16, 185, 129, 0.14);
  color: #10b981;
}

.custom-confirm-icon-wrap.type-error {
  background-color: rgba(239, 68, 68, 0.14);
  color: #ef4444;
}

/* ===================================================
   GLOBAL ANISHIFT PAGE POPUP (Broadcast/Updates/Features/Bugs)
   =================================================== */
.anishift-popup-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.anishift-popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.anishift-popup-modal {
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transform: scale(0.92) translateY(14px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.anishift-popup-overlay.active .anishift-popup-modal {
  transform: scale(1) translateY(0);
}

.anishift-popup-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.anishift-popup-close-btn:hover {
  background: rgba(239, 68, 68, 0.85);
  border-color: rgba(239, 68, 68, 1);
  transform: rotate(90deg);
}

.anishift-popup-img-wrap {
  width: 100%;
  height: 160px;
  background: var(--bg-base);
  overflow: hidden;
  position: relative;
}

.anishift-popup-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.anishift-popup-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.anishift-popup-tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.anishift-popup-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(30, 144, 255, 0.12);
  border: 1px solid rgba(30, 144, 255, 0.3);
  color: #1e90ff;
}

.anishift-popup-tag.type-bug {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.anishift-popup-tag.type-feature {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.anishift-popup-tag.type-update {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.3);
  color: #a855f7;
}

.anishift-popup-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.anishift-popup-text {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.anishift-popup-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.anishift-popup-btn-secondary {
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.anishift-popup-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff !important;
  background: #1e90ff;
  border: 1px solid #1e90ff;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(30, 144, 255, 0.35);
  transition: all 0.2s ease;
}

.anishift-popup-btn-primary:hover {
  background: #1c86ee;
  border-color: #1c86ee;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(30, 144, 255, 0.45);
}

/* ==========================================================================
   ANISHIFT GLOBAL OUTAGE BARRIER (ZERO-GLITCH INSTANT CSS)
   ========================================================================== */
#anishift-global-outage-barrier {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: #FFFFFF !important;
  color: #1A202C !important;
  z-index: 2147483647 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  text-align: center !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

html.anishift-outage-active,
html.anishift-outage-active body {
  overflow: hidden !important;
}

html.anishift-outage-active > body > *:not(#anishift-global-outage-barrier) {
  display: none !important;
}