/* ==========================================================================
   ClipForge Modern Downloader UI Stylesheet - Full Viewport Layout
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

html, body {
  min-height: 100%;
}

body {
  background-color: #060d11;
  color: #f0f4ec;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Background grid & ambient glow */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(201, 243, 104, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 243, 104, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.ambient-glow {
  position: fixed;
  top: -150px;
  right: -100px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 243, 104, 0.09) 0%, rgba(6, 13, 17, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* Shell fills full screen and distributes content from top to bottom */
.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1320px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 24px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   Header / Brand
   -------------------------------------------------------------------------- */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #c9f368 0%, #a3e635 100%);
  color: #060d11;
  box-shadow: 0 0 20px rgba(201, 243, 104, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.logo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(201, 243, 104, 0.6);
}

.logo svg {
  stroke: #060d11;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand strong {
  font: 800 24px/1 'Space Grotesk', sans-serif;
  letter-spacing: -0.04em;
  display: block;
  color: #ffffff;
}

.brand strong span {
  color: #c9f368;
  text-shadow: 0 0 12px rgba(201, 243, 104, 0.5);
}

.brand small {
  color: #ffffff88;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-top: 3px;
}

/* --------------------------------------------------------------------------
   Hero Section Layout (Centered in available viewport space)
   -------------------------------------------------------------------------- */
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 45px;
  align-items: center;
  padding: 25px 0;
}

.copy {
  padding-right: 10px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c9f368;
  border: 1px solid rgba(201, 243, 104, 0.25);
  background: rgba(201, 243, 104, 0.08);
  padding: 5px 12px;
  border-radius: 6px;
  margin-bottom: 18px;
}

.copy h1 {
  font: 700 clamp(36px, 4.5vw, 58px) / 1.06 'Space Grotesk', sans-serif;
  letter-spacing: -0.05em;
  margin-bottom: 18px;
}

.copy h1 em {
  font-style: normal;
  color: #c9f368;
  text-shadow: 0 0 30px rgba(201, 243, 104, 0.3);
}

.copy p {
  max-width: 500px;
  color: #ffffffaa;
  font-size: 15px;
  line-height: 1.7;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #c9f368;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 12px;
  border-radius: 6px;
}

.trust-item .check {
  color: #c9f368;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   Card UI
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 23, 27, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 24px 20px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(201, 243, 104, 0.05);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.badge-tag {
  color: #c9f368;
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 800;
  text-transform: uppercase;
}

.card h2 {
  font: 700 21px 'Space Grotesk', sans-serif;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin-top: 3px;
}

.spark-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: rgba(201, 243, 104, 0.1);
  border: 1px solid rgba(201, 243, 104, 0.25);
  color: #c9f368;
  font-size: 14px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Search Bar
   -------------------------------------------------------------------------- */
.search-wrap {
  display: flex;
  gap: 10px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.input-field {
  flex: 1 1 0%;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  background: #060d11;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 4px 6px 4px 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-field:focus-within {
  border-color: #c9f368;
  box-shadow: 0 0 0 2px rgba(201, 243, 104, 0.2);
}

.link-icon {
  font-size: 15px;
  opacity: 0.7;
  margin-right: 8px;
  flex-shrink: 0;
}

.input-field input {
  flex: 1 1 0%;
  min-width: 0;
  width: 100%;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 14px;
  padding: 10px 0;
  outline: none;
  overflow: hidden;
  text-overflow: ellipsis;
}

.input-field input::placeholder {
  color: #ffffff55;
}

.paste-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s;
}

.paste-pill:hover {
  background: rgba(201, 243, 104, 0.15);
  border-color: rgba(201, 243, 104, 0.4);
  color: #c9f368;
}

.paste-pill:active {
  transform: scale(0.96);
}

.fetch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 8px;
  background: #c9f368;
  color: #060d11;
  padding: 0 20px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(201, 243, 104, 0.25);
}

.fetch-btn:hover {
  background: #d8fb83;
  transform: translateY(-1px);
}

.fetch-btn:active {
  transform: scale(0.98);
}

.fetch-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* --------------------------------------------------------------------------
   Preview & Format Section
   -------------------------------------------------------------------------- */
.preview-box {
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #081216;
  border-radius: 10px;
  padding: 16px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.video-preview-header {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 14px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.thumb-container {
  position: relative;
  width: 130px;
  min-width: 130px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

.thumb-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.duration-pill {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.9);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.meta-container {
  flex: 1 1 0%;
  min-width: 0;
  overflow: hidden;
}

.v-title {
  font: 700 15px/1.4 'Space Grotesk', sans-serif;
  color: #ffffff;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.v-channel {
  font-size: 12px;
  color: #ffffff88;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   Sector / Tabs
   -------------------------------------------------------------------------- */
.sector-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
  width: 100%;
  box-sizing: border-box;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffffaa;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.tab-btn.active {
  border-color: #c9f368;
  background: rgba(201, 243, 104, 0.14);
  color: #c9f368;
}

/* --------------------------------------------------------------------------
   Formats Grid
   -------------------------------------------------------------------------- */
.formats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.format-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 10px 10px;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.format-card:hover {
  border-color: rgba(201, 243, 104, 0.45);
  background: rgba(201, 243, 104, 0.07);
}

.format-card.active {
  border-color: #c9f368;
  background: rgba(201, 243, 104, 0.14);
  box-shadow: 0 0 10px rgba(201, 243, 104, 0.16);
}

.format-card:active {
  transform: scale(0.98);
}

.fmt-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 0%;
  overflow: hidden;
}

.custom-radio {
  width: 13px;
  height: 13px;
  min-width: 13px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  position: relative;
  transition: border-color 0.2s;
  flex-shrink: 0;
}

.format-card.active .custom-radio {
  border-color: #c9f368;
}

.format-card.active .custom-radio::after {
  content: '';
  position: absolute;
  top: 1.5px;
  left: 1.5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c9f368;
}

.fmt-label {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.format-card.active .fmt-label {
  color: #c9f368;
}

/* Badges */
.fmt-badge {
  font: 700 11px/1 'Space Grotesk', -apple-system, sans-serif;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(201, 243, 104, 0.12);
  color: #c9f368;
  border: 1px solid rgba(201, 243, 104, 0.25);
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 4px;
  letter-spacing: 0.02em;
}

.fmt-badge.uhd {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border-color: rgba(236, 72, 153, 0.35);
}

.fmt-badge.hd {
  background: rgba(201, 243, 104, 0.15);
  color: #d8fb83;
  border-color: rgba(201, 243, 104, 0.35);
}

.fmt-badge.audio {
  background: rgba(96, 165, 250, 0.15);
  color: #93c5fd;
  border-color: rgba(96, 165, 250, 0.35);
}

/* Download Action Button */
.download-action-btn {
  width: 100%;
  border: none;
  border-radius: 8px;
  background: #c9f368;
  color: #060d11;
  padding: 14px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 18px rgba(201, 243, 104, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.download-action-btn:hover {
  background: #d8fb83;
  transform: translateY(-1px);
}

.download-action-btn:active {
  transform: scale(0.98);
}

.download-action-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* --------------------------------------------------------------------------
   Status Messages & Animated Progress Bar
   -------------------------------------------------------------------------- */
.status {
  margin-top: 14px;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.status[hidden] {
  display: none !important;
}

.status.working {
  background: rgba(201, 243, 104, 0.1);
  border: 1px solid rgba(201, 243, 104, 0.3);
  color: #d8fb83;
}

.status.error {
  background: rgba(255, 85, 85, 0.14);
  border: 1px solid rgba(255, 85, 85, 0.35);
  color: #ff9999;
}

/* Download Progress Box */
.status-progress-container {
  margin-top: 14px;
  width: 100%;
  box-sizing: border-box;
}

.progress-wrap {
  width: 100%;
  background: #060d11;
  border: 1px solid rgba(201, 243, 104, 0.35);
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 16px rgba(201, 243, 104, 0.15);
  animation: slideDown 0.25s ease-out;
  box-sizing: border-box;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 9px;
  gap: 10px;
}

.progress-text {
  font-size: 13px;
  font-weight: 600;
  color: #f0f4ec;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-percent {
  font-family: 'Space Grotesk', monospace, sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  color: #c9f368;
  flex-shrink: 0;
  background: rgba(201, 243, 104, 0.12);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(201, 243, 104, 0.25);
}

.progress-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, #a3e635 0%, #c9f368 50%, #d8fb83 100%);
  box-shadow: 0 0 14px rgba(201, 243, 104, 0.7);
  transition: width 0.18s ease;
  position: relative;
  overflow: hidden;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(201, 243, 104, 0.3);
  border-top-color: #c9f368;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.safe-note {
  color: #ffffff55;
  font-size: 11px;
  text-align: center;
  margin-top: 14px;
}

/* --------------------------------------------------------------------------
   3 Steps Section (Bottom-Pinned in Viewport)
   -------------------------------------------------------------------------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 15px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
}

.step-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px 14px;
  border-radius: 8px;
}

.step-num {
  font: 700 24px 'Space Grotesk', sans-serif;
  color: #c9f368;
  line-height: 1;
}

.step-text strong {
  display: block;
  font-size: 13px;
  color: #fff;
  margin-bottom: 2px;
}

.step-text p {
  font-size: 11px;
  color: #ffffff77;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Footer (Always Anchored at Bottom)
   -------------------------------------------------------------------------- */
footer {
  text-align: center;
  color: #ffffff77;
  font-size: 13px;
  padding: 14px 0 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 14px;
}

footer strong {
  color: #ffffffcc;
  font-weight: 700;
}

.fmoweb-badge {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: #060d11 !important;
  background: #c9f368;
  padding: 2px 9px;
  border-radius: 5px;
  text-decoration: none !important;
  margin: 0 4px;
  vertical-align: middle;
  transition: all 0.2s ease;
  box-shadow: 0 0 12px rgba(201, 243, 104, 0.4);
}

.fmoweb-badge:hover {
  background: #ffffff;
  color: #060d11 !important;
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(201, 243, 104, 0.7);
}

.fmoweb-badge:visited {
  color: #060d11 !important;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints & Mobile Optimization
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .shell {
    min-height: auto;
    padding: 20px 18px 24px;
  }
  
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 15px 0 20px;
  }
  
  .copy {
    padding-right: 0;
    text-align: center;
  }
  
  .copy h1 {
    font-size: clamp(28px, 5.5vw, 40px);
  }
  
  .copy p {
    margin: 0 auto;
  }
  
  /* Hide unnecessary badges on mobile & tablet view */
  .eyebrow,
  .trust {
    display: none !important;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 24px;
  }
}

@media (max-width: 640px) {
  .shell {
    padding: 14px 8px max(24px, env(safe-area-inset-bottom));
  }
  
  .brand {
    justify-content: center;
    gap: 12px;
    margin-bottom: 4px;
  }
  
  .logo {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
    box-shadow: 0 0 22px rgba(201, 243, 104, 0.5);
  }

  .logo svg {
    width: 24px;
    height: 24px;
  }
  
  .brand-text {
    text-align: left;
  }
  
  .brand strong {
    font-size: 23px;
    line-height: 1.1;
  }

  .brand small {
    font-size: 11px;
    letter-spacing: 0.05em;
  }
  
  .hero {
    gap: 18px;
    padding: 8px 0 16px;
  }
  
  .copy h1 {
    font-size: clamp(22px, 6.5vw, 28px);
    line-height: 1.2;
    margin-bottom: 8px;
    text-align: center;
  }
  
  .copy p {
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    max-width: 380px;
    margin: 0 auto;
  }
  
  /* Mobile Main Card - Wider & Spacious */
  .card {
    padding: 18px 12px;
    border-radius: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .card-head {
    margin-bottom: 14px;
  }
  
  .card h2 {
    font-size: 18px;
  }
  
  .search-wrap {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  
  .input-field {
    padding: 2px 4px 2px 12px;
    border-radius: 7px;
    height: 48px;
    width: 100%;
  }
  
  .input-field input {
    font-size: 13.5px;
  }
  
  .paste-pill {
    padding: 7px 12px;
    font-size: 12px;
    border-radius: 5px;
  }
  
  .fetch-btn {
    width: 100%;
    height: 46px;
    font-size: 14.5px;
    border-radius: 7px;
  }
  
  /* Mobile Video Preview - Seamless without inner border */
  .preview-box {
    border: none !important;
    background: transparent !important;
    padding: 14px 0 0 0 !important;
    margin-top: 14px;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .video-preview-header {
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .thumb-container {
    width: 90px;
    min-width: 90px;
    height: 58px;
    border-radius: 6px;
    flex-shrink: 0;
  }
  
  .v-title {
    font-size: 13px;
    line-height: 1.35;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  
  .v-channel {
    font-size: 11px;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  
  /* Mobile Segmented Tabs */
  .sector-tabs {
    gap: 6px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .tab-btn {
    flex: 1 1 0%;
    justify-content: center;
    padding: 8px 6px;
    font-size: 12.5px;
    border-radius: 6px;
    white-space: nowrap;
  }
  
  /* Mobile Formats Grid */
  .formats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 14px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .format-card {
    padding: 8px 6px;
    border-radius: 5px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .fmt-left {
    gap: 5px;
    min-width: 0;
    flex: 1 1 0%;
    overflow: hidden;
  }
  
  .custom-radio {
    width: 12px;
    height: 12px;
    min-width: 12px;
    flex-shrink: 0;
  }
  
  .format-card.active .custom-radio::after {
    top: 1px;
    left: 1px;
    width: 6px;
    height: 6px;
  }
  
  .fmt-label {
    font-size: 11.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }
  
  .fmt-badge {
    font-size: 9px;
    padding: 2px 4px;
    flex-shrink: 0;
    margin-left: 2px;
  }
  
  /* Mobile Download Action Button */
  .download-action-btn {
    height: 48px;
    font-size: 14.5px;
    border-radius: 7px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Mobile 3-Steps */
  .step-card {
    padding: 12px;
    gap: 12px;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .step-num {
    font-size: 20px;
    flex-shrink: 0;
  }
  
  .step-text strong {
    font-size: 12.5px;
  }
  
  .step-text p {
    font-size: 11px;
  }
  
  footer {
    font-size: 12px;
    padding: 16px 0 8px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .fmoweb-badge {
    font-size: 12px;
    padding: 2px 8px;
  }
}

@media (max-width: 440px) {
  .formats-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  
  .format-card {
    padding: 10px 10px;
  }

  .fmt-label {
    font-size: 13px;
  }

  .fmt-badge {
    font-size: 10px;
    padding: 2px 6px;
  }
  
  .thumb-container {
    width: 85px;
    min-width: 85px;
    height: 55px;
  }
  
  .copy h1 {
    font-size: 22px;
  }
}
