/**
 * Universal Video Downloader - Custom Stylesheet
 * Strict adherence to Anti-Slop (restraint, purposeful hierarchy) & UI/UX Pro Max
 */

:root {
  --bg-main: #0F172A;
  --bg-card: #1E293B;
  --bg-card-hover: #24344D;
  --bg-input: #152033;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #E11D48;
  
  --primary: #E11D48;
  --primary-hover: #BE123C;
  --primary-active: #9F1239;
  
  --accent-emerald: #10B981;
  --accent-blue: #2563EB;
  
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --font-ar: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-en: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-card: 14px;
  --radius-btn: 8px;
  --radius-pill: 9999px;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-en);
  min-height: 100vh;
  line-height: 1.6;
  direction: ltr;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.rtl {
  direction: rtl;
  font-family: var(--font-ar);
}

/* Container */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Focus Indicator (WCAG 2.2 Compliant) */
:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 3px;
}

/* Header */
.site-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-color);
  background: rgba(15, 23, 42, 0.95);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: var(--radius-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.brand-titles h1 {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
}

.brand-titles span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-btn);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-lang:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero-section {
  padding: 3.5rem 0 2rem;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: rgba(225, 29, 72, 0.1);
  border: 1px solid rgba(225, 29, 72, 0.3);
  border-radius: var(--radius-pill);
  color: #FB7185;
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: #FFFFFF;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 2rem;
}

/* Supported Platform Pills */
.platform-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.badge-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.badge-item svg {
  width: 15px;
  height: 15px;
}

.badge-item.active,
.badge-item:hover {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* Downloader Search Box */
.downloader-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  transition: var(--transition-fast);
}

.downloader-box:focus-within {
  border-color: rgba(225, 29, 72, 0.5);
}

.input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-btn);
  padding: 0.4rem 0.6rem;
}

.input-icon-platform {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--text-dim);
}

.media-url-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1rem;
  font-family: inherit;
  padding: 0.5rem 0.25rem;
  outline: none;
  min-height: 44px;
}

.media-url-input::placeholder {
  color: var(--text-dim);
}

.input-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-paste {
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-btn);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
}

.btn-paste:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.btn-download-main {
  min-height: 44px;
  padding: 0.6rem 1.6rem;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-btn);
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-download-main:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-download-main:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Spinner */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

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

/* Skeleton Loader */
.skeleton-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
}

.skeleton-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-btn);
  background: linear-gradient(90deg, #1E293B 25%, #2A3B56 50%, #1E293B 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-details {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.skeleton-line {
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(90deg, #1E293B 25%, #2A3B56 50%, #1E293B 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

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

/* Result Video Card */
.video-result-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  animation: fadeIn 0.3s ease-out;
}

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

.video-overview {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.thumb-holder {
  position: relative;
  border-radius: var(--radius-btn);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16/9;
}

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

.duration-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.8);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: #FFFFFF;
}

body.rtl .duration-badge {
  right: auto;
  left: 6px;
}

.video-info-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.platform-pill-badge {
  align-self: flex-start;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.video-main-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-uploader-name {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Tabs */
.formats-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.format-tab-btn {
  padding: 0.45rem 1rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-btn);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.format-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.format-tab-btn.active {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
}

/* Quality Stream Rows */
.formats-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.format-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-btn);
  transition: var(--transition-fast);
}

.format-row:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

.format-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.format-tag {
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.format-tag.rec {
  background: rgba(225, 29, 72, 0.2);
  color: #FB7185;
  border: 1px solid rgba(225, 29, 72, 0.3);
}

.format-label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-main);
}

.format-ext {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.btn-stream-dl {
  min-height: 38px;
  padding: 0.4rem 1.1rem;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-btn);
  color: #FFFFFF;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: var(--transition-fast);
}

.btn-stream-dl:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* Instructions & Features Section */
.instructions-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
}

.section-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 2.5rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 1.5rem;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(225, 29, 72, 0.15);
  color: #FB7185;
  border: 1px solid rgba(225, 29, 72, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-mono);
  margin-bottom: 1rem;
}

.step-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* FAQ Accordion */
.faq-section {
  padding: 2rem 0 4rem;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-btn);
  overflow: hidden;
}

.faq-btn {
  width: 100%;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
}

body.rtl .faq-btn {
  text-align: right;
}

.faq-arrow {
  color: var(--text-dim);
  transition: transform 0.2s ease;
}

.faq-box.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-text {
  padding: 0 1.25rem 1.15rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: none;
}

.faq-box.open .faq-text {
  display: block;
}

/* Toast System */
.toast-shelf {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

body.rtl .toast-shelf {
  right: auto;
  left: 24px;
}

.toast-msg {
  min-width: 280px;
  max-width: 400px;
  padding: 0.85rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-btn);
  color: var(--text-main);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.25s ease-out;
}

.toast-msg.error {
  border-color: rgba(239, 68, 68, 0.4);
  background: #1C1217;
  color: #FCA5A5;
}

.toast-msg.success {
  border-color: rgba(16, 185, 129, 0.4);
  background: #0E1B18;
  color: #A7F3D0;
}

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

/* Mode Switcher (Single Video vs Full Playlist) */
.mode-switcher-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.mode-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 4px;
}

.mode-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.mode-tab-btn:hover {
  color: var(--text-main);
}

.mode-tab-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.35);
}

/* Playlist Hint Banner (inside Single Video result) */
.playlist-notice-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-btn);
  padding: 0.85rem 1.15rem;
  margin-bottom: 1.5rem;
}

.playlist-notice-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #38BDF8;
  font-size: 0.875rem;
  font-weight: 600;
}

.btn-load-playlist {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-btn);
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #E0F2FE;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-load-playlist:hover {
  background: rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}

/* Playlist Result Details Card */
.playlist-result-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  animation: fadeIn 0.3s ease-out;
  text-align: left;
}

body.rtl .playlist-result-card {
  text-align: right;
}

.playlist-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
}

.playlist-badge-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.playlist-count-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.playlist-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 0.25rem;
}

.playlist-uploader {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.btn-copy-all {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-btn);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-copy-all:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.playlist-items-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.playlist-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}

body.rtl .playlist-items-list {
  padding-right: 0;
  padding-left: 4px;
}

.playlist-item-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0.85rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-btn);
  transition: var(--transition-fast);
}

.playlist-item-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
}

.playlist-item-index {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-dim);
  min-width: 28px;
  text-align: center;
}

.playlist-item-thumb {
  position: relative;
  width: 90px;
  aspect-ratio: 16/9;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}

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

.playlist-item-thumb .dur-badge {
  position: absolute;
  bottom: 3px;
  right: 3px;
  background: rgba(0, 0, 0, 0.8);
  font-size: 0.65rem;
  font-family: var(--font-mono);
  padding: 1px 4px;
  border-radius: 3px;
  color: #FFFFFF;
}

body.rtl .playlist-item-thumb .dur-badge {
  right: auto;
  left: 3px;
}

.playlist-item-details {
  flex: 1;
  min-width: 0;
}

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

.btn-item-download {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-btn);
  background: var(--primary);
  border: none;
  color: #FFFFFF;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-item-download:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* Rich Footer (Anti-Slop & Developer Spotlight) */
.site-footer {
  background: #090D16;
  border-top: 1px solid var(--border-color);
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.6fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.footer-brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.footer-brand-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  color: #34D399;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
}

.footer-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 1.15rem;
  letter-spacing: -0.01em;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition-fast);
  display: inline-block;
}

.footer-links-list a:hover {
  color: #FFFFFF;
  transform: translateX(4px);
}

body.rtl .footer-links-list a:hover {
  transform: translateX(-4px);
}

/* Developer Spotlight Card */
.dev-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-btn);
  padding: 1rem 1.15rem;
  margin-bottom: 0.85rem;
  transition: var(--transition-fast);
}

.dev-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.dev-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #881337);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 10px rgba(225, 29, 72, 0.25);
}

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

.dev-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.dev-role {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 5px;
}

.dev-site-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #38BDF8;
  font-weight: 700;
  font-size: 0.8125rem;
  text-decoration: none;
  transition: var(--transition-fast);
}

.dev-site-link:hover {
  color: #7DD3FC;
  text-decoration: underline;
}

.dev-tagline {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-dim);
}

/* Footer Bottom Bar */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.75rem;
  font-size: 0.8125rem;
}

.footer-author-link {
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: underline;
  transition: var(--transition-fast);
}

.footer-author-link:hover {
  color: #38BDF8;
}

.footer-bottom-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-sub-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8125rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition-fast);
}

.footer-sub-link:hover {
  color: #FFFFFF;
}

.footer-sep {
  color: var(--border-color);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.85rem;
  }

  .input-wrapper {
    flex-direction: column;
    padding: 0.6rem;
  }

  .input-actions {
    width: 100%;
  }

  .btn-download-main {
    flex: 1;
    justify-content: center;
  }

  .video-overview,
  .skeleton-box {
    grid-template-columns: 1fr;
  }

  .playlist-header {
    flex-direction: column;
    align-items: stretch;
  }

  .playlist-notice-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .btn-load-playlist {
    justify-content: center;
  }

  .playlist-item-row {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .playlist-item-details {
    width: 100%;
  }

  .btn-item-download {
    width: 100%;
    justify-content: center;
  }

  .format-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .btn-stream-dl {
    width: 100%;
    justify-content: center;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-bottom-actions {
    justify-content: center;
  }
}
