/* ==========================================================================
   🌟 Ostora TV (الأسطورة TV) - Authentic Master Stylesheet (100% Match APK)
   ========================================================================== */

:root {
  --red-primary: #a31515;
  --red-dark: #820e0e;
  --red-light: #c21d1d;
  --red-glow: rgba(163, 21, 21, 0.35);
  
  --bg-page: #f8f9fa;
  --bg-card: #ffffff;
  --text-primary: #a31515;
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  
  --border-red: #b91c1c;
  --border-subtle: #e5e7eb;
  
  --font-ar: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;
}

/* Dark Mode Variables */
body.dark-mode {
  --bg-page: #121212;
  --bg-card: #1e1e1e;
  --text-primary: #ffffff;
  --text-dark: #ffffff;
  --text-muted: #9ca3af;
  --border-red: #282828;
  --border-subtle: #282828;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  scrollbar-width: thin;
  scrollbar-color: var(--red-primary) var(--bg-page);
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-page);
}
::-webkit-scrollbar-thumb {
  background: var(--red-primary);
  border-radius: 999px;
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-page);
  color: var(--text-dark);
  font-family: var(--font-ar);
  direction: rtl;
  overflow-x: hidden;
  line-height: 1.4;
  font-size: 15px;
  transition: background-color 0.25s, color 0.25s;
}

/* ==========================================================================
   1. TOP APPBAR (Screenshots 1, 2, 3, 4)
   ========================================================================== */
.ostora-top-appbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: linear-gradient(180deg, #b91c1c 0%, #990000 100%);
  padding: 0 12px;
  z-index: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
}

.appbar-normal-mode {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
}

.appbar-search-mode {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
  gap: 12px;
}

.appbar-search-left {
  display: flex;
  align-items: center;
  gap: 4px;
}

.appbar-search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
}

.appbar-inline-input {
  width: 100%;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  font-family: inherit;
  outline: none;
  direction: rtl;
  text-align: right;
  padding: 4px 6px;
}

.appbar-inline-input::placeholder {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
  direction: ltr;
  text-align: left;
}

.appbar-search-right {
  display: flex;
  align-items: center;
}

.appbar-actions-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.appbar-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
}

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

.appbar-btn:active {
  transform: scale(0.92);
}
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s;
}

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

.appbar-center-title {
  flex: 1;
  text-align: center;
  cursor: pointer;
}

#appbarTitleText {
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   2. MAIN WRAPPER & VIEWS
   ========================================================================== */
.ostora-main-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 14px 12px 60px 12px;
  min-height: calc(100vh - 56px);
}

.ostora-view-pane {
  display: none;
}

.ostora-view-pane.active {
  display: block;
}

/* ==========================================================================
   3. CATEGORIES & SUBCATEGORIES LIST (Screenshots 1 & 2)
   ========================================================================== */
.ostora-categories-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Category Pill Card (Screenshots 1 & 2) */
.ostora-category-card {
  background-color: var(--bg-card);
  border: 2px solid var(--border-red);
  border-radius: var(--radius-md);
  min-height: 56px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(185, 28, 28, 0.1);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.ostora-category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.25);
}

.ostora-category-title {
  font-size: 1.18rem;
  font-weight: 900;
  color: var(--text-primary);
  text-align: center;
  flex: 1;
  padding: 0 10px;
}

.ostora-category-img-badge {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  background-color: transparent;
  display: block;
}

.ostora-category-badge {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #b91c1c 0%, #800000 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 900;
  text-align: center;
  line-height: 1.1;
  flex-shrink: 0;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  padding: 2px;
  overflow: hidden;
  user-select: none;
}

.ostora-category-badge.ostora-red-circle-badge {
  background: radial-gradient(circle at 35% 35%, #b91c1c 0%, #800000 100%);
  border: 2px solid #ffffff;
}

.ostora-category-badge.ostora-year-badge {
  font-size: 1.25rem;
  font-weight: 900;
  font-family: Arial, "Segoe UI", sans-serif;
  color: #ffffff;
  background: radial-gradient(circle at 35% 35%, #b91c1c 0%, #800000 100%);
  border: 2px solid #ffffff;
  letter-spacing: -0.5px;
}

.ostora-category-badge.text-2lines-badge {
  font-size: 0.64rem;
  line-height: 1.05;
}

.ostora-category-badge.ramadan-badge {
  font-size: 0.65rem;
  line-height: 1.05;
  background: radial-gradient(circle, #b91c1c 0%, #8b0000 100%);
}

.ostora-category-badge.flag-turkey-badge {
  background-color: #e30a17;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.ostora-category-badge.flag-korea-badge {
  background-color: #ffffff;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.ostora-category-badge.flag-badge {
  font-size: 1.5rem;
  background-color: transparent;
}ansparent;
  box-shadow: none;
}

.ostora-category-badge.star-badge {
  font-size: 1.2rem;
  border: 2px solid #ffffff;
}

.ostora-category-badge.num-badge {
  font-size: 1.35rem;
  font-weight: 900;
  border: 2px solid #ffffff;
  letter-spacing: -0.5px;
  font-family: var(--font-ar);
}

.ostora-category-badge.text-ar-badge {
  font-size: 1.4rem;
  font-weight: 900;
  border: 2px solid #ffffff;
  font-family: var(--font-ar);
}

/* ==========================================================================
   4. MOVIES & SERIES 3-COL GRID (Screenshot Match)
   ========================================================================== */
.ostora-posters-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 8px 0 24px 0;
}

@media (min-width: 768px) {
  .ostora-posters-grid-3col {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

.ostora-poster-item {
  background-color: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 6px 8px 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-subtle);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body.dark-mode .ostora-poster-item {
  background-color: #1e1e1e;
  border: 1px solid #282828;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.ostora-poster-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.ostora-poster-img-box {
  width: 100%;
  aspect-ratio: 2 / 3;
  background-color: #141414;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ostora-poster-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ostora-poster-title {
  color: var(--text-dark);
  font-size: 0.92rem;
  font-weight: 800;
  text-align: center;
  padding: 8px 4px 2px 4px;
  line-height: 1.25;
  width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: rtl;
  min-height: 2.5em;
  align-content: center;
}

body.dark-mode .ostora-poster-title {
  color: #ffffff;
}

/* ==========================================================================
   5. SERIES EPISODES 3-COL GRID (Screenshot 2 Match)
   ========================================================================== */
.ostora-episodes-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 8px 0;
}

@media (min-width: 768px) {
  .ostora-episodes-grid-3col {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

.ostora-episode-card {
  background-color: var(--bg-card);
  border: 2.2px solid var(--border-red);
  border-radius: var(--radius-lg);
  padding: 8px 8px 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(185, 28, 28, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ostora-episode-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(185, 28, 28, 0.25);
}

.ostora-episode-thumbnail {
  width: 100%;
  aspect-ratio: 1 / 1.35;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  background-color: #e5e7eb;
}

.ostora-episode-name {
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 900;
  text-align: center;
  padding-top: 8px;
  line-height: 1.2;
}

/* ==========================================================================
   6. MATCHES SCHEDULE
   ========================================================================== */
.ostora-matches-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ostora-match-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.match-league-badge {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.match-teams-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-bottom: 12px;
}

.team-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100px;
  text-align: center;
}

.team-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.team-name-text {
  font-size: 0.88rem;
  font-weight: 800;
}

.match-center-score {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.match-score-text {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--red-primary);
}

.match-time-badge {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(163, 21, 21, 0.1);
  color: var(--red-primary);
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 4px;
}

.match-channels-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   6.8 EMPTY CONTENT / NO EPISODES STATE (Exact APK Screenshot Match)
   ========================================================================== */
.ostora-empty-state-view {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0 auto;
  gap: 20px;
  padding: 40px 20px;
}

.ostora-empty-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseWarning 2.5s infinite ease-in-out;
}

@keyframes pulseWarning {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.85; }
}

.ostora-empty-msg {
  color: #e50914;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.ostora-retry-btn {
  background: #7a0c0c;
  color: #ffffff;
  font-family: var(--font-ar);
  font-size: 1.15rem;
  font-weight: 800;
  padding: 12px 38px;
  border-radius: 12px;
  border: 1px solid rgba(229, 9, 20, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.ostora-retry-btn:hover {
  background: #990000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.4);
}

.ostora-retry-btn:active {
  transform: translateY(0);
}

/* ==========================================================================
   7. NAVIGATION DRAWER (FIXED OVERLAY)
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.ostora-side-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 290px;
  background-color: var(--bg-card);
  z-index: 2500;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
}

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

.drawer-header-brand {
  padding: 24px 20px;
  background: linear-gradient(180deg, #b91c1c 0%, #990000 100%);
  color: #ffffff;
  text-align: center;
}

.drawer-brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 8px;
}

.drawer-brand-title {
  font-size: 1.3rem;
  font-weight: 900;
}

.drawer-brand-version {
  font-size: 0.75rem;
  opacity: 0.85;
}

.drawer-menu-list {
  list-style: none;
  padding: 12px 0;
}

.drawer-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.drawer-menu-item:hover, .drawer-menu-item.active {
  background-color: rgba(163, 21, 21, 0.08);
  color: var(--red-primary);
}

.drawer-menu-item i {
  font-size: 1.15rem;
  width: 24px;
  text-align: center;
  color: var(--red-primary);
}

.drawer-divider-line {
  height: 1px;
  background-color: var(--border-subtle);
  margin: 10px 20px;
}

/* ==========================================================================
   8. FULLSCREEN VIDEO PLAYER (Screenshot 1 Match)
   ========================================================================== */
.ostora-player-overlay {
  position: fixed;
  inset: 0;
  background-color: #000000;
  z-index: 9999;
  display: none;
  flex-direction: column;
  justify-content: space-between;
}

.ostora-player-overlay.active {
  display: flex;
}

.ostora-player-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #000000;
}

.player-top-header {
  height: 56px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, transparent 100%);
  z-index: 20;
}

.player-close-circle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #242428;
  color: #ffffff;
  border: none;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s;
}

.player-close-circle-btn:hover {
  background-color: var(--red-primary);
}

.player-titles-group {
  text-align: left;
  direction: rtl;
}

.player-main-heading {
  font-size: 1.05rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
}

.player-sub-heading {
  font-size: 0.8rem;
  color: #9ca3af;
  font-weight: 700;
}

.player-video-viewport {
  flex: 1;
  width: 100%;
  position: relative;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}

.ostora-video-element {
  width: 100%;
  height: 100%;
  max-height: 82vh;
  object-fit: contain;
}

.player-loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
  z-index: 10;
}

.player-spinner-ring {
  width: 44px;
  height: 44px;
  border: 3.5px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--red-primary);
  border-radius: 50%;
  animation: spinRing 0.75s linear infinite;
}

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

.player-loading-pill {
  background-color: rgba(18, 18, 22, 0.85);
  border: 1.5px solid var(--border-red);
  color: #ffffff;
  padding: 8px 26px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(185, 28, 28, 0.35);
}

.player-episodes-strip-wrap {
  background-color: #0d0d11;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 14px;
  z-index: 20;
}

.player-episodes-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.player-episodes-strip::-webkit-scrollbar {
  display: none;
}

.player-ep-strip-btn {
  background-color: #1f1f26;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-family: var(--font-ar);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s;
  flex-shrink: 0;
}

.player-ep-strip-btn.active {
  background-color: #b91c1c;
  color: #ffffff;
}

.player-servers-strip {
  background-color: #0d0d11;
  padding: 6px 14px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

/* Modals Common */
.ostora-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 6000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  display: none;
}

.ostora-modal-overlay.active {
  display: flex;
}

.ostora-modal-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 18px;
  border: 1px solid var(--border-subtle);
}

.ostora-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.search-input-box input {
  width: 100%;
  height: 44px;
  border: 2px solid var(--border-red);
  border-radius: var(--radius-md);
  padding: 0 14px;
  font-family: var(--font-ar);
  font-size: 0.95rem;
  outline: none;
  background: var(--bg-page);
  color: var(--text-dark);
}

.ostora-search-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

/* Toast */
.ostora-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  background-color: #18181b;
  border: 1px solid var(--border-red);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 800;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s, opacity 0.3s;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

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

/* ==========================================================================
   🌟 3-COLUMN LIVE CHANNELS GRID (Screenshot Match: ARABIC CHANNELS)
   ========================================================================== */
.ostora-channels-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 8px 0;
}

@media (min-width: 768px) {
  .ostora-channels-grid-3col {
    gap: 12px;
  }
}

.ostora-channel-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  min-height: 140px;
  padding: 18px 8px 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.ostora-channel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.ostora-channel-icon-wrap {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 2.3rem;
}

.ostora-channel-name {
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.25;
  word-break: break-word;
}

/* ==========================================================================
   🌟 AUTHENTIC DARK MODE STYLES (100% Match APK Screenshots)
   ========================================================================== */
body.dark-mode {
  background-color: #121212;
  color: #ffffff;
}

body.dark-mode .ostora-top-appbar {
  background: #800000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

body.dark-mode .ostora-category-card {
  background-color: #1e1e1e;
  border: 2px solid #282828;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

body.dark-mode .ostora-category-card:hover {
  background-color: #252525;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

body.dark-mode .ostora-category-title {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.18rem;
}

body.dark-mode .ostora-category-badge {
  background-color: #b91c1c;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

body.dark-mode .ostora-category-badge.flag-badge {
  background-color: transparent;
  box-shadow: none;
}

body.dark-mode .ostora-category-badge.num-badge {
  border-color: #ffffff;
}

body.dark-mode .ostora-poster-item {
  background-color: #1e1e1e;
  border: 1px solid #282828;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

body.dark-mode .ostora-poster-item:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

body.dark-mode .ostora-poster-thumbnail {
  background-color: #181818;
}

body.dark-mode .ostora-poster-title {
  background-color: #1e1e1e;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
}

body.dark-mode .ostora-episode-card {
  background-color: #1e1e1e;
  border: 1px solid #2c2c2c;
  border-radius: 12px;
  padding: 10px 8px 8px 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

body.dark-mode .ostora-episode-card:hover {
  background-color: #252525;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

body.dark-mode .ostora-episode-thumbnail {
  border-radius: 6px;
  background-color: #181818;
}

body.dark-mode .ostora-episode-name {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
  padding-top: 8px;
}

body.dark-mode .ostora-channel-card {
  background-color: #1e1e1e;
  border: 1px solid #282828;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

body.dark-mode .ostora-channel-card:hover {
  background-color: #252525;
}

body.dark-mode .ostora-channel-icon-wrap {
  color: #e5e7eb;
}

body.dark-mode .ostora-channel-name {
  color: #ffffff;
}

body.dark-mode .ostora-drawer {
  background-color: #181818;
  color: #ffffff;
}

body.dark-mode .ostora-drawer-header {
  background: #800000;
}

body.dark-mode .ostora-drawer-item {
  color: #e5e7eb;
  border-bottom: 1px solid #262626;
}

body.dark-mode .ostora-drawer-item:hover {
  background-color: #242424;
}

body.dark-mode .ostora-search-card {
  background-color: #1e1e1e;
  border-color: #2c2c2c;
}

/* ==========================================================================
   MATCHES SCHEDULE - AUTHENTIC APK DESIGN (Screenshot 2 Match)
   ========================================================================== */
.ostora-match-apk-card {
  background-color: var(--bg-card);
  border: 2px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, background-color 0.15s ease;
  min-height: 64px;
}

.ostora-match-apk-card:hover {
  transform: translateY(-2px);
}

body.dark-mode .ostora-match-apk-card {
  background-color: #1e1e1e;
  border: 2px solid #282828;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.match-apk-team {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.match-home-team {
  justify-content: flex-start;
  text-align: right;
}

.match-away-team {
  justify-content: flex-end;
  text-align: left;
}

.match-apk-team-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
}

.match-apk-team-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.dark-mode .match-apk-team-name {
  color: #ffffff;
}

.match-apk-score {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-primary);
  padding: 0 12px;
  flex-shrink: 0;
}

body.dark-mode .match-apk-score {
  color: #ffffff;
}

.match-apk-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 80px;
  flex-shrink: 0;
}

.match-apk-status-pill {
  font-size: 0.72rem;
  font-weight: 900;
  padding: 3px 12px;
  border-radius: 6px;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.match-apk-status-pill.status-upcoming {
  background-color: #15803d; /* Green matching APK */
}

.match-apk-status-pill.status-live {
  background-color: #dc2626; /* Red live */
  animation: pulse 1.5s infinite;
}

.match-apk-status-pill.status-ended {
  background-color: #4b5563; /* Grey ended */
}

.match-apk-time {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-muted);
}

body.dark-mode .match-apk-time {
  color: #d1d5db;
}

/* ==========================================================================
   AUTHENTIC DRAWER (Screenshot 4 Match)
   ========================================================================== */
.ostora-side-drawer {
  background-color: #1e1e1e !important;
  color: #ffffff !important;
}

.drawer-header-brand {
  background: transparent !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 16px 16px;
  border-bottom: none !important;
}

.drawer-brand-logo {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  margin-bottom: 8px;
}

.drawer-brand-title {
  color: #ffffff !important;
  font-size: 1.25rem;
  font-weight: 900;
}

.drawer-section-heading {
  color: #9ca3af;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 10px 18px 4px 18px;
}

.drawer-section-divider {
  height: 1px;
  background-color: #2c2c2e;
  margin: 8px 14px;
}

.drawer-menu-item {
  color: #f3f4f6 !important;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 12px 18px;
  border-radius: 8px;
  margin: 2px 8px;
  transition: background-color 0.15s ease;
  display: flex;
  align-items: center;
  gap: 14px;
}

.drawer-menu-item:hover {
  background-color: #2a2a2d !important;
}

.drawer-menu-item.active {
  background-color: #2a2a2d !important;
  color: #ffffff !important;
}

body.dark-mode #drawerNightModeItem {
  background-color: rgba(185, 28, 28, 0.25);
  color: #ef4444 !important;
}

.drawer-icon-red {
  color: #ef4444;
  font-size: 1.25rem;
}

.drawer-icon-calendar {
  color: #f97316;
  font-size: 1.25rem;
}

.drawer-icon-orange {
  color: #f59e0b;
  font-size: 1.25rem;
}

.drawer-icon-white {
  color: #ffffff;
  font-size: 1.2rem;
}

body.dark-mode .ostora-search-input {
  background-color: #181818;
  color: #ffffff;
  border-color: #333333;
}

body.dark-mode .ostora-match-card {
  background-color: #1e1e1e;
  border-color: #282828;
}

/* ==========================================================================
   MATCH DETAILS MODAL (100% APK Match)
   ========================================================================== */
.ostora-match-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ostora-match-modal.active {
  display: flex;
}

.match-modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.match-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  background-color: #1e1e1e;
  border-radius: 16px;
  padding: 24px 20px 20px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  border: 1px solid #2a2a2a;
  z-index: 10;
  animation: modalPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.match-modal-close-btn {
  position: absolute;
  top: 14px;
  left: 14px;
  background: transparent;
  border: none;
  color: #ef4444;
  font-size: 1.4rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.match-modal-close-btn:hover {
  transform: scale(1.15);
}

.match-modal-rows {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
}

.match-modal-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 4px;
  border-bottom: 1px solid #333333;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  text-align: right;
  direction: rtl;
}

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

.match-modal-label-val {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: flex-start;
}

.match-modal-label {
  color: #ffffff;
  font-weight: 800;
}

.match-modal-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
}

/* ==========================================================================
   FULL SCREEN VIEW LOADER (APK Spinner Match)
   ========================================================================== */
.ostora-view-loader {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-page);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
}

body.dark-mode .ostora-view-loader {
  background-color: #121212;
}

.ostora-view-loader.active {
  display: flex;
}

.ostora-spinner-circle {
  width: 50px;
  height: 50px;
  border: 4.5px solid rgba(255, 255, 255, 0.15);
  border-top-color: #ffffff;
  border-right-color: #ffffff;
  border-radius: 50%;
  animation: ostoraSpinnerRotate 0.75s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

body.light-mode .ostora-spinner-circle {
  border: 4.5px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--ostora-red);
  border-right-color: var(--ostora-red);
}

@keyframes ostoraSpinnerRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ==========================================================================
   AUTHENTIC SEARCH DIALOG (100% Screenshot 1 Match)
   ========================================================================== */
.ostora-search-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ostora-search-modal-overlay.active {
  display: flex;
}

.ostora-search-dialog {
  background: #1e1e1e;
  border: 1px solid #333333;
  border-radius: 14px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: ostoraModalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ostoraModalPop {
  from { opacity: 0; transform: scale(0.95) translateY(-8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.ostora-search-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  direction: ltr; /* Close on Left, Title on Right */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ostora-search-close-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.ostora-search-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}

.ostora-search-dialog-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  direction: rtl;
}

.ostora-search-dialog-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 70vh;
  overflow-y: auto;
}

.ostora-search-input-field {
  width: 100%;
  background: #111111;
  border: 1.5px solid #2e2e2e;
  border-radius: 10px;
  padding: 12px 16px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  direction: rtl;
  text-align: right;
  outline: none;
  transition: border-color 0.2s;
}

.ostora-search-input-field:focus {
  border-color: var(--ostora-red);
  box-shadow: 0 0 0 2px rgba(179, 18, 23, 0.3);
}

.ostora-search-results-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
}

.ostora-search-result-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #252525;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  direction: rtl;
}

.ostora-search-result-row:hover {
  background: #323232;
  transform: translateX(-3px);
}

.ostora-search-result-row img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  flex-shrink: 0;
}

.ostora-search-result-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  text-align: right;
}

.ostora-search-result-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
}

.ostora-search-result-type {
  font-size: 0.75rem;
  color: #888;
}

body.dark-mode .team-name-text {
  color: #ffffff;
}

/* ==========================================================================
   0. AUTHENTIC OSTORA INITIAL SPLASH SCREEN (100% APK Screenshot Match)
   ========================================================================== */
.ostora-splash-screen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: #000000 !important;
  z-index: 99999999 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  user-select: none;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.ostora-splash-screen.fade-out {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.ostora-splash-logo-wrap {
  position: absolute !important;
  top: 37.8% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
}

.ostora-splash-logo {
  width: 152px !important;
  height: 152px !important;
  max-width: 32vw !important;
  max-height: 32vw !important;
  border-radius: 50% !important;
  object-fit: contain !important;
  display: block !important;
  user-select: none !important;
}

.ostora-splash-spinner-wrap {
  position: absolute !important;
  top: 65.9% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
}

.ostora-splash-spinner {
  position: relative !important;
  width: 46px !important;
  height: 46px !important;
}

.ostora-splash-spinner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.22);
  box-sizing: border-box;
}

.ostora-splash-spinner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(255, 255, 255, 0.08) 25%, rgba(255, 255, 255, 0.85) 85%, #ffffff 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
  animation: ostoraSplashRotate 0.85s linear infinite;
  box-sizing: border-box;
}

@keyframes ostoraSplashRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ==========================================================================
   5.6 ACTION DIALOG (WATCH / DOWNLOAD - 100% Screenshot Match)
   ========================================================================== */
.ostora-action-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
  animation: actionModalFadeIn 0.18s ease-out;
}

.ostora-action-modal-overlay.active {
  display: flex;
}

@keyframes actionModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ostora-action-dialog {
  background: #212121;
  border: none;
  border-radius: 6px;
  max-width: 370px;
  width: 90vw;
  padding: 14px 18px 24px 18px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;
  animation: actionDialogPop 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}

@keyframes actionDialogPop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Red Close Button strictly top-left (Matches Screenshot) */
.ostora-action-close-btn {
  position: absolute;
  top: 14px;
  left: 16px;
  background: transparent;
  border: none;
  color: #d32f2f;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, color 0.15s ease;
  z-index: 2;
}

.ostora-action-close-btn:hover {
  color: #ff5252;
  transform: scale(1.15);
}

.ostora-action-buttons-wrap {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

/* Exact Material Pill Buttons with 1.5px Red Outline */
.ostora-action-btn {
  position: relative;
  width: 100%;
  height: 54px;
  border-radius: 999px;
  background: transparent;
  border: 1.5px solid #b71c1c;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  box-sizing: border-box;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.ostora-action-btn:hover {
  background: rgba(183, 28, 28, 0.15);
  border-color: #d32f2f;
}

.ostora-action-btn:active {
  transform: scale(0.98);
  background: rgba(183, 28, 28, 0.25);
}

.ostora-action-btn .ostora-btn-label {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.ostora-action-btn i {
  position: absolute;
  right: 24px;
  font-size: 1.35rem;
  color: #ffffff;
}

/* ==========================================================================
   5.7 IN-PAGE DOWNLOAD SERVERS MODAL (Zero Console Error / In-Page Native)
   ========================================================================== */
.ostora-download-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  padding: 16px;
  animation: actionModalFadeIn 0.18s ease-out;
  backdrop-filter: blur(4px);
}

.ostora-download-modal-overlay.active {
  display: flex;
}

.ostora-download-dialog {
  background: #1e1e1e;
  border: 1px solid rgba(211, 47, 47, 0.3);
  border-radius: 12px;
  max-width: 440px;
  width: 92vw;
  padding: 20px 20px 24px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;
  animation: actionDialogPop 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.2);
  color: #fff;
  direction: rtl;
}

.ostora-dl-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 20px;
}

.ostora-dl-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d32f2f, #8b0000);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(211, 47, 47, 0.4);
  margin-bottom: 12px;
}

.ostora-dl-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.ostora-dl-subheading {
  font-size: 0.95rem;
  font-weight: 500;
  color: #d1d5db;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 90%;
}

.ostora-dl-loader-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 30px 10px;
}

.ostora-dl-loader-text {
  font-size: 0.95rem;
  color: #e0e0e0;
  font-weight: 600;
}

.ostora-dl-servers {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-height: 50vh;
  overflow-y: auto;
  padding-right: 2px;
}

.ostora-dl-server-card {
  background: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, transform 0.15s;
}

.ostora-dl-server-card:hover {
  border-color: rgba(211, 47, 47, 0.6);
  transform: translateY(-2px);
}

.ostora-dl-server-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ostora-dl-server-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ostora-dl-server-name i {
  color: #d32f2f;
}

.ostora-dl-server-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(211, 47, 47, 0.2);
  color: #ff5252;
  border: 1px solid rgba(211, 47, 47, 0.4);
}

.ostora-dl-server-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ostora-dl-btn-download {
  width: 100%;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.ostora-dl-btn-download:hover {
  background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
  transform: scale(1.02);
}

.ostora-dl-error-wrap {
  text-align: center;
  padding: 24px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.ostora-dl-error-text {
  color: #ff5252;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
}

