:root {
  color-scheme: dark;
  --bg: #08090b;
  --panel: #101216;
  --panel-2: #15181d;
  --panel-3: #0c0e11;
  --line: #252a31;
  --line-soft: #1b1f25;
  --text: #f4f5f7;
  --muted: #9298a3;
  --muted-2: #656b75;
  --accent: #f5f5f5;
  --green: #38c793;
  --blue: #5da9ff;
  --danger: #ff6f76;
  --warning: #f4b75f;
  --radius: 16px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 0%, rgba(70, 82, 110, .16), transparent 28%),
    radial-gradient(circle at 10% 30%, rgba(120, 28, 42, .10), transparent 25%),
    var(--bg);
  color: var(--text);
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.tiny { font-size: 11px; color: var(--muted-2); }
.status-box {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #0c0e12;
  border-radius: 10px;
  color: #b7bbc3;
  font-size: 12px;
  white-space: pre-wrap;
}
.status-box.error { color: var(--danger); border-color: rgba(255, 111, 118, .35); }
.status-box.success { color: #8ae2bd; border-color: rgba(56, 199, 147, .3); }

/* Shared navigation */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,.055);
  background: rgba(8, 9, 11, .88);
  backdrop-filter: blur(16px);
}
.nav-inner {
  width: min(1180px, calc(100% - 36px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .08em;
  font-size: 13px;
}
.brand-mark {
  width: 31px;
  height: 31px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #f3f3f5, #a8acb4);
  color: #08090b;
  font-weight: 1000;
  letter-spacing: -.06em;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 8px 25px rgba(255,255,255,.08);
}
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { text-decoration: none; color: #9aa0aa; font-size: 12px; font-weight: 700; }
.nav-links a:hover { color: white; }
.nav-actions { display: flex; gap: 9px; align-items: center; }
.btn {
  border: 1px solid #30353d;
  border-radius: 10px;
  padding: 10px 14px;
  background: #101318;
  color: #edf0f4;
  text-decoration: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  transition: .16s ease;
}
.btn:hover { background: #191d23; border-color: #414750; }
.btn.primary { background: #f0f1f3; color: #090a0c; border-color: #f0f1f3; }
.btn.primary:hover { background: white; }
.btn.danger { color: #ff9aa0; border-color: rgba(255,111,118,.25); background: rgba(255,111,118,.06); }
.btn.small { padding: 7px 10px; font-size: 11px; }
.btn:disabled { opacity: .55; cursor: wait; }

/* Homepage */
.home-wrap { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.hero {
  min-height: 570px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 54px;
  align-items: center;
  padding: 90px 0 74px;
}
.kicker { color: #888f9a; font-size: 11px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { margin: 13px 0 20px; font-size: clamp(46px, 7vw, 84px); line-height: .95; letter-spacing: -.055em; max-width: 760px; }
.hero h1 span { color: #8e949e; }
.hero-copy { max-width: 640px; font-size: 15px; line-height: 1.75; color: #a0a6af; }
.hero-actions { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.hero-card {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    linear-gradient(155deg, rgba(255,255,255,.07), transparent 31%),
    linear-gradient(155deg, #191c22, #08090b 70%);
  box-shadow: 0 35px 80px rgba(0,0,0,.45);
}
.hero-card::before {
  content: "";
  position: absolute;
  width: 310px;
  height: 310px;
  right: -90px;
  top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(115, 130, 167, .34), transparent 68%);
}
.wave-lines { position: absolute; inset: 0; display: grid; align-content: center; gap: 8px; padding: 32px; opacity: .72; }
.wave-line { height: 2px; border-radius: 99px; background: linear-gradient(90deg, transparent, #6d7582, #e4e7eb, #6b717b, transparent); transform-origin: center; }
.wave-line:nth-child(2) { transform: scaleX(.82); }
.wave-line:nth-child(3) { transform: scaleX(.62); }
.wave-line:nth-child(4) { transform: scaleX(.92); }
.wave-line:nth-child(5) { transform: scaleX(.48); }
.hero-ui {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 17px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(7,8,10,.74);
  backdrop-filter: blur(12px);
}
.hero-ui strong { font-size: 13px; }
.hero-ui-row { display: flex; justify-content: space-between; gap: 10px; margin-top: 9px; color: #747c89; font-size: 11px; }
.section { padding: 84px 0; border-top: 1px solid rgba(255,255,255,.055); }
.section-head { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 32px; }
.section-head h2 { margin: 7px 0 0; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.035em; }
.section-head p { max-width: 540px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-card {
  min-height: 210px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: linear-gradient(155deg, rgba(28,31,37,.82), rgba(11,13,16,.82));
}
.feature-icon { width: 36px; height: 36px; border-radius: 10px; border: 1px solid #343a43; display: grid; place-items: center; color: #bbc1ca; margin-bottom: 35px; }
.feature-card h3 { margin: 0 0 8px; font-size: 15px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.asset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.asset-card { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #0d0f12; }
.asset-thumb { height: 170px; background: radial-gradient(circle at 50% 20%, #353b47, #11141a 45%, #08090b); display: grid; place-items: center; overflow: hidden; }
.asset-thumb img { width: 100%; height: 100%; object-fit: cover; }
.asset-placeholder { font-size: 28px; font-weight: 1000; letter-spacing: -.07em; color: #616976; }
.asset-body { padding: 17px; }
.asset-meta { display: flex; justify-content: space-between; gap: 12px; color: #6f7681; font-size: 10px; text-transform: uppercase; font-weight: 800; letter-spacing: .08em; }
.asset-body h3 { font-size: 14px; margin: 10px 0 7px; }
.asset-body p { color: #858c97; font-size: 11px; line-height: 1.6; min-height: 36px; margin: 0 0 14px; }
.asset-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.asset-file { color: #626a76; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 58%; }
.empty-card { grid-column: 1 / -1; padding: 34px; border: 1px dashed #2b3037; border-radius: 15px; text-align: center; color: #777e88; font-size: 12px; }
.cta-box { padding: 50px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(130deg, #171a20, #0b0d10); display: flex; justify-content: space-between; gap: 30px; align-items: center; }
.cta-box h2 { margin: 0 0 7px; font-size: 28px; letter-spacing: -.03em; }
.cta-box p { margin: 0; color: var(--muted); font-size: 13px; }
.footer { padding: 28px 0 36px; display: flex; justify-content: space-between; gap: 20px; color: #606772; font-size: 11px; border-top: 1px solid rgba(255,255,255,.055); }

/* Login */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-shell { width: min(100%, 430px); }
.auth-brand { display: flex; justify-content: center; margin-bottom: 18px; }
.auth-card { padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(155deg, #15181d, #0b0d10); box-shadow: 0 35px 80px rgba(0,0,0,.42); }
.auth-card h1 { margin: 0 0 7px; font-size: 24px; letter-spacing: -.03em; }
.auth-card > p { margin: 0 0 24px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.field { margin-bottom: 15px; }
.field label { display: block; margin-bottom: 7px; color: #9fa5af; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.input, .select, .textarea {
  width: 100%;
  border: 1px solid #30353d;
  border-radius: 10px;
  padding: 12px 13px;
  background: #080a0d;
  color: white;
  outline: none;
}
.textarea { resize: vertical; min-height: 95px; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { border-color: #656d79; }
.auth-card .btn { width: 100%; padding: 12px; margin-top: 5px; }
.auth-back { display: block; text-align: center; color: #6f7681; text-decoration: none; font-size: 11px; margin-top: 16px; }

/* Studio converter */
.studio-shell { width: min(1180px, calc(100% - 30px)); margin: 28px auto 60px; }
.studio-header { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 16px; }
.studio-header h1 { margin: 0; font-size: 18px; }
.studio-header p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.user-chip { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 11px; padding: 8px 10px; background: #0c0e11; }
.user-avatar { width: 30px; height: 30px; border-radius: 8px; background: #22262d; display: grid; place-items: center; font-size: 10px; font-weight: 900; }
.user-chip strong { display: block; font-size: 11px; }
.user-chip span { display: block; color: #68707b; font-size: 9px; margin-top: 2px; }
.converter-panel { background: linear-gradient(140deg, rgba(27,29,34,.98), rgba(8,9,11,.98)); border: 1px solid #24282e; border-radius: 16px; padding: 27px; box-shadow: 0 28px 80px rgba(0,0,0,.35); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.eyebrow { font-size: 10px; color: #767d88; letter-spacing: .13em; font-weight: 900; }
.panel-head h2 { margin: 5px 0 3px; font-size: 20px; }
.panel-head p { color: var(--muted); margin: 0; font-size: 11px; }
.text-button { border: 0; background: transparent; color: #9ba1aa; font-weight: 900; font-size: 10px; cursor: pointer; }
.source-tabs { display: flex; gap: 8px; margin: 24px 0 12px; }
.source-tab { border: 1px solid var(--line); background: #101216; color: #8c929c; border-radius: 10px; padding: 9px 13px; cursor: pointer; font-weight: 800; font-size: 11px; }
.source-tab.active { color: white; background: #252931; border-color: #414751; }
.source-card { border: 1px solid #272b32; background: rgba(11,12,15,.72); border-radius: 12px; padding: 14px; margin-bottom: 20px; }
.source-card > label:not(.dropzone) { display: block; font-size: 10px; font-weight: 900; color: #a5abb4; margin-bottom: 9px; }
.dropzone { display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 95px; border: 1px dashed #3a4049; border-radius: 10px; cursor: pointer; transition: .18s ease; }
.dropzone:hover { background: #171a1f; border-color: #666f7b; }
.dropzone input { display: none; }
.drop-title { font-weight: 800; font-size: 13px; }
.drop-sub, .small-note { margin-top: 6px; color: #777e89; font-size: 10px; }
.url-input { width: 100%; border: 1px solid #343a43; background: #080a0d; color: white; border-radius: 10px; padding: 12px 13px; outline: none; }
.url-input:focus { border-color: #6a7380; }
.control-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 4px 0 24px; }
.control-card { padding: 20px; border: 1px solid #20242a; border-radius: 12px; background: linear-gradient(150deg, rgba(31,34,40,.72), rgba(8,9,11,.84)); }
.control-title-row { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; font-weight: 900; }
.control-title-row output { background: #2a2f36; padding: 3px 8px; border-radius: 5px; min-width: 56px; text-align: center; }
.range { width: 100%; margin: 23px 0 13px; accent-color: #d2d5da; }
.range-labels { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; color: #646b76; font-size: 9px; }
.range-labels span:nth-child(2) { text-align: center; }
.range-labels span:last-child { text-align: right; }
.safe { color: var(--green); }
.setting-row { display: grid; grid-template-columns: 220px 1fr; gap: 16px; border-top: 1px solid var(--line); padding: 17px 0; align-items: center; }
.setting-label { display: flex; align-items: center; gap: 11px; color: #a4abb4; }
.setting-label strong { display: block; font-size: 10px; }
.setting-label small { display: block; font-size: 9px; color: #626a75; margin-top: 4px; }
.select-like, .native-select { width: 100%; background: #080a0c; border: 1px solid #2e333b; color: #ededf0; border-radius: 10px; padding: 11px 13px; min-height: 42px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 800; }
.metric-row { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; padding: 15px; background: rgba(13,15,18,.78); border: 1px solid #1f2329; border-radius: 10px; color: #8f969f; font-size: 10px; font-weight: 900; }
.metric-row strong { color: #e9ebee; }
.convert-button { width: 100%; border: 1px solid #363c45; background: linear-gradient(180deg, #15181d, #08090b); color: white; border-radius: 12px; padding: 14px 18px; margin-top: 20px; font-weight: 900; cursor: pointer; }
.convert-button:hover { background: #1b1f25; }
.convert-button:disabled { opacity: .55; cursor: wait; }
.result { margin-top: 17px; padding: 17px; border: 1px solid #2b4539; background: rgba(24,39,31,.28); border-radius: 12px; }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.result h3 { margin: 4px 0 0; font-size: 14px; word-break: break-word; }
.result audio { width: 100%; margin-top: 15px; }
.history-panel { margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: #0d0f12; }
.history-head { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 13px; }
.history-head h3 { margin: 0; font-size: 13px; }
.history-list { display: grid; gap: 8px; }
.history-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 15px; align-items: center; padding: 11px 12px; border: 1px solid #1d2127; border-radius: 9px; background: #0a0c0f; }
.history-item strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
.history-item span { color: #656d78; font-size: 9px; margin-top: 4px; display: block; }

/* Admin */
.admin-wrap { width: min(1220px, calc(100% - 30px)); margin: 26px auto 60px; }
.admin-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 20px; }
.admin-heading h1 { margin: 6px 0 0; font-size: 28px; letter-spacing: -.04em; }
.admin-heading p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.admin-grid { display: grid; grid-template-columns: 380px 1fr; gap: 16px; align-items: start; }
.admin-card { border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(150deg, #14171c, #0b0d10); padding: 20px; }
.admin-card h2 { margin: 0 0 5px; font-size: 15px; }
.admin-card > p { margin: 0 0 18px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.admin-card .btn.primary { width: 100%; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
th { padding: 10px; text-align: left; color: #707782; text-transform: uppercase; font-size: 9px; letter-spacing: .08em; border-bottom: 1px solid var(--line); }
td { padding: 11px 10px; border-bottom: 1px solid #1d2127; vertical-align: middle; color: #b5bbc4; }
.badge { display: inline-flex; align-items: center; border: 1px solid #333943; border-radius: 99px; padding: 4px 7px; font-size: 9px; font-weight: 900; color: #aeb4bd; }
.badge.master { border-color: rgba(244,183,95,.35); color: #eac07f; }
.badge.active { border-color: rgba(56,199,147,.3); color: #72d6ae; }
.badge.inactive { border-color: rgba(255,111,118,.25); color: #ef8d93; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.split-section { margin-top: 16px; }
.admin-assets { display: grid; gap: 10px; margin-top: 14px; }
.admin-asset-row { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; gap: 11px; align-items: center; padding: 9px; border: 1px solid #20252b; border-radius: 10px; background: #090b0e; }
.admin-asset-thumb { width: 52px; height: 52px; border-radius: 8px; overflow: hidden; background: #181c22; display: grid; place-items: center; color: #606977; font-weight: 900; }
.admin-asset-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-asset-row strong { display: block; font-size: 11px; }
.admin-asset-row span { color: #68707b; font-size: 9px; margin-top: 3px; display: block; }
.file-input { width: 100%; color: #8e959f; font-size: 10px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 60px; }
  .hero-card { min-height: 310px; }
  .feature-grid, .asset-grid { grid-template-columns: 1fr 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 650px) {
  .nav-inner, .home-wrap { width: min(100% - 22px, 1180px); }
  .nav-actions .desktop-label { display: none; }
  .hero { padding: 48px 0 56px; gap: 34px; }
  .hero h1 { font-size: 50px; }
  .section { padding: 58px 0; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .feature-grid, .asset-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 28px; flex-direction: column; align-items: flex-start; }
  .footer { flex-direction: column; }
  .studio-shell, .admin-wrap { width: calc(100% - 18px); margin-top: 12px; }
  .converter-panel { padding: 18px; }
  .control-grid { grid-template-columns: 1fr; }
  .setting-row { grid-template-columns: 1fr; gap: 8px; }
  .result-head, .panel-head, .studio-header, .admin-heading { align-items: stretch; flex-direction: column; }
  .history-item { grid-template-columns: 1fr; }
  .admin-asset-row { grid-template-columns: 45px minmax(0,1fr); }
  .admin-asset-row .row-actions { grid-column: 1 / -1; }
}

/* KING STUDIO — Roblox-safe multi-part audio result */
.result-note { margin: 7px 0 0; color: #818995; font-size: 10px; line-height: 1.6; max-width: 820px; }
.result-files { display: grid; gap: 12px; margin-top: 15px; }
.result-file-card { padding: 14px; border: 1px solid #26332d; border-radius: 10px; background: rgba(7, 12, 10, .7); }
.result-file-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.result-file-info { min-width: 0; display: grid; gap: 5px; }
.result-file-info strong { font-size: 12px; word-break: break-word; }
.result-file-info small { color: #737d88; font-size: 9px; }
.part-badge { width: fit-content; padding: 3px 7px; border: 1px solid #2b4539; border-radius: 999px; color: #8ae2bd; font-size: 8px; letter-spacing: .08em; }
.result-file-card audio { width: 100%; margin-top: 12px; }
.result-download { flex: 0 0 auto; white-space: nowrap; }

@media (max-width: 700px) {
  .result-file-head { align-items: stretch; flex-direction: column; }
  .result-download { text-align: center; }
}

/* KING STUDIO v4 — multi-source audio */
.source-tabs { flex-wrap: wrap; }
.spotify-meta { margin: 9px 0 10px; padding: 9px 11px; border: 1px solid #252a31; border-radius: 9px; background: #0c0f13; color: #9da5af; font-size: 10px; }
.compact-drop { min-height: 78px; margin-top: 10px; }


/* KING STUDIO v6 — Spotify Smart Match */
.spotify-url-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.spotify-url-row .url-input { width: 100%; }
.spotify-search-btn { min-width: 104px; height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: #1ed760; color: #07120b; font-weight: 800; cursor: pointer; }
.spotify-search-btn:disabled { opacity: .65; cursor: wait; }
.spotify-preview-card { margin-top: 14px; min-height: 86px; display: flex; align-items: center; gap: 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 12px 14px; background: linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.018)); }
.spotify-preview-card.hidden { display: none; }
.spotify-preview-card img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: #17191b; }
.spotify-preview-text { min-width: 0; display: grid; gap: 3px; }
.spotify-preview-text span { color: #1ed760; font-size: 10px; letter-spacing: .12em; font-weight: 800; }
.spotify-preview-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font-size: 15px; }
.spotify-preview-text small { color: #8f98a5; font-size: 11px; }
@media (max-width: 640px) { .spotify-url-row { grid-template-columns: 1fr; } .spotify-search-btn { width: 100%; } }

/* KING STUDIO v7 — searchable cover preview for YouTube / SoundCloud / Spotify */
.media-url-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.media-url-row .url-input { width: 100%; }
.media-search-btn { min-width: 104px; height: 44px; padding: 0 20px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: #20242a; color: #fff; font-weight: 800; cursor: pointer; }
.media-search-btn:hover { background: #292e36; }
.media-search-btn:disabled { opacity: .65; cursor: wait; }
.spotify-search-btn { border: 0; background: #1ed760; color: #07120b; }
.spotify-search-btn:hover { background: #25e36a; }
.youtube-search-btn { background: #ff0033; border-color: #ff0033; }
.youtube-search-btn:hover { background: #e6002e; }
.soundcloud-search-btn { background: #ff5500; border-color: #ff5500; }
.soundcloud-search-btn:hover { background: #ea4e00; }
.source-meta { margin: 9px 0 10px; padding: 9px 11px; border: 1px solid #252a31; border-radius: 9px; background: #0c0f13; color: #9da5af; font-size: 10px; }
.media-preview-card { margin-top: 14px; min-height: 86px; display: flex; align-items: center; gap: 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 12px 14px; background: linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.018)); }
.media-preview-card.hidden { display: none; }
.media-preview-card img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; background: #17191b; flex: 0 0 auto; }
.media-preview-text { min-width: 0; display: grid; gap: 4px; }
.media-preview-text > span { font-size: 10px; letter-spacing: .12em; font-weight: 900; }
.media-preview-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font-size: 15px; }
.media-preview-text small { color: #8f98a5; font-size: 11px; }
.youtube-accent { color: #ff3355; }
.soundcloud-accent { color: #ff7a33; }
.spotify-accent { color: #1ed760; }
@media (max-width: 640px) {
  .media-url-row { grid-template-columns: 1fr; }
  .media-search-btn { width: 100%; }
  .media-preview-card img { width: 64px; height: 64px; }
}
