:root {
  --yt: #ff0000;
  --ytd: #cc0000;
  --ytdd: #990000;
  --g1: #f1f5f9;
  --g2: #e2e8f0;
  --g3: #cbd5e1;
  --g4: #94a3b8;
  --g5: #64748b;
  --dk: #1e293b;
  --lt: #f8fafc;
  --tr: all 0.3s ease;
  --r1: 8px;
  --r2: 12px;
  --r3: 16px;
  --r4: 20px;
  --sh1: 0 2px 8px rgba(0, 0, 0, 0.06);
  --sh2: 0 4px 16px rgba(0, 0, 0, 0.08);
  --sh3: 0 8px 30px rgba(0, 0, 0, 0.1);
}

body {
  margin: 0;
  padding: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.7;
}

.hero {
  background: linear-gradient(135deg, #ff0000 0%, #cc0000 50%, #990000 100%);
  color: #fff;
  padding: 140px 0 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--bg-body);
  clip-path: ellipse(60% 100% at 50% 100%);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin: 0 0 12px;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

.hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.tool-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 2.5rem;
  margin-top: -80px;
  position: relative;
  z-index: 10;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  transition: var(--tr);
}

.tool-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #ff0000, #cc0000);
  border-radius: 20px 20px 0 0;
}

.url-wrap {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.url-wrap input {
  flex: 1;
  min-width: 250px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: var(--bg-body);
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--tr);
  font-family: inherit;
}

.url-wrap input:focus {
  outline: none;
  border-color: var(--yt);
  box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--tr);
  font-family: inherit;
  text-decoration: none;
}

.btn-yt {
  background: var(--yt);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 0, 0, 0.3);
}

.btn-yt:hover {
  background: var(--ytd);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(255, 0, 0, 0.4);
}

.btn-yt:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--yt);
  color: var(--yt);
  transform: translateY(-2px);
}

.btn-success {
  background: #1a8a1a;
  color: #fff;
  box-shadow: 0 8px 20px rgba(26, 138, 26, 0.3);
}

.btn-success:hover {
  background: #146614;
  transform: translateY(-3px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
  min-height: 36px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 24px 0;
  display: none;
}

.stat-card {
  background: linear-gradient(135deg, #ff0000, #cc0000);
  color: #fff;
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(255, 0, 0, 0.2);
}

.stat-icon {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-top: 4px;
}

.video-info {
  display: none;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: rgba(255, 0, 0, 0.05);
  border: 1px solid rgba(255, 0, 0, 0.15);
  border-radius: 14px;
  margin: 20px 0;
}

.video-info img {
  width: 120px;
  border-radius: 10px;
  object-fit: cover;
}

.video-info h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.video-info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.table-wrap {
  border-radius: 14px;
  overflow-x: auto;
  border: 1px solid var(--border);
  margin-top: 20px;
  background: var(--bg-body);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  table-layout: fixed;
}

.table-wrap th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-card);
  border-bottom: 2px solid var(--border);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.table-wrap td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
}

.table-wrap tr:hover td {
  background: rgba(255, 0, 0, 0.03);
}

.table-wrap tr:last-child td {
  border-bottom: none;
}

.table-wrap .author-cell {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.text-rtl {
  direction: rtl;
  text-align: right;
  font-family: "Cairo", "Segoe UI", "Inter", sans-serif;
}

.filter-bar {
  display: none;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin: 16px 0;
}

.filter-bar span {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.filter-bar select, .filter-bar input {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-body);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
}

.filter-bar select:focus, .filter-bar input:focus {
  outline: none;
  border-color: var(--yt);
}

.section-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 2.5rem;
  margin: 2rem 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
}

.section-card h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-card h3 {
  font-size: 1.15rem;
  margin: 24px 0 12px;
  color: var(--text-primary);
}

.section-card p, .section-card li {
  color: var(--text-secondary);
  line-height: 1.8;
}

.related-tools {
  margin: 2rem 0;
}

.related-tools h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.related-tools > p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.tool-link {
  background: var(--bg-body);
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 14px;
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--tr);
  display: block;
}

.tool-link:hover {
  background: rgba(255, 0, 0, 0.05);
  border-color: var(--yt);
  transform: translateY(-4px);
  color: var(--yt);
}

.tool-link .t-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
  display: block;
}

.tool-link h5 {
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0 0 4px;
}

.tool-link p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

.faq-list {
  margin: 0;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--bg-body);
}

.faq-q {
  padding: 18px 22px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.faq-q i {
  transition: var(--tr);
  color: var(--yt);
}

.faq-item.open .faq-q i {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 22px;
}

.faq-item.open .faq-a {
  max-height: 500px;
  padding: 0 22px 20px;
}

.faq-a div {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.case-card {
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: var(--tr);
}

.case-card:hover {
  transform: translateY(-4px);
  border-color: var(--yt);
}

.case-num {
  background: var(--yt);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.case-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.case-detail {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
  line-height: 1.5;
}

.case-detail strong {
  color: var(--yt);
}

.highlight {
  background: rgba(255, 0, 0, 0.08);
  border-left: 4px solid var(--yt);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  margin: 20px 0;
}

@font-face {
  font-family: "Amiri";
  src: url("/fonts/Amiri-Regular.ttf") format("truetype");
  font-display: swap;
}
.loading-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(8px);
  flex-direction: column;
}

.loading-mask.on {
  display: flex;
}

.spinner {
  width: 64px;
  height: 64px;
  border: 5px solid rgba(255, 0, 0, 0.1);
  border-top-color: var(--yt);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 1.5rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 16px 32px;
  border-radius: 14px;
  color: #fff;
  font-weight: 600;
  z-index: 10001;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  font-size: 1rem;
  max-width: 90vw;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.toast.on {
  opacity: 1;
}

.toast.ok {
  background: linear-gradient(135deg, #43e97b, #38f9d7);
  color: #1a1a1a;
}

.toast.err {
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
}

.toast.inf {
  background: linear-gradient(135deg, #ff0000, #cc0000);
}

#floatThemeToggle {
  position: fixed;
  top: 100px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: var(--tr);
}

#floatThemeToggle:hover {
  background: var(--yt);
  color: #fff;
  border-color: var(--yt);
}

.content-block {
  padding: 40px 0;
}

.block-header {
  text-align: center;
  margin-bottom: 36px;
}

.block-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--yt);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.block-eyebrow i {
  font-size: 0.9rem;
}

.block-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.block-title .hl {
  color: var(--yt);
}

.block-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(28px, 4vw, 52px);
}

.guide-pro-tip {
  background: rgba(255, 0, 0, 0.05);
  border: 1px solid rgba(255, 0, 0, 0.15);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.guide-pro-tip:last-child {
  margin-bottom: 0;
}

.guide-pro-tip i {
  color: var(--yt);
  font-size: 1.3rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.guide-pro-tip h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.guide-pro-tip p {
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.7;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .tool-card {
    padding: 1.5rem;
  }
  .url-wrap input {
    min-width: 100%;
  }
  .video-info {
    flex-direction: column;
    text-align: center;
  }
  .video-info img {
    width: 100%;
    max-height: 200px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero {
    padding: 120px 0 100px;
  }
  .btn {
    width: 100%;
  }
  .filter-bar {
    flex-direction: column;
  }
  .filter-bar select, .filter-bar input {
    width: 100%;
  }
  .tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
  .tool-link {
    padding: 1.2rem 0.8rem;
  }
  .case-grid {
    grid-template-columns: 1fr;
  }
}
#app-content[data-theme=dark] {
  --bg-body: #0f0f0f;
  --bg-card: #1a1a1a;
  --text-primary: #f1f1f1;
  --text-secondary: #aaa;
  --text-muted: #717171;
  --border: #2a2a2a;
  background: var(--bg-body);
  color: var(--text-primary);
}
#app-content[data-theme=dark] .tool-card {
  background: var(--bg-card);
  border-color: var(--border);
}
#app-content[data-theme=dark] .section-card {
  background: var(--bg-card);
  border-color: var(--border);
}
#app-content[data-theme=dark] .tool-link {
  background: var(--bg-body);
  border-color: var(--border);
}
#app-content[data-theme=dark] .guide-card {
  background: var(--bg-card);
  border-color: var(--border);
}

#app-content[data-theme=light] {
  --bg-body: #f9f9f9;
  --bg-card: #ffffff;
  --text-primary: #0f0f0f;
  --text-secondary: #606060;
  --text-muted: #909090;
  --border: #e0e0e0;
  background: var(--bg-body);
  color: var(--text-primary);
}

::selection {
  background: var(--yt);
  color: #fff;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

/*# sourceMappingURL=yt-comments-to-pdf.css.map */
