/* D Player — site web, style Apple TV */
:root {
  --bg: #0a0a0e;
  --text: #f5f5f7;
  --sub: rgba(235, 235, 245, .62);
  --glass: rgba(255, 255, 255, .06);
  --glass-2: rgba(255, 255, 255, .11);
  --line: rgba(255, 255, 255, .10);
  --red: #ff3b30;
  --green: #30d158;
  --radius: 22px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh; color: var(--text); background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; line-height: 1.5;
}
.halo { position: fixed; z-index: -1; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 10% 0%, rgba(88, 86, 214, .40) 0%, transparent 70%),
    radial-gradient(ellipse 45% 35% at 95% 10%, rgba(255, 59, 48, .25) 0%, transparent 70%),
    radial-gradient(ellipse 60% 45% at 70% 100%, rgba(10, 132, 255, .18) 0%, transparent 70%),
    linear-gradient(180deg, #121218 0%, #0a0a0e 60%, #050507 100%);
}
a { color: inherit; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }

/* En-tête */
header { position: sticky; top: 0; z-index: 10; padding: 16px 0; background: rgba(10, 10, 14, .72); -webkit-backdrop-filter: saturate(160%) blur(20px); backdrop-filter: saturate(160%) blur(20px); border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -.2px; }
.brand img { width: 44px; height: auto; }
nav.pills { display: flex; padding: 5px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
nav.pills::-webkit-scrollbar { display: none; }
nav.pills a { white-space: nowrap; padding: 8px 16px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 600; color: var(--sub); transition: background .2s, color .2s; }
nav.pills a:hover, nav.pills a.on { background: var(--glass-2); color: var(--text); }

/* Titre */
.hero { text-align: center; padding: 70px 0 40px; }
.hero img { width: 120px; filter: drop-shadow(0 18px 30px rgba(255, 59, 48, .35)); }
.hero h1 { font-size: clamp(34px, 6vw, 56px); font-weight: 700; letter-spacing: -1.2px; line-height: 1.1; margin-top: 22px; }
.hero p { color: var(--sub); font-size: 19px; margin-top: 14px; max-width: 620px; margin-left: auto; margin-right: auto; }

/* Cartes */
.card { background: var(--glass); border: 1px solid var(--line); border-radius: 28px; padding: 32px; margin-bottom: 24px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.card h2 { font-size: 26px; font-weight: 700; letter-spacing: -.4px; display: flex; align-items: center; gap: 12px; }
.card h2 .n { width: 32px; height: 32px; border-radius: 50%; background: var(--glass-2); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; flex: none; }
.card .hint { color: var(--sub); font-size: 16px; margin-top: 6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
@media (max-width: 680px) { .grid2 { grid-template-columns: 1fr; } .card { padding: 24px 20px; } }

label { display: block; font-size: 14px; font-weight: 600; color: var(--sub); margin-bottom: 8px; letter-spacing: .2px; }
input {
  width: 100%; height: 56px; border-radius: 16px; border: 1px solid var(--line); background: rgba(0, 0, 0, .35);
  color: var(--text); font-size: 18px; padding: 0 18px; font-family: inherit; outline: none; transition: border-color .2s, background .2s, box-shadow .2s;
}
input::placeholder { color: rgba(235, 235, 245, .3); }
input:focus { border-color: rgba(255, 255, 255, .5); background: rgba(0, 0, 0, .5); box-shadow: 0 0 0 4px rgba(255, 255, 255, .08); }
input.mono { font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; letter-spacing: 1px; }
.field + .field { margin-top: 16px; }

.seg { display: inline-flex; padding: 5px; border-radius: 999px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); margin-top: 24px; }
.seg button { border: none; background: none; color: var(--sub); font: inherit; font-size: 16px; font-weight: 600; padding: 10px 22px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.seg button.on { background: var(--text); color: #111; }
.form-body { margin-top: 22px; }
.hidden { display: none !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 30px; border: none; border-radius: 16px;
  background: var(--text); color: #111; font: inherit; font-size: 18px; font-weight: 700; cursor: pointer;
  transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s, opacity .2s;
}
.btn:hover { transform: scale(1.03); box-shadow: 0 16px 34px rgba(0, 0, 0, .45); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn.ghost { background: var(--glass-2); color: var(--text); }
.btn.danger { background: rgba(255, 59, 48, .16); color: #ff6961; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; align-items: center; }

/* Liste des playlists */
.pl-list { margin-top: 22px; }
.pl { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.pl + .pl { margin-top: 12px; }
.pl .ic { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex: none; }
.pl .ic.m3u { background: linear-gradient(135deg, #5e5ce6, #3a2fa8); }
.pl .ic.xtream { background: linear-gradient(135deg, #ff453a, #c41b2a); }
.pl .txt { flex: 1; min-width: 0; }
.pl .nm { font-weight: 700; font-size: 18px; }
.pl .dt { color: var(--sub); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl .del { border: none; background: rgba(255, 59, 48, .14); color: #ff6961; width: 42px; height: 42px; border-radius: 50%; font-size: 20px; cursor: pointer; flex: none; transition: background .2s; }
.pl .del:hover { background: rgba(255, 59, 48, .3); }
.empty { color: var(--sub); text-align: center; padding: 26px; }

/* Étapes d'aide */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { border-radius: 20px; padding: 24px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.step b { display: block; font-size: 40px; font-weight: 800; line-height: 1; background: linear-gradient(135deg, #ff453a, #5e5ce6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 19px; margin-top: 12px; }
.step p { color: var(--sub); font-size: 15px; margin-top: 6px; }

/* Message */
#toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 140%); padding: 16px 26px; border-radius: 18px; background: rgba(32, 32, 40, .97); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, .6); font-weight: 600; transition: transform .35s cubic-bezier(.2, .8, .2, 1); max-width: calc(100% - 40px); z-index: 20; display: flex; align-items: center; gap: 12px; }
#toast.show { transform: translate(-50%, 0); }
#toast.ok::before { content: "✓"; color: var(--green); font-size: 20px; }
#toast.err::before { content: "!"; color: #111; background: #ff6961; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }

footer { color: var(--sub); font-size: 14px; text-align: center; padding: 40px 0 60px; }
footer b { color: var(--text); display: block; margin-bottom: 6px; font-size: 15px; }
footer a { color: var(--sub); }

/* Page texte (confidentialité) */
.prose h2 { margin-top: 30px; font-size: 22px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--sub); margin-top: 10px; font-size: 16px; }
.prose ul { padding-left: 22px; }
.grid2 .field + .field { margin-top: 0; }

.mt16 { margin-top: 16px; }
.page-top { padding-top: 50px; }
label.check { display: flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 15px; font-weight: 500; color: var(--sub); cursor: pointer; }
label.check input { width: 20px; height: 20px; accent-color: #f5f5f7; }
.legal-note { color: var(--sub); font-size: 14px; margin-top: 18px; }
footer .lang { margin-top: 8px; }
.prose h3 { margin-top: 22px; font-size: 18px; }
.prose .lang-sep { border: none; border-top: 1px solid var(--line); margin: 40px 0; }
.prose .toc a { color: var(--text); }
.prose .updated { font-size: 14px; }
