@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Noto+Naskh+Arabic:wght@500;600&display=swap');

:root {
  color-scheme: light;
  --ink: #14231e;
  --muted: #68756f;
  --faint: #a2aaa6;
  --paper: #f7f4ec;
  --paper-strong: #fffdf8;
  --line: rgba(20, 35, 30, 0.1);
  --green-950: #0a251e;
  --green-900: #10362d;
  --green-800: #174b3e;
  --green-700: #246452;
  --green-100: #dfeae4;
  --green-50: #edf4ef;
  --gold: #e2a84b;
  --gold-soft: #f4d99f;
  --terracotta: #c86d4f;
  --blue: #6b8fa3;
  --shadow-sm: 0 8px 24px rgba(26, 48, 39, 0.08);
  --shadow-lg: 0 24px 64px rgba(12, 39, 31, 0.18);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --player-space: 94px;
  font-family: 'Manrope', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: #d9e2dc;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button, input { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(226, 168, 75, 0.55); outline-offset: 2px; }

.ambient { position: fixed; border-radius: 50%; filter: blur(100px); opacity: .4; pointer-events: none; z-index: -1; }
.ambient-one { width: 360px; height: 360px; background: #ffdb8f; left: -180px; top: -120px; }
.ambient-two { width: 440px; height: 440px; background: #7cb09c; right: -180px; bottom: -180px; }

.site-shell {
  width: min(1440px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  background: var(--paper);
  box-shadow: 0 0 80px rgba(12, 39, 31, 0.16);
}

.desktop-rail {
  min-height: 100vh;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 32px 24px 24px;
  display: flex;
  flex-direction: column;
  color: #eef5f1;
  background:
    radial-gradient(circle at 20% 0%, rgba(226, 168, 75, 0.13), transparent 30%),
    linear-gradient(165deg, #133f34 0%, #09261f 100%);
  overflow: hidden;
}

.desktop-rail::after {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 50%;
  right: -165px;
  top: 32%;
  box-shadow: 0 0 0 42px rgba(255,255,255,.025), 0 0 0 84px rgba(255,255,255,.018);
  pointer-events: none;
}

.brand { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 12px; border: 0; background: transparent; cursor: pointer; }
.brand-mark { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 14px; background: var(--gold); color: var(--green-950); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.brand-mark svg { width: 28px; height: 28px; fill: currentColor; }
.brand-mark circle { fill: var(--gold); stroke: currentColor; stroke-width: 2; }
.brand strong { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.04em; }
.brand small { color: rgba(238,245,241,.58); display: block; font-size: 9px; margin-top: 2px; letter-spacing: .03em; }

.rail-nav { display: grid; gap: 6px; margin-top: 48px; }
.nav-item { width: 100%; height: 48px; padding: 0 14px; display: flex; align-items: center; gap: 13px; border: 0; border-radius: 14px; background: transparent; color: rgba(238,245,241,.65); cursor: pointer; text-align: left; transition: .2s ease; position: relative; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-item.active { color: #fff; background: rgba(255,255,255,.1); box-shadow: inset 3px 0 var(--gold); }
.nav-item [data-icon] { width: 21px; height: 21px; }
.nav-count { margin-left: auto; min-width: 22px; height: 22px; display: grid; place-items: center; padding: 0 6px; border-radius: 20px; background: var(--gold); color: var(--green-950); font-size: 11px; font-weight: 800; }
.rail-spacer { flex: 1; }

.offline-card { position: relative; z-index: 1; padding: 18px; border: 1px solid rgba(255,255,255,.08); border-radius: 20px; background: rgba(255,255,255,.055); }
.offline-card-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; color: var(--gold-soft); background: rgba(226,168,75,.12); margin-bottom: 16px; }
.offline-card .eyebrow { color: var(--gold-soft); }
.offline-card strong { display: block; line-height: 1.35; font-size: 14px; }
.offline-card p:not(.eyebrow) { margin: 8px 0 15px; color: rgba(238,245,241,.58); font-size: 11px; line-height: 1.55; }
.offline-card .text-button { color: #fff; font-size: 11px; }

.profile-row { margin-top: 18px; padding: 10px 4px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; border: 0; background: transparent; color: #fff; cursor: pointer; text-align: left; }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--gold-soft); color: var(--green-950); font-weight: 800; font-size: 11px; }
.profile-row strong, .profile-row small { display: block; }
.profile-row strong { font-size: 11px; }
.profile-row small { font-size: 9px; color: rgba(238,245,241,.5); margin-top: 3px; }
.profile-row > [data-icon] { width: 18px; opacity: .6; }

.app-frame { min-width: 0; width: 100%; max-width: 1050px; margin: 0 auto; padding: 42px clamp(28px, 5vw, 72px) 0; position: relative; }
.mobile-header { display: none; }

.network-banner { min-height: 38px; margin-bottom: 24px; padding: 8px 12px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.5); font-size: 11px; }
.network-dot { width: 7px; height: 7px; border-radius: 50%; background: #45a878; box-shadow: 0 0 0 4px rgba(69,168,120,.12); }
.network-banner button { margin-left: 2px; padding: 3px 8px; border: 0; border-radius: 99px; color: var(--green-700); background: var(--green-50); font-size: 10px; font-weight: 700; cursor: pointer; }
.network-banner.offline { color: #875b19; border-color: rgba(226,168,75,.26); background: #fff8e8; }
.network-banner.offline .network-dot { background: var(--gold); box-shadow: 0 0 0 4px rgba(226,168,75,.14); }

.page { display: none; animation: page-in .35s ease both; }
.page.active { display: block; }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.welcome-row, .page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.eyebrow { margin: 0 0 7px; color: var(--green-700); font-size: 10px; line-height: 1.2; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(28px, 3.7vw, 42px); line-height: 1.08; letter-spacing: -.045em; }
h2 { letter-spacing: -.035em; }
.date-chip, .result-count { margin: 0; color: var(--muted); font-size: 11px; white-space: nowrap; }

.search-field { height: 54px; margin: 28px 0; padding: 0 17px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.66); box-shadow: 0 5px 20px rgba(20,35,30,.035); transition: .2s ease; }
.search-field:focus-within { background: #fff; border-color: rgba(36,100,82,.35); box-shadow: 0 8px 26px rgba(20,35,30,.08); }
.search-field [data-icon] { width: 20px; color: var(--muted); }
.search-field input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.search-field input::placeholder { color: var(--faint); }
.search-field kbd { padding: 4px 7px; border: 1px solid var(--line); border-radius: 7px; color: var(--faint); background: var(--paper-strong); font-family: inherit; font-size: 9px; }

.featured-card { min-height: 340px; position: relative; overflow: hidden; padding: clamp(28px, 5vw, 50px); border-radius: var(--radius-lg); color: #fff; background: linear-gradient(120deg, #154b3d 0%, #0d332a 62%, #09271f 100%); box-shadow: var(--shadow-lg); }
.featured-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(7,31,24,.05), transparent 58%, rgba(3,20,15,.22)); pointer-events: none; }
.featured-copy { width: min(510px, 72%); position: relative; z-index: 2; }
.featured-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 36px; }
.pill { min-height: 29px; padding: 0 11px; display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.pill.light { color: #fff; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.1); }
.pill [data-icon] { width: 13px; }
.duration-light { color: rgba(255,255,255,.5); font-size: 10px; }
.arabic-mark { margin: 0 0 5px; color: var(--gold-soft); font-family: 'Noto Naskh Arabic', Georgia, serif; font-size: 25px; line-height: 1.25; }
.featured-card h2 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 42px); line-height: 1.04; letter-spacing: -.05em; }
.featured-card p:not(.arabic-mark) { max-width: 420px; margin-bottom: 25px; color: rgba(255,255,255,.62); font-size: 12px; line-height: 1.65; }
.featured-actions { display: flex; align-items: center; gap: 10px; }
.featured-pattern { width: 48%; position: absolute; inset: 0 0 0 auto; opacity: .92; }
.featured-pattern::before { content: ''; position: absolute; width: 420px; height: 420px; right: -82px; top: -44px; border-radius: 50%; border: 1px solid rgba(244,217,159,.16); box-shadow: 0 0 0 48px rgba(244,217,159,.045), 0 0 0 96px rgba(244,217,159,.025); }
.orbit { position: absolute; border: 1px solid rgba(244,217,159,.22); border-radius: 50%; transform: rotate(-22deg); }
.orbit-one { width: 300px; height: 92px; right: -25px; top: 124px; }
.orbit-two { width: 310px; height: 105px; right: -22px; top: 122px; transform: rotate(48deg); }
.eight-star, .cover-star { width: 115px; height: 115px; position: absolute; right: 100px; top: 99px; background: var(--gold); clip-path: polygon(50% 0, 61% 30%, 85% 15%, 70% 39%, 100% 50%, 70% 61%, 85% 85%, 61% 70%, 50% 100%, 39% 70%, 15% 85%, 30% 61%, 0 50%, 30% 39%, 15% 15%, 39% 30%); filter: drop-shadow(0 16px 26px rgba(0,0,0,.18)); }
.eight-star::after, .cover-star::after { content: ''; position: absolute; inset: 39%; border-radius: 50%; background: var(--green-900); box-shadow: 0 0 0 5px var(--gold-soft); }

.primary-button { min-height: 46px; padding: 0 18px; border: 0; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; color: #fff; background: var(--green-800); font-size: 11px; font-weight: 800; cursor: pointer; box-shadow: 0 8px 20px rgba(16,54,45,.16); transition: transform .2s ease, background .2s ease; }
.primary-button:hover { transform: translateY(-1px); background: var(--green-700); }
.primary-button [data-icon] { width: 17px; }
.light-button { color: var(--green-950); background: #fff; box-shadow: none; }
.light-button:hover { color: var(--green-950); background: #f8f2e4; }
.round-button, .icon-button { border: 0; padding: 0; display: grid; place-items: center; cursor: pointer; }
.round-button { width: 46px; height: 46px; border-radius: 14px; }
.ghost-light { color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); }
.round-button [data-icon] { width: 18px; }
.icon-button { width: 40px; height: 40px; border-radius: 50%; color: var(--ink); background: transparent; }
.icon-button:hover { background: rgba(20,35,30,.06); }
.icon-button [data-icon] { width: 20px; height: 20px; }
.text-button { padding: 0; border: 0; color: var(--green-700); background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; }

.section-heading { margin: 42px 0 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-heading.compact { margin-top: 30px; }
.section-heading h2 { margin: 0; font-size: 20px; }

.track-list { display: grid; gap: 8px; }
.track-row { min-height: 74px; padding: 9px 12px 9px 9px; display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; align-items: center; gap: 12px; border: 1px solid transparent; border-radius: 17px; transition: .2s ease; }
.track-row:hover { background: rgba(255,255,255,.7); border-color: var(--line); box-shadow: var(--shadow-sm); }
.cover, .mini-cover { position: relative; overflow: hidden; flex: 0 0 auto; border-radius: 14px; background: var(--cover, var(--green-700)); }
.cover { width: 54px; height: 54px; }
.cover::before, .mini-cover::before { content: ''; position: absolute; width: 64%; height: 64%; left: 18%; top: 18%; border: 1px solid rgba(255,255,255,.42); border-radius: 50%; box-shadow: 0 0 0 7px rgba(255,255,255,.07); }
.cover::after, .mini-cover::after { content: ''; position: absolute; width: 13px; height: 13px; left: calc(50% - 6.5px); top: calc(50% - 6.5px); background: #f8e3b8; transform: rotate(45deg); border-radius: 2px; }
.track-copy { min-width: 0; }
.track-copy strong, .track-copy small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-copy strong { font-size: 12px; letter-spacing: -.015em; }
.track-copy small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.progress-line { width: min(130px, 14vw); height: 3px; border-radius: 3px; background: var(--green-100); overflow: hidden; }
.progress-line span { height: 100%; display: block; border-radius: inherit; background: var(--gold); }
.track-duration { color: var(--muted); font-size: 9px; }
.track-row .row-actions { display: flex; align-items: center; }
.track-row .icon-button { width: 34px; height: 34px; color: var(--muted); }
.track-row .icon-button:hover { color: var(--green-700); }
.track-row .play-row-button { color: #fff; background: var(--green-800); }
.track-row .play-row-button:hover { color: #fff; background: var(--green-700); }

.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.category-card { min-height: 125px; padding: 16px; position: relative; overflow: hidden; border: 0; border-radius: 19px; color: #fff; background: var(--cat-color); cursor: pointer; text-align: left; transition: transform .2s ease; }
.category-card:hover { transform: translateY(-2px); }
.category-card::after { content: ''; position: absolute; width: 90px; height: 90px; right: -28px; bottom: -35px; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; box-shadow: 0 0 0 16px rgba(255,255,255,.06); }
.category-card [data-icon] { width: 23px; margin-bottom: 26px; opacity: .9; }
.category-card strong, .category-card small { position: relative; z-index: 1; display: block; }
.category-card strong { font-size: 12px; }
.category-card small { margin-top: 4px; color: rgba(255,255,255,.65); font-size: 9px; }

.quote-card { margin-top: 38px; min-height: 130px; padding: 28px 70px 26px 34px; position: relative; overflow: hidden; border: 1px solid rgba(226,168,75,.2); border-radius: 24px; background: #f5ead4; }
.quote-card::after { content: ''; position: absolute; width: 140px; height: 140px; right: -40px; top: -50px; border: 1px solid rgba(158,106,33,.16); border-radius: 50%; box-shadow: 0 0 0 20px rgba(158,106,33,.05); }
.quote-mark { color: var(--gold); font-family: Georgia, serif; font-size: 48px; line-height: .6; }
.quote-card p { max-width: 610px; margin: 10px 0 12px; color: #4c493f; font-family: Georgia, serif; font-size: 16px; font-style: italic; line-height: 1.55; }
.quote-card small { color: #8a785b; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.page-heading { margin-bottom: 28px; }
.page-heading h1 { font-size: clamp(30px, 4vw, 44px); }
#page-explore .search-field { margin-top: 0; }
.filter-row { display: flex; gap: 8px; padding-bottom: 6px; margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip { min-height: 36px; padding: 0 14px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: rgba(255,255,255,.45); font-size: 10px; font-weight: 700; cursor: pointer; }
.filter-chip.active { border-color: var(--green-800); color: #fff; background: var(--green-800); }

.library-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.library-card { min-width: 0; padding: 10px 10px 16px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.62); transition: .2s ease; }
.library-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); background: #fff; }
.library-cover { aspect-ratio: 1.22; position: relative; overflow: hidden; border-radius: 16px; background: var(--cover); }
.library-cover::before { content: ''; position: absolute; width: 70%; aspect-ratio: 1; right: -12%; top: -12%; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; box-shadow: 0 0 0 18px rgba(255,255,255,.07), 0 0 0 36px rgba(255,255,255,.035); }
.library-cover::after { content: ''; width: 54px; height: 54px; position: absolute; left: calc(50% - 27px); top: calc(50% - 27px); background: rgba(248,227,184,.9); clip-path: polygon(50% 0, 61% 31%, 85% 15%, 69% 39%, 100% 50%, 69% 61%, 85% 85%, 61% 69%, 50% 100%, 39% 69%, 15% 85%, 31% 61%, 0 50%, 31% 39%, 15% 15%, 39% 31%); }
.library-cover .cover-status { position: absolute; z-index: 2; left: 10px; top: 10px; min-width: 26px; height: 26px; padding: 0 7px; display: flex; align-items: center; justify-content: center; gap: 4px; border-radius: 99px; color: #fff; background: rgba(5,25,19,.42); backdrop-filter: blur(8px); font-size: 8px; font-weight: 700; }
.library-cover .delete-personal { position: absolute; z-index: 3; right: 10px; top: 10px; width: 30px; height: 30px; color: #fff; background: rgba(5,25,19,.42); backdrop-filter: blur(8px); }
.library-cover .delete-personal:hover { color: #fff; background: rgba(120,36,28,.78); }
.library-cover .delete-personal [data-icon] { width: 14px; }
.cover-status [data-icon] { width: 12px; }
.library-play { width: 38px; height: 38px; position: absolute; z-index: 2; right: 10px; bottom: 10px; border: 0; border-radius: 50%; display: grid; place-items: center; color: var(--green-950); background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.18); cursor: pointer; }
.library-play [data-icon] { width: 16px; }
.library-card-copy { padding: 14px 4px 0; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: start; }
.library-card-copy strong, .library-card-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.library-card-copy strong { font-size: 12px; }
.library-card-copy small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.library-card-copy .icon-button { width: 32px; height: 32px; color: var(--muted); margin-top: -5px; }
.library-card-copy .icon-button.active { color: var(--terracotta); }

.storage-badge { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 15px; color: var(--green-700); background: var(--green-50); }
.storage-badge svg { width: 21px; }
.storage-card { margin: 6px 0 30px; padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.6); }
.storage-copy { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.storage-copy strong { font-size: 13px; }
.storage-copy span { color: var(--muted); font-size: 9px; }
.storage-track { height: 8px; margin: 19px 0 13px; overflow: hidden; border-radius: 99px; background: #e4e7e3; }
.storage-track span { display: block; width: 18%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green-700), var(--gold)); transition: width .4s ease; }
.storage-legend { display: flex; gap: 18px; color: var(--muted); font-size: 8px; }
.storage-legend span { display: inline-flex; align-items: center; gap: 6px; }
.storage-legend i { width: 7px; height: 7px; border-radius: 50%; }
.legend-used { background: var(--green-700); }
.legend-free { background: #d8dcd8; }
.import-card { margin-bottom: 30px; padding: 20px; position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 17px; border-radius: 22px; color: #fff; background: linear-gradient(125deg, var(--green-800), var(--green-950)); box-shadow: var(--shadow-sm); }
.import-card::after { content: ''; position: absolute; width: 150px; height: 150px; right: -65px; top: -70px; border: 1px solid rgba(244,217,159,.2); border-radius: 50%; box-shadow: 0 0 0 24px rgba(244,217,159,.04); pointer-events: none; }
.import-icon { width: 48px; height: 48px; position: relative; z-index: 1; display: grid; place-items: center; border-radius: 15px; color: var(--gold-soft); background: rgba(255,255,255,.09); }
.import-icon svg { width: 22px; }
.import-copy { position: relative; z-index: 1; }
.import-copy .eyebrow { color: var(--gold-soft); }
.import-copy h2 { margin: 0 0 5px; font-size: 16px; }
.import-copy p:not(.eyebrow) { max-width: 520px; margin: 0; color: rgba(255,255,255,.58); font-size: 9px; line-height: 1.55; }
.import-button { position: relative; z-index: 1; color: var(--green-950); background: var(--gold); box-shadow: none; white-space: nowrap; }
.import-button:hover { color: var(--green-950); background: var(--gold-soft); }
.download-list { display: grid; gap: 10px; }
.download-row { min-height: 86px; padding: 11px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 13px; align-items: center; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.52); }
.download-row .cover { width: 62px; height: 62px; }
.download-meta { margin-top: 7px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 8px; }
.download-meta span { display: inline-flex; align-items: center; gap: 4px; }
.download-meta [data-icon] { width: 11px; color: var(--green-700); }
.download-row .row-actions { display: flex; align-items: center; }

.empty-state { padding: 70px 24px; text-align: center; }
.empty-icon { width: 64px; height: 64px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 20px; color: var(--green-700); background: var(--green-50); }
.empty-icon svg { width: 28px; }
.empty-state h2 { margin-bottom: 8px; font-size: 20px; }
.empty-state p { margin: 0 auto 20px; max-width: 350px; color: var(--muted); font-size: 11px; line-height: 1.6; }

.youtube-add-card { margin: 6px 0 30px; padding: 24px; display: grid; grid-template-columns: minmax(230px,.8fr) minmax(360px,1.2fr); gap: 28px; align-items: center; border: 1px solid rgba(23,75,62,.14); border-radius: 24px; background: linear-gradient(135deg, rgba(255,255,255,.8), rgba(238,244,239,.82)); box-shadow: var(--shadow-sm); }
.youtube-add-intro { display: flex; align-items: flex-start; gap: 15px; }
.youtube-add-icon { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border-radius: 15px; color: #fff; background: #aa4237; box-shadow: 0 10px 24px rgba(170,66,55,.2); }
.youtube-add-icon svg { width: 21px; }
.youtube-add-intro h2 { margin: 0 0 6px; font-size: 17px; }
.youtube-add-intro p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.youtube-add-form { display: grid; grid-template-columns: .8fr 1.2fr auto; gap: 10px; align-items: end; }
.youtube-add-form label { min-width: 0; display: grid; gap: 6px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.youtube-add-form input { width: 100%; height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; outline: none; color: var(--ink); background: rgba(255,255,255,.86); font: inherit; font-size: 10px; text-transform: none; }
.youtube-add-form input:focus { border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(39,99,82,.1); }
.youtube-add-form .primary-button { height: 44px; white-space: nowrap; }
.form-message { grid-column: 1 / -1; margin: 0; color: #a34034; font-size: 9px; font-weight: 700; }

.page-bottom-space { height: 140px; }

.player-dock { height: 72px; position: fixed; z-index: 40; left: calc(50% - 720px + 272px + clamp(28px, 5vw, 72px)); right: max(calc((100vw - 1440px) / 2 + clamp(28px, 5vw, 72px)), clamp(28px, 5vw, 72px)); bottom: 20px; padding: 8px 10px; display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 7px; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; color: #fff; background: rgba(10,37,30,.94); backdrop-filter: blur(20px); box-shadow: 0 18px 50px rgba(5,25,19,.28); }
.player-dock[hidden] { display: none; }
.player-track { min-width: 0; height: 100%; position: relative; padding: 0; border: 0; display: flex; align-items: center; gap: 11px; color: inherit; background: transparent; cursor: pointer; text-align: left; }
.mini-cover { width: 48px; height: 48px; border-radius: 12px; }
.player-track-copy { min-width: 0; }
.player-track-copy strong, .player-track-copy small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-track-copy strong { font-size: 11px; }
.player-track-copy small { margin-top: 4px; color: rgba(255,255,255,.52); font-size: 8px; }
.mini-progress { height: 2px; position: absolute; left: 66px; right: 98px; bottom: 8px; overflow: hidden; border-radius: 3px; background: rgba(255,255,255,.12); }
.mini-progress span { display: block; width: 0; height: 100%; background: var(--gold); transition: width .2s linear; }
.player-action { color: rgba(255,255,255,.65); }
.player-action:hover { color: #fff; background: rgba(255,255,255,.08); }
.player-action > svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.player-play-button { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; color: var(--green-950); background: var(--gold); cursor: pointer; }
.player-play-button [data-icon] { width: 17px; }
.player-play-button > svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.bottom-nav { display: none; }

.sheet-backdrop { position: fixed; z-index: 70; inset: 0; background: rgba(5,20,16,.52); backdrop-filter: blur(6px); animation: fade-in .25s ease; }
.sheet-backdrop[hidden], .now-playing-sheet[hidden] { display: none; }
.now-playing-sheet { width: min(460px, calc(100% - 24px)); max-height: calc(100vh - 24px); padding: 10px 32px 28px; position: fixed; z-index: 80; left: 50%; top: 50%; transform: translate(-50%, -50%); overflow-y: auto; border-radius: 30px; background: var(--paper-strong); box-shadow: 0 30px 90px rgba(5,20,16,.38); animation: sheet-in .32s cubic-bezier(.2,.8,.2,1); }
@keyframes fade-in { from { opacity: 0; } }
@keyframes sheet-in { from { opacity: 0; transform: translate(-50%, -46%); } }
.sheet-handle { width: 40px; height: 4px; margin: 0 auto 6px; border-radius: 9px; background: #d9ddd9; }
.sheet-topbar { height: 44px; display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; text-align: center; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.large-cover { aspect-ratio: 1; max-height: 330px; margin: 18px auto 25px; position: relative; overflow: hidden; display: grid; place-items: center; border-radius: 26px; color: #fff; background: var(--cover, var(--green-800)); box-shadow: 0 22px 42px color-mix(in srgb, var(--cover, var(--green-800)) 28%, transparent); }
.large-cover::before { content: ''; width: 85%; height: 85%; position: absolute; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; box-shadow: 0 0 0 28px rgba(255,255,255,.045), 0 0 0 56px rgba(255,255,255,.025); }
.large-cover span { position: relative; z-index: 3; font-family: 'Noto Naskh Arabic', Georgia, serif; font-size: 28px; color: rgba(255,255,255,.92); }
.cover-orbit { width: 84%; height: 30%; position: absolute; border: 1px solid rgba(248,227,184,.45); border-radius: 50%; transform: rotate(-28deg); }
.large-cover .cover-star { width: 105px; height: 105px; left: calc(50% - 52px); top: calc(50% - 52px); right: auto; opacity: .9; }
.sheet-title-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px; align-items: center; }
.sheet-title-row h2 { margin: 0; font-size: 21px; }
.sheet-title-row p { margin: 6px 0 0; color: var(--muted); font-size: 10px; }
.favorite-action.active { color: var(--terracotta); background: rgba(200,109,79,.1); }
.scrubber-wrap { margin-top: 24px; }
#playerScrubber { width: 100%; height: 4px; margin: 0; display: block; accent-color: var(--green-700); cursor: pointer; }
.time-row { margin-top: 8px; display: flex; justify-content: space-between; color: var(--muted); font-size: 8px; font-variant-numeric: tabular-nums; }
.player-controls { margin: 18px 0; display: grid; grid-template-columns: 1fr 1fr auto 1fr 1fr; align-items: center; justify-items: center; gap: 6px; }
.sheet-play-button { width: 62px; height: 62px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--green-800); box-shadow: 0 12px 26px rgba(16,54,45,.25); cursor: pointer; }
.sheet-play-button [data-icon] { width: 22px; }
.sheet-play-button > svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.player-controls .icon-button { position: relative; }
.skip-label { position: absolute; z-index: 2; font-size: 6px; font-weight: 800; }
.player-controls [data-icon] { width: 23px; height: 23px; }
.sheet-actions { padding: 16px 0; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); }
.sheet-actions button { border: 0; display: grid; justify-items: center; gap: 7px; color: var(--muted); background: transparent; font-size: 8px; cursor: pointer; }
.sheet-actions [data-icon] { width: 18px; }
.prototype-note { margin-top: 3px; padding: 10px 12px; display: flex; align-items: flex-start; gap: 8px; border-radius: 12px; color: #7d6745; background: #fbf2df; font-size: 8px; line-height: 1.5; }
.prototype-note [data-icon] { width: 14px; flex: 0 0 14px; }

.youtube-backdrop { position: fixed; z-index: 70; inset: 0; background: rgba(5,20,16,.72); backdrop-filter: blur(8px); animation: fade-in .25s ease; }
.youtube-backdrop[hidden], .youtube-sheet[hidden] { display: none; }
.youtube-sheet { width: min(920px, calc(100% - 36px)); max-height: calc(100vh - 36px); padding: 24px; position: fixed; z-index: 85; left: 50%; top: 50%; transform: translate(-50%, -50%); overflow-y: auto; border-radius: 28px; background: var(--paper-strong); box-shadow: 0 34px 100px rgba(3,16,12,.48); animation: sheet-in .3s cubic-bezier(.2,.8,.2,1); }
.youtube-topbar { min-height: 58px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.youtube-topbar h2 { margin: 0; font-size: 20px; }
.youtube-frame-wrap { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 20px; background: #07120f; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.youtube-frame-wrap iframe { width: 100%; height: 100%; display: block; border: 0; }
.youtube-footer { padding: 16px 4px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.youtube-footer p { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 9px; }
.youtube-footer [data-icon] { width: 15px; color: var(--green-700); }
.youtube-footer a { color: var(--green-700); font-size: 10px; font-weight: 800; text-decoration: none; white-space: nowrap; }

.toast-region { position: fixed; z-index: 100; right: 24px; bottom: 106px; display: grid; gap: 8px; pointer-events: none; }
.toast { min-width: 250px; max-width: 340px; padding: 12px 15px; display: flex; align-items: center; gap: 10px; border-radius: 14px; color: #fff; background: var(--green-950); box-shadow: var(--shadow-lg); font-size: 10px; animation: toast-in .3s ease both; }
.toast [data-icon] { width: 16px; color: var(--gold-soft); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

[data-icon] { display: inline-grid; place-items: center; flex: 0 0 auto; }
[data-icon] svg { width: 100%; height: 100%; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 920px) {
  :root { --player-space: 150px; }
  body { background: var(--paper); }
  .site-shell { display: block; box-shadow: none; }
  .desktop-rail { display: none; }
  .app-frame { max-width: 760px; padding: 20px clamp(18px, 5vw, 36px) 0; }
  .mobile-header { height: 52px; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }
  .mobile-header .brand strong { font-size: 19px; }
  .mobile-header .brand-mark { width: 38px; height: 38px; flex-basis: 38px; border-radius: 12px; }
  .profile-button { width: 38px; height: 38px; }
  .profile-button .avatar { width: 34px; height: 34px; }
  .network-banner { margin: 4px 0 24px; }
  .featured-copy { width: 72%; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .library-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .player-dock { left: 16px; right: 16px; bottom: 78px; }
  .bottom-nav { height: 68px; padding: 7px max(12px, env(safe-area-inset-right)) max(7px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); background: rgba(255,253,248,.94); backdrop-filter: blur(20px); }
  .bottom-nav-item { position: relative; border: 0; display: grid; place-items: center; align-content: center; gap: 3px; color: var(--faint); background: transparent; font-size: 8px; font-weight: 700; cursor: pointer; }
  .bottom-nav-item [data-icon] { width: 20px; height: 20px; }
  .bottom-nav-item.active { color: var(--green-700); }
  .bottom-nav-item i { width: 6px; height: 6px; position: absolute; top: 7px; left: calc(50% + 7px); border: 1px solid #fff; border-radius: 50%; background: var(--gold); }
  .toast-region { left: 18px; right: 18px; bottom: 160px; }
  .toast { min-width: 0; max-width: none; }
  .youtube-add-card { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .app-frame { padding-left: 18px; padding-right: 18px; }
  .network-banner { width: 100%; justify-content: center; }
  .network-banner button { margin-left: auto; }
  .welcome-row { align-items: flex-start; }
  .welcome-row h1 { max-width: 290px; font-size: 30px; }
  .date-chip { display: none; }
  .search-field { margin: 22px 0; }
  .search-field kbd { display: none; }
  .featured-card { min-height: 410px; padding: 28px 24px; display: flex; align-items: flex-end; }
  .featured-copy { width: 100%; }
  .featured-meta { margin-bottom: 112px; }
  .featured-pattern { width: 72%; height: 210px; bottom: auto; opacity: .72; }
  .featured-pattern::before { width: 280px; height: 280px; right: -82px; top: -54px; }
  .orbit-one { width: 210px; height: 62px; right: -20px; top: 63px; }
  .orbit-two { width: 220px; height: 68px; right: -20px; top: 63px; }
  .eight-star { width: 78px; height: 78px; right: 55px; top: 55px; }
  .featured-card h2 { font-size: 32px; }
  .featured-card p:not(.arabic-mark) { max-width: 330px; }
  .track-row { grid-template-columns: auto minmax(0,1fr) auto; }
  .track-duration { display: none; }
  .progress-line { width: 85px; }
  .category-heading { margin-top: 36px; }
  .category-grid { gap: 10px; }
  .category-card { min-height: 116px; }
  .quote-card { padding: 26px 54px 24px 24px; }
  .quote-card p { font-size: 14px; }
  .page-heading { align-items: center; }
  .result-count { display: none; }
  .library-grid { gap: 10px; }
  .library-card { padding: 8px 8px 13px; border-radius: 18px; }
  .library-cover { border-radius: 13px; }
  .library-card-copy { padding-top: 11px; }
  .library-card-copy strong { font-size: 10px; }
  .youtube-add-card { padding: 20px; gap: 20px; }
  .youtube-add-form { grid-template-columns: 1fr; }
  .youtube-add-form .primary-button { width: 100%; }
  .storage-copy { align-items: flex-start; flex-direction: column; gap: 4px; }
  .import-card { grid-template-columns: auto minmax(0,1fr); align-items: start; }
  .import-button { grid-column: 1 / -1; width: 100%; }
  .now-playing-sheet { width: 100%; max-height: calc(100vh - 12px); padding: 10px 24px max(22px, env(safe-area-inset-bottom)); left: 0; right: 0; top: auto; bottom: 0; transform: none; border-radius: 28px 28px 0 0; animation: mobile-sheet-in .35s cubic-bezier(.2,.8,.2,1); }
  .youtube-sheet { width: 100%; max-height: calc(100vh - 12px); padding: 20px 18px max(22px, env(safe-area-inset-bottom)); left: 0; right: 0; top: auto; bottom: 0; transform: none; border-radius: 28px 28px 0 0; animation: mobile-sheet-in .35s cubic-bezier(.2,.8,.2,1); }
  .youtube-footer { align-items: flex-start; flex-direction: column; gap: 12px; }
  @keyframes mobile-sheet-in { from { transform: translateY(100%); } }
  .large-cover { max-height: min(42vh, 330px); }
}

@media (max-width: 390px) {
  .featured-actions .primary-button { padding: 0 14px; }
  .featured-meta { margin-bottom: 108px; }
  .category-card { padding: 14px; }
  .library-grid { grid-template-columns: 1fr 1fr; }
  .player-action { display: none; }
  .player-dock { grid-template-columns: minmax(0,1fr) auto; }
  .mini-progress { right: 62px; }
}

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

/* Compte utilisateur */
.account-sheet { width: min(460px, calc(100% - 36px)); }
.account-copy { margin: 0 0 16px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.account-tabs { margin-bottom: 16px; padding: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: 14px; background: var(--green-50); }
.account-tabs button { height: 36px; border: 0; border-radius: 11px; color: var(--muted); background: transparent; font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; }
.account-tabs button.active { color: var(--green-900); background: #fff; box-shadow: var(--shadow-sm); }
.account-form { display: grid; gap: 12px; }
.account-form label { display: grid; gap: 6px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.account-form label[hidden] { display: none; }
.account-form input { width: 100%; height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; outline: none; color: var(--ink); background: rgba(255,255,255,.86); font: inherit; font-size: 11px; text-transform: none; }
.account-form input:focus { border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(39,99,82,.1); }
.account-form .primary-button { width: 100%; height: 46px; }
.account-form .primary-button:disabled { opacity: .6; cursor: wait; }
.account-profile { margin-bottom: 16px; display: flex; align-items: center; gap: 14px; }
.account-profile strong, .account-profile small { display: block; }
.account-profile small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.avatar.large { width: 52px; height: 52px; font-size: 15px; }
.account-actions { display: grid; gap: 14px; justify-items: center; }
.account-actions .primary-button { width: 100%; }
.account-actions .text-button { color: #a34034; }

/* Direction visuelle blanche, sobre et fonctionnelle */
:root { --ink:#111; --muted:#696969; --faint:#a3a3a3; --paper:#fff; --paper-strong:#fff; --line:#e8e8e8; --green-950:#111; --green-900:#1b1b1b; --green-800:#222; --green-700:#2f6655; --green-100:#ededed; --green-50:#f5f5f5; --gold:#111; --gold-soft:#f2f2f2; --terracotta:#a83d30; --shadow-sm:0 1px 3px rgba(0,0,0,.04); --shadow-lg:0 16px 44px rgba(0,0,0,.12); }
body { background:#fff; }
.ambient { display:none; }
.site-shell { max-width:none; background:#fff; box-shadow:none; }
.desktop-rail { color:var(--ink); background:#fff; border-right:1px solid var(--line); }
.desktop-rail::after { display:none; }
.brand-mark { border-radius:50%; color:#fff; background:#111; box-shadow:none; }
.brand-mark circle { fill:#111; }
.brand small, .profile-row small { color:var(--muted); }
.rail-nav { gap:2px; }
.nav-item { border-radius:10px; color:var(--muted); }
.nav-item:hover { color:var(--ink); background:#f7f7f7; }
.nav-item.active { color:var(--ink); background:#f2f2f2; box-shadow:none; font-weight:700; }
.nav-count { color:#fff; background:#111; }
.offline-card { border-color:var(--line); border-radius:14px; background:#fafafa; }
.offline-card-icon { color:var(--green-700); background:#edf3f0; }
.offline-card .eyebrow { color:var(--green-700); }
.offline-card p:not(.eyebrow) { color:var(--muted); }
.offline-card .text-button { color:var(--ink); }
.profile-row { color:var(--ink); border-top:1px solid var(--line); }
.avatar { color:#fff; background:#111; }
.app-frame { max-width:1120px; }
.network-banner { border:0; border-radius:8px; background:#f7f7f7; }
.network-banner button { color:var(--ink); background:#ececec; }
.eyebrow { color:var(--muted); letter-spacing:.09em; }
h1 { font-weight:600; letter-spacing:-.04em; }
h2 { font-weight:600; }
.search-field { border-radius:12px; background:#fafafa; box-shadow:none; }
.search-field:focus-within { border-color:#bdbdbd; box-shadow:0 0 0 3px rgba(0,0,0,.035); }
.featured-card { min-height:310px; color:var(--ink); background:#f4f4f2; border:1px solid #eeeeeb; border-radius:18px; box-shadow:none; }
.featured-card::before, .featured-pattern { display:none; }
.featured-copy { width:min(620px,82%); }
.featured-card p:not(.arabic-mark) { color:var(--muted); }
.arabic-mark { color:var(--green-700); }
.pill.light { color:var(--ink); background:#fff; border:1px solid var(--line); }
.duration-light { color:var(--muted); }
.light-button { color:#fff; background:#111; }
.light-button:hover { color:#fff; background:#333; }
.track-row { border-bottom:1px solid var(--line); border-radius:0; }
.track-row:hover { border-color:var(--line); background:#fafafa; box-shadow:none; }
.cover, .mini-cover { border-radius:10px; filter:saturate(.55); }
.cover::before, .mini-cover::before, .cover::after, .mini-cover::after { display:none; }
.category-card { min-height:105px; border:1px solid var(--line); color:var(--ink); background:#fff !important; border-radius:14px; }
.category-card:hover { transform:none; background:#fafafa !important; }
.category-card::after { display:none; }
.category-card [data-icon] { margin-bottom:22px; color:var(--green-700); }
.category-card small { color:var(--muted); }
.quote-card { border-color:var(--line); border-radius:16px; background:#fafafa; }
.quote-card::after { display:none; }
.quote-mark { color:#bbb; }
.filter-chip { background:#fff; }
.filter-chip.active { color:#fff; border-color:#111; background:#111; }
.library-grid { gap:14px; }
.library-card { border-radius:16px; background:#fff; box-shadow:none; }
.library-card:hover { transform:none; box-shadow:0 6px 18px rgba(0,0,0,.055); }
.library-cover { border-radius:11px; filter:saturate(.45); }
.library-cover::before, .library-cover::after { opacity:.28; }
.storage-card, .download-row { background:#fff; box-shadow:none; }
.import-card { color:var(--ink); border:1px solid var(--line); background:#fafafa; box-shadow:none; }
.import-card::after { display:none; }
.import-icon { color:var(--green-700); background:#edf3f0; }
.import-copy .eyebrow { color:var(--muted); }
.import-copy p:not(.eyebrow) { color:var(--muted); }
.import-button, .primary-button { color:#fff; background:#111; box-shadow:none; }
.import-button:hover, .primary-button:hover { color:#fff; background:#333; }
.primary-button { border-radius:10px; }
.youtube-add-card { border-color:var(--line); border-radius:16px; background:#fafafa; box-shadow:none; }
.youtube-add-icon { border-radius:12px; box-shadow:none; }
.player-dock { border:1px solid #222; border-radius:14px; background:rgba(17,17,17,.96); box-shadow:0 10px 30px rgba(0,0,0,.14); }
.player-play-button { color:#111; background:#fff; }
.now-playing-sheet, .youtube-sheet { border:1px solid var(--line); border-radius:20px; box-shadow:var(--shadow-lg); }
.sheet-backdrop, .youtube-backdrop { background:rgba(0,0,0,.35); backdrop-filter:blur(3px); }
.large-cover { border-radius:16px; filter:saturate(.5); box-shadow:none; }
.sheet-play-button { background:#111; box-shadow:none; }
.prototype-note { color:var(--muted); background:#f5f5f5; }
.youtube-frame-wrap { border-radius:12px; }
.toast { border-radius:10px; background:#111; box-shadow:0 8px 24px rgba(0,0,0,.14); }
.toast [data-icon] { color:#fff; }
.account-tabs { background:#f2f2f2; }
.account-tabs button.active { color:#111; box-shadow:none; }
@media (max-width:920px) { .bottom-nav { border-color:var(--line); background:rgba(255,255,255,.96); } }
@media (max-width:620px) { .featured-card { min-height:330px; padding:26px 22px; } .featured-copy { width:100%; } .featured-meta { margin-bottom:82px; } .featured-card h2 { font-size:27px; } .library-card { border-radius:13px; } .youtube-sheet, .now-playing-sheet { border-radius:20px 20px 0 0; } }

.category-grid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); }
.user-collection-card, .add-collection-card { min-height:112px; }
.add-collection-card { border-style:dashed; color:var(--muted); }
.add-collection-card [data-icon] { width:27px; height:27px; color:var(--ink); }
.collection-sheet { width:min(420px, calc(100% - 36px)); }
.collection-sheet .account-form { padding-top:10px; }
@media (max-width:620px) { .category-grid { grid-template-columns:1fr 1fr; } .collection-sheet { width:100%; left:0; right:0; top:auto; bottom:0; transform:none; border-radius:20px 20px 0 0; } }
