/* ==========================================================================
   YTDownloadKit - Professional YouTube Creator Tools Stylesheet
   Pure Vanilla CSS - Hostinger / Static Web Server Ready
   ========================================================================== */

:root {
  --primary: #e60023;
  --primary-hover: #cc001f;
  --primary-subtle: #fef2f2;
  --primary-border: #fecaca;
  
  --dark: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  
  --success: #10b981;
  --success-bg: #ecfdf5;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --info: #0284c7;
  --info-bg: #f0f9ff;
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1100px;
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate-700);
  background-color: var(--slate-50);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--info);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--dark);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 0.75rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.75rem; margin-top: 2rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.45rem); margin-bottom: 0.5rem; margin-top: 1.5rem; }

p {
  margin-bottom: 1.15rem;
  color: var(--slate-600);
}

ul, ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
  color: var(--slate-600);
}

code, pre {
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

code {
  background: var(--slate-100);
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  color: var(--slate-800);
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--dark);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 9999;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--primary);
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.main-content {
  flex: 1 0 auto;
  padding-bottom: 4rem;
}

.main-content .container {
  max-width: 1000px;
}

/* Header & Navigation */
.site-header {
  background-color: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.header-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--white);
}

.brand-logo .logo-icon {
  width: 34px;
  height: 34px;
  background: var(--primary);
  color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo .logo-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.brand-logo span span {
  color: var(--primary);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
}

.header-navigation {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.nav-link {
  color: var(--white);
  font-weight: 600;
  font-size: 0.925rem;
  padding: 0.5rem 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 10px;
  text-decoration: none;
}

.nav-link:hover, .nav-link.active {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-link svg:not(.dropdown-chevron) {
  width: 18px;
  height: 18px;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.nav-link:hover svg:not(.dropdown-chevron), .nav-link.active svg:not(.dropdown-chevron) {
  color: var(--primary);
}

.nav-link .dropdown-chevron {
  width: 14px;
  height: 14px;
  opacity: 0.5;
  transition: transform 0.2s ease;
}

.desktop-only {
  display: inline-flex !important;
}

.mobile-only {
  display: none !important;
}

@media (max-width: 1024px) {
  /* Prevent background page scroll when drawer is open */
  body.mobile-nav-locked {
    overflow: hidden !important;
    touch-action: none;
  }

  .header-inner {
    height: 64px;
    padding: 0 1rem;
    justify-content: space-between;
  }

  .brand-logo {
    font-size: 1.35rem;
  }

  .brand-logo .logo-icon {
    width: 32px;
    height: 32px;
  }

  /* Hamburger Button */
  .mobile-nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: var(--white) !important;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
    box-shadow: none !important;
  }

  /* Mobile Drawer Container */
  .main-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    flex-direction: column;
    padding: 0.65rem 0.85rem 2.5rem 0.85rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 999;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    margin: 0;
  }

  .main-nav.active {
    display: flex !important;
    animation: mobileNavDrawerFade 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  }

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

  .header-navigation, .header-right {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 0;
    gap: 0.35rem;
  }

  .nav-link {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 0.6rem 0.75rem !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    min-height: 44px !important;
  }

  .nav-link:hover, .nav-link.active {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: var(--primary) !important;
  }

  .dropdown.open .dropdown-toggle svg {
    transform: rotate(180deg);
  }

  .dropdown-menu {
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-radius: 0 0 8px 8px !important;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    visibility: visible !important;
    transform: none !important;
    transition: max-height 0.3s ease, opacity 0.2s ease !important;
  }

  .dropdown.open .dropdown-menu {
    max-height: 1000px; /* Allow more height for long lists */
    opacity: 1;
    padding: 0.5rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  .dropdown-menu-title {
    display: none !important; /* Hide redundant titles in mobile accordion */
  }

  .dropdown-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.25rem !important;
  }

  .dropdown-item {
    padding: 0.85rem 1rem !important;
    font-size: 0.925rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .desktop-only {
    display: none !important;
  }
  
  .mobile-only {
    display: flex !important;
  }
}

/* Mega Menu Dropdown */
.dropdown-menu {
  position: absolute;
  top: calc(100% - 5px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  min-width: 320px;
  padding: 1.5rem;
  display: none;
  flex-direction: column;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

@media (min-width: 1025px) {
  .dropdown:hover .dropdown-menu {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .dropdown:hover .nav-link .dropdown-chevron {
    transform: rotate(180deg);
  }
}

.dropdown-menu-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--slate-100);
}

.dropdown-menu-title svg {
  width: 20px;
  height: 20px;
}

.dropdown-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.dropdown-column {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dropdown-header-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--slate-400);
  margin-bottom: 0.5rem;
  padding-left: 1rem;
}

.dropdown-all-tools {
  min-width: 760px !important;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  color: var(--slate-700);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  text-decoration: none;
}

.dropdown-item svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

.dropdown-item:hover {
  background-color: var(--slate-50);
  color: var(--primary);
  transform: translateX(4px);
}

/* Category specific colors for the cards seen in the image */
.dropdown-downloaders { border-top: 4px solid #e11d48; }
.dropdown-extractors { border-top: 4px solid #4f46e5; }
.dropdown-thumbnail { border-top: 4px solid #0891b2; }
.dropdown-seo { border-top: 4px solid #059669; }

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--slate-800);
  border-radius: var(--radius-sm);
}

.mobile-nav-toggle:focus {
  outline: 2px solid var(--primary);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 3rem 1rem 2rem;
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-subtle);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  font-size: 0.825rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero p.lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--slate-600);
  max-width: 720px;
  margin: 0 auto 1.5rem;
}

/* Tool Wrapper Card */
.tool-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.tool-input-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 680px) {
  .tool-input-group {
    flex-direction: row;
  }
}

.input-wrapper {
  position: relative;
  flex: 1;
}

.tool-input {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1.05rem;
  font-family: inherit;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-md);
  color: var(--dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.tool-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(230, 0, 35, 0.12);
}

.tool-input::placeholder {
  color: var(--slate-400);
}

.input-actions-inner {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-icon-subtle {
  background: var(--slate-100);
  border: none;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate-600);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: var(--transition);
}

.btn-icon-subtle:hover {
  background: var(--slate-200);
  color: var(--dark);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.95rem 1.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 8px rgba(230, 0, 35, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: var(--white);
  box-shadow: 0 6px 12px rgba(230, 0, 35, 0.35);
  transform: translateY(-1px);
}

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

.btn-secondary {
  background-color: var(--slate-100);
  color: var(--slate-700);
  border-color: var(--slate-200);
}

.btn-secondary:hover {
  background-color: var(--slate-200);
  color: var(--dark);
}

.btn-outline {
  background-color: transparent;
  color: var(--slate-700);
  border-color: var(--slate-200);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--primary-subtle);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

/* Quick Examples Pills */
.url-examples {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--slate-500);
}

.url-example-pill {
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.75rem;
  cursor: pointer;
  color: var(--slate-700);
  font-size: 0.8rem;
  transition: var(--transition);
}

.url-example-pill:hover {
  background: var(--slate-200);
  color: var(--dark);
}

/* Status & Feedback States */
.status-msg {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-top: 1.5rem;
  display: none;
  font-size: 0.95rem;
  align-items: flex-start;
  gap: 0.75rem;
}

.status-msg.active {
  display: flex;
}

.status-msg.error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.status-msg.warning {
  background-color: var(--warning-bg);
  border: 1px solid #fde68a;
  color: #92400e;
}

.status-msg.info {
  background-color: var(--info-bg);
  border: 1px solid #bae6fd;
  color: #0369a1;
}

.status-msg svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 0.8s linear infinite;
}

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

/* Results Section */
.results-wrapper {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--slate-200);
  display: none;
}

.results-wrapper.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

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

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.results-header h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detected-video-id {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--slate-100);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--slate-700);
}

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

.thumbnail-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.thumbnail-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--slate-300);
  transform: translateY(-2px);
}

.thumbnail-preview-box {
  position: relative;
  background: var(--slate-900);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.thumbnail-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.thumbnail-card:hover .thumbnail-preview-box img {
  transform: scale(1.02);
}

.res-tag {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.03em;
}

.res-tag.badge-hd {
  background: var(--primary);
}

.thumbnail-details {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.thumbnail-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.thumbnail-meta {
  font-size: 0.85rem;
  color: var(--slate-500);
  margin-bottom: 1rem;
}

.thumbnail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: auto;
}

.thumbnail-actions .btn-full {
  grid-column: span 2;
}

/* Modal Lightbox */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1.5rem;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 960px;
  width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
  display: flex;
  flex-direction: column;
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--slate-200);
}

.lightbox-header h4 {
  margin: 0;
}

.lightbox-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--slate-500);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
}

.lightbox-close:hover {
  background: var(--slate-100);
  color: var(--dark);
}

.lightbox-body {
  padding: 1.5rem;
  background: var(--slate-900);
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 70vh;
  overflow: auto;
}

.lightbox-body img {
  max-height: 65vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-footer {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  background: var(--white);
}

/* Informational / Disclaimer Notice Box */
.notice-box {
  background: #f8fafc;
  border: 1px solid var(--slate-200);
  border-left: 4px solid var(--slate-600);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.notice-box.warning {
  border-left-color: var(--warning);
  background: #fffbeb;
}

.notice-box.danger {
  border-left-color: var(--primary);
  background: #fef2f2;
}

.notice-box h4 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.notice-box p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.notice-box p:last-child {
  margin-bottom: 0;
}

/* Ad Containers (AdSense-ready placeholders) */
.ad-slot {
  margin: 2.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ad-placeholder {
  width: 100%;
  max-width: 728px;
  min-height: 90px;
  background: #f8fafc;
  border: 1px dashed var(--slate-300);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-400);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  user-select: none;
}

.ad-placeholder.sidebar-ad {
  max-width: 300px;
  min-height: 250px;
}

/* Content Sections */
.content-section {
  margin-top: 3.5rem;
}

.content-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.content-card h2 {
  margin-top: 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--slate-100);
  position: relative;
}

.content-card h2::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary);
}

/* Steps List */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.75rem 0;
}

.step-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.step-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.925rem;
  margin-bottom: 0;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-box {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-box:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-border);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-box h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-box p {
  font-size: 0.925rem;
  margin-bottom: 0;
}

/* FAQ Section */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--slate-300);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--dark);
  list-style: none;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.2s;
  color: var(--slate-500);
  flex-shrink: 0;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-item[open] .faq-question {
  color: var(--primary);
  border-bottom: 1px solid var(--slate-100);
}

.faq-answer {
  padding: 1.25rem 1.5rem;
  background: var(--slate-50);
  font-size: 0.95rem;
  color: var(--slate-600);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.data-table th, .data-table td {
  padding: 0.85rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--slate-200);
  font-size: 0.925rem;
}

.data-table th {
  background: var(--slate-100);
  font-weight: 700;
  color: var(--dark);
}

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

.data-table tr:hover td {
  background: var(--slate-50);
}

/* Secondary Tools Layout */
.tool-preview-mockup {
  background: var(--slate-900);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  color: var(--white);
  margin-top: 1.5rem;
}

.feed-mock-card {
  background: var(--slate-800);
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-width: 360px;
  margin: 0 auto;
}

.feed-mock-img {
  aspect-ratio: 16 / 9;
  background: var(--slate-700);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.feed-mock-meta {
  padding: 0.85rem;
  display: flex;
  gap: 0.75rem;
}

.feed-mock-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.feed-mock-text h5 {
  color: var(--white);
  font-size: 0.9rem;
  line-height: 1.3;
  margin-bottom: 0.3rem;
}

.feed-mock-text p {
  color: var(--slate-400);
  font-size: 0.75rem;
  margin: 0;
}

/* Tag Pills */
.tag-pills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tag-pill {
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  color: var(--slate-700);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: var(--transition);
}

.tag-pill:hover {
  background: var(--primary-subtle);
  border-color: var(--primary-border);
  color: var(--primary);
}

/* Articles / Guides Layout */
.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

@media (min-width: 992px) {
  .article-layout {
    grid-template-columns: 2fr 1fr;
  }
}

.article-layout > * {
  min-width: 0;
}

/* Cards & Grids for Guides & Blog */
.guides-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
  margin: 2.5rem 0;
}

.guide-card,
.blog-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.guide-card:hover,
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--slate-300);
}

.guide-card-tag,
.blog-card-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--slate-100);
  color: var(--slate-700);
  margin-bottom: 1rem;
}

.guide-card h3,
.blog-card h3 {
  font-size: 1.25rem;
  line-height: 1.4;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.guide-card h3 a,
.blog-card h3 a {
  color: var(--dark);
  text-decoration: none;
}

.guide-card h3 a:hover,
.blog-card h3 a:hover {
  color: var(--primary);
}

.guide-card p,
.blog-card p {
  color: var(--slate-600);
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

.guide-card-meta,
.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--slate-100);
  font-size: 0.85rem;
  color: var(--slate-500);
}

.guide-card-meta .read-more,
.blog-card-meta .read-more {
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.guide-card-meta .read-more:hover,
.blog-card-meta .read-more:hover {
  text-decoration: underline;
}

/* Table of Contents Box */
.toc-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
}

.toc-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--slate-200);
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.toc-list a {
  color: var(--slate-700);
  font-size: 0.925rem;
  text-decoration: none;
  transition: var(--transition);
}

.toc-list a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.article-body {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: var(--slate-500);
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--slate-200);
}

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-widget h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--slate-100);
}

.widget-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.widget-link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--slate-700);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.35rem 0;
}

.widget-link-list a:hover {
  color: var(--primary);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--slate-500);
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  color: var(--slate-600);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb-separator {
  color: var(--slate-400);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  color: var(--dark);
  background: var(--white);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230, 0, 35, 0.12);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Toast Notification */
.toast-msg {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--dark);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 10000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: var(--slate-400);
  padding: 4rem 0 2rem;
  margin-top: auto;
  border-top: 1px solid var(--slate-800);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
  justify-content: center;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.25rem 2rem;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-brand .brand-logo {
  color: var(--white);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-brand p {
  color: var(--slate-400);
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: center;
  max-width: 440px;
  margin: 0 auto;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
  text-align: center;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  width: 100%;
}

.footer-links li {
  text-align: center;
  width: 100%;
}

.footer-links a {
  color: var(--slate-400);
  font-size: 0.9rem;
  transition: color 0.15s ease, transform 0.15s ease;
  display: inline-block;
  text-align: center;
}

.footer-links a:hover {
  color: var(--white);
  transform: translateY(-1px);
}

/* Footer Tools by Category Dropdowns Section */
.footer-categories-section {
  padding: 2.25rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 2.5rem;
}

.footer-categories-header {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
}

.footer-categories-header h4 {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  letter-spacing: 0.02em;
}

.footer-categories-header h4 svg {
  color: var(--primary);
}

.footer-categories-header p {
  color: var(--slate-400);
  font-size: 0.85rem;
  margin: 0;
  text-align: center;
}

.footer-cat-dropdowns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.footer-cat-dropdown {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.footer-cat-dropdown:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

.footer-cat-toggle {
  width: 100%;
  padding: 0.85rem 1rem;
  background: none;
  border: none;
  color: var(--white);
  font-family: inherit;
  font-size: 0.925rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  user-select: none;
  outline: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.footer-cat-toggle:hover {
  color: var(--primary);
}

.footer-cat-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-cat-title svg {
  color: var(--primary);
  flex-shrink: 0;
}

.footer-cat-chevron {
  width: 15px;
  height: 15px;
  color: var(--slate-400);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.footer-cat-dropdown.open .footer-cat-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.footer-cat-menu {
  list-style: none;
  margin: 0;
  padding: 0 1rem 0.85rem;
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.65rem;
}

/* Open state on both desktop & mobile */
.footer-cat-dropdown.open .footer-cat-menu {
  display: flex;
}

.footer-cat-menu li a {
  color: var(--slate-400);
  font-size: 0.85rem;
  line-height: 1.45;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0;
  transition: color 0.15s ease, padding-left 0.15s ease;
  text-decoration: none;
}

.footer-cat-menu li a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--slate-800);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  font-size: 0.85rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}

.footer-disclaimer {
  max-width: 640px;
  font-size: 0.8rem;
  color: var(--slate-500);
  text-align: center;
  margin: 0 auto;
}



/* ==========================================================================
   Transcript Generator & Tool Responsive Enhancements
   ========================================================================== */

/* Mode Switcher Tabs */
.trans-mode-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--slate-200);
  padding-bottom: 0.75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.trans-mode-tab-btn {
  border-radius: 9999px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Sample Pills List */
.trans-samples-row {
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--slate-600);
}

.transcript-sample-pill {
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--slate-700);
  transition: var(--transition);
  white-space: nowrap;
}

.transcript-sample-pill:hover {
  background: var(--slate-200);
  color: var(--dark);
}

/* Video Header Banner */
.trans-video-overview {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--slate-200);
  margin-bottom: 1.25rem;
}

.trans-thumb-box {
  flex: 0 0 160px;
  width: 160px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--slate-200);
  background: var(--slate-100);
}

.trans-thumb-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.trans-video-meta {
  flex: 1;
  min-width: 0;
}

.trans-badges-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.trans-video-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  word-break: break-word;
}

/* Stats Row */
.trans-stats-row {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--slate-600);
  margin-top: 0.5rem;
  background: var(--slate-50);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-200);
}

.trans-stat-bullet {
  color: var(--slate-300);
}

/* Toolbar & View Mode Switcher */
.trans-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1rem;
  background: var(--slate-50);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-200);
}

.trans-view-switcher {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.trans-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 200px;
  flex: 1;
  max-width: 320px;
}

/* Actions & Download Row */
.trans-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--slate-200);
}

.trans-filter-toggles {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--slate-700);
  flex-wrap: wrap;
}

.trans-action-btns {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.trans-display-box {
  max-height: 520px;
  overflow-y: auto;
  padding: 0.5rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  -webkit-overflow-scrolling: touch;
}

/* Mobile & Tablet Specific Responsiveness */
@media (max-width: 640px) {
  .tool-card {
    padding: 1rem;
    border-radius: var(--radius-md);
  }

  .tool-input-group {
    flex-direction: column;
    gap: 0.65rem;
  }

  .tool-input-group .btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1rem;
  }

  .trans-mode-tabs {
    flex-wrap: nowrap;
    gap: 0.35rem;
    padding-bottom: 0.5rem;
  }

  .trans-mode-tab-btn {
    font-size: 0.8rem;
    padding: 0.45rem 0.75rem;
  }

  .trans-video-overview {
    flex-direction: column;
    gap: 0.75rem;
  }

  .trans-thumb-box {
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
  }

  .trans-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 0.75rem;
    padding: 0.65rem;
  }

  .trans-stat-bullet {
    display: none;
  }

  .trans-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.65rem;
  }

  .trans-view-switcher {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
  }

  .trans-view-label {
    grid-column: 1 / -1;
    margin-bottom: 0.15rem;
  }

  .trans-view-switcher .view-mode-btn {
    width: 100%;
    text-align: center;
    padding: 0.45rem 0.25rem;
    font-size: 0.75rem;
  }

  .trans-search-wrapper {
    max-width: 100%;
    min-width: 100%;
    width: 100%;
  }

  .trans-actions-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .trans-filter-toggles {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    background: var(--slate-50);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
  }

  .trans-action-btns {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  .trans-action-btns > .btn,
  .trans-action-btns > div {
    width: 100% !important;
  }

  .trans-action-btns > div > button {
    width: 100%;
    justify-content: center;
  }

  #downloadDropdownMenu {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
  }

  .trans-cue-row {
    padding: 0.65rem 0.25rem !important;
    gap: 0.5rem !important;
  }

  .trans-time-pill {
    font-size: 0.7rem !important;
    padding: 0.2rem 0.4rem !important;
  }

  .trans-cue-text {
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
  }

  .btn-copy-cue {
    padding: 6px !important;
  }

  /* Global Mobile Enhancements for Small Screens */
  .container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .hero h1 {
    font-size: 1.65rem;
    line-height: 1.25;
  }

  .hero p.lead {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }

  .hero {
    padding: 1.5rem 0 1rem;
  }

  .lightbox-overlay {
    padding: 0.5rem;
  }

  .lightbox-content {
    max-height: 95vh;
  }

  .lightbox-body {
    padding: 0.75rem;
    max-height: 60vh;
  }

  .lightbox-footer {
    flex-direction: column;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }

  .lightbox-footer .btn {
    width: 100%;
    justify-content: center;
  }

  .thumbnail-actions {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .thumbnail-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.65rem 0.75rem;
    font-size: 0.825rem;
  }

  .thumbnail-actions .btn-full {
    grid-column: span 1;
  }

  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-bottom: 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    justify-items: center;
  }
}

/* ==========================================================================
   Global Keyboard Shortcuts & Accessibility
   ========================================================================== */
kbd {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--slate-700);
  background-color: var(--slate-100);
  border: 1px solid var(--slate-300);
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
  vertical-align: baseline;
}

.kbd-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.5rem;
  font-size: 0.7rem;
  color: var(--slate-500);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--slate-200);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-family: var(--font-mono);
}

.btn-primary .kbd-badge {
  color: #fee2e2;
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-shortcuts-trigger {
  background: transparent;
  border: 1px solid var(--slate-200);
  color: var(--slate-600);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-shortcuts-trigger:hover {
  background: var(--slate-100);
  color: var(--primary);
  border-color: var(--slate-300);
}

.btn-shortcuts-trigger kbd {
  background: var(--white);
  border-color: var(--slate-300);
  color: var(--slate-600);
  font-size: 0.68rem;
  padding: 0.1rem 0.3rem;
}

/* Shortcuts Modal Dialog */
.shortcuts-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.shortcuts-overlay.active {
  display: flex;
  animation: fadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.shortcuts-dialog {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--slate-200);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.shortcuts-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--slate-50);
}

.shortcuts-header h3 {
  margin: 0;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--slate-800);
}

.shortcuts-body {
  padding: 1.5rem;
  overflow-y: auto;
}

.shortcuts-table {
  width: 100%;
  border-collapse: collapse;
}

.shortcuts-table tr {
  border-bottom: 1px solid var(--slate-100);
}

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

.shortcuts-table td {
  padding: 0.75rem 0.5rem;
  font-size: 0.9rem;
  color: var(--slate-700);
}

.shortcuts-table td.shortcut-keys {
  text-align: right;
  white-space: nowrap;
}

.shortcuts-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--slate-100);
  background: var(--slate-50);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--slate-500);
}

/* ==========================================================================
   YouTube SEO Metadata Generator Styles
   ========================================================================== */
.seo-presets-container {
  margin-bottom: 1.5rem;
  padding: 0.85rem 1rem;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
}

.seo-presets-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--slate-600);
}

.preset-pills-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.preset-pill {
  background: var(--white);
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate-700);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.preset-pill:hover, .preset-pill.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(230, 0, 35, 0.25);
}

.seo-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .seo-form-grid {
    grid-template-columns: 1fr;
  }
}

.seo-form-group {
  margin-bottom: 1.15rem;
}

.seo-form-group.col-span-2 {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .seo-form-group.col-span-2 {
    grid-column: span 1;
  }
}

.seo-form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.885rem;
  color: var(--slate-700);
  margin-bottom: 0.35rem;
}

.seo-form-label .label-hint {
  font-size: 0.775rem;
  color: var(--slate-400);
  font-weight: normal;
}

.seo-form-input, .seo-form-select, .seo-form-textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 0.925rem;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--dark);
  transition: var(--transition);
  font-family: inherit;
}

.seo-form-input:focus, .seo-form-select:focus, .seo-form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230, 0, 35, 0.12);
}

.seo-form-textarea {
  resize: vertical;
  min-height: 75px;
  line-height: 1.5;
}

/* Master Copyable Studio Box */
.seo-master-box {
  background: var(--white);
  border: 2px solid var(--slate-300);
  border-radius: var(--radius-lg);
  margin-top: 1.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: border-color 0.2s ease;
}

.seo-master-box.highlight {
  border-color: var(--primary);
}

.seo-master-header {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: var(--white);
  padding: 1.15rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.seo-master-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-size: 1.1rem;
  color: var(--white);
}

.seo-master-title svg {
  color: #38bdf8;
}

.seo-master-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.btn-studio-copy {
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(230, 0, 35, 0.35);
  transition: var(--transition);
  font-size: 0.875rem;
}

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

/* Metadata Breakdown Tabs */
.seo-tabs-bar {
  display: flex;
  align-items: center;
  background: var(--slate-100);
  border-bottom: 1px solid var(--slate-200);
  padding: 0.25rem 0.75rem 0;
  gap: 0.35rem;
  overflow-x: auto;
}

.seo-tab-btn {
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-600);
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  transition: var(--transition);
}

.seo-tab-btn:hover {
  color: var(--dark);
  background: rgba(255, 255, 255, 0.5);
}

.seo-tab-btn.active {
  color: var(--primary);
  background: var(--white);
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.04);
  font-weight: 700;
  border-bottom: 2px solid var(--primary);
}

.seo-tab-content {
  padding: 1.5rem;
}

.seo-code-preview {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.6;
  background: #0f172a;
  color: #f1f5f9;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid #1e293b;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 480px;
  overflow-y: auto;
  margin: 0;
}

/* Title Variations Selector */
.title-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.title-option-card {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
}

.title-option-card:hover {
  border-color: var(--primary);
  background: #fff8f8;
}

.title-option-card.selected {
  border-color: var(--primary);
  background: #fef2f2;
  box-shadow: 0 0 0 2px rgba(230, 0, 35, 0.15);
}

.title-text-box {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.title-category-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.04em;
}

.title-string {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--slate-900);
}

.title-meta-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
}

/* Character Counters */
.char-meter {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background: var(--slate-100);
  color: var(--slate-600);
}

.char-meter.safe {
  background: #ecfdf5;
  color: #065f46;
}

.char-meter.warning {
  background: #fffbeb;
  color: #92400e;
}

.char-meter.danger {
  background: #fef2f2;
  color: #991b1b;
}



.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.tag-chip {
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: var(--transition);
}

.tag-chip:hover {
  background: var(--primary-subtle);
  border-color: var(--primary);
  color: var(--primary);
}

.hashtag-chip {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  border-radius: var(--radius-full);
  padding: 0.25rem 0.75rem;
  font-size: 0.825rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.hashtag-chip:hover {
  background: #dbeafe;
  border-color: #3b82f6;
}
