@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #080d16;
  --ink-2: #0e1520;
  --ink-3: #16202e;
  --ink-4: #1f2a3a;
  --line: rgba(170, 182, 203, 0.14);
  --line-2: rgba(170, 182, 203, 0.26);
  --text: #f7f9ff;
  --text-2: #d5dce9;
  --text-3: #aab6cb;
  --text-4: #8492a8;
  --accent: #8b5cf6;
  --accent-hi: #a78bfa;
  --accent-soft: rgba(139, 92, 246, 0.14);
  --accent-ink: #ffffff;
  --green: #25d366;
  --green-soft: rgba(37, 211, 102, 0.14);
  --red: #e5484d;
  --red-soft: rgba(229, 72, 77, 0.15);
  --heading: "Outfit", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 0.8rem;
  --radius-lg: 1.2rem;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(60rem 30rem at 50% -12rem, rgba(139, 92, 246, 0.1), transparent 70%),
    var(--ink);
  background-attachment: fixed;
  color: var(--text);
  font: 500 15px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

[hidden] {
  display: none !important;
}

button,
input {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--heading);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p {
  margin: 0;
}

/* --------------------------------------------------------------- üst */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.1rem 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--heading);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand img {
  border-radius: 0.55rem;
}

.brand b {
  background: linear-gradient(100deg, #b98cff, #6f8dff 55%, #3fd6e6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.langs {
  display: flex;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ink-2);
}

.langs button {
  min-width: 2.6rem;
  min-height: 2rem;
  padding: 0 0.6rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text-4);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.langs button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}

/* ------------------------------------------------------------- düzen */

.app {
  flex: 1;
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 0.5rem 1rem 2.5rem;
}

.foot {
  padding: 1.2rem 1rem 1.6rem;
  text-align: center;
  color: var(--text-4);
  font-size: 0.82rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(14, 21, 32, 0.86);
  padding: 1.4rem;
}

.intro {
  text-align: center;
  margin: 1.4rem 0 1.6rem;
}

.intro h1 {
  font-size: clamp(1.7rem, 6vw, 2.3rem);
}

.intro p {
  margin: 0.6rem auto 0;
  max-width: 30rem;
  color: var(--text-3);
}

.login {
  max-width: 26rem;
  margin: 0 auto;
}

/* ------------------------------------------------------------- form */

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.field label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-3);
}

.field .help {
  font-size: 0.8rem;
  color: var(--text-4);
}

.input {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--ink);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.input.code {
  font-family: var(--heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}

.with-toggle {
  position: relative;
}

.with-toggle .input {
  padding-right: 4.6rem;
}

.with-toggle .reveal {
  position: absolute;
  top: 50%;
  right: 0.4rem;
  transform: translateY(-50%);
  min-height: 2.2rem;
  padding: 0 0.7rem;
  border: 0;
  border-radius: 0.55rem;
  background: var(--ink-3);
  color: var(--text-3);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

/* -------------------------------------------------------------- düğme */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0 1.3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ink-3);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s var(--ease), transform 0.15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  background: var(--ink-4);
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 2px;
}

.btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn.primary:hover {
  background: var(--accent-hi);
}

.btn.ghost {
  background: none;
  border-color: var(--line-2);
}

.btn.danger {
  background: var(--red-soft);
  color: #ff9a9d;
}

.btn.small {
  min-height: 2.4rem;
  padding: 0 1rem;
  font-size: 0.86rem;
}

.btn.wide {
  width: 100%;
}

.btn[aria-busy="true"] {
  opacity: 0.7;
  pointer-events: none;
}

.spinner {
  width: 1.05rem;
  height: 1.05rem;
  border: 2.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* ------------------------------------------------------------- bildirim */

.notice {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius);
  background: var(--ink-3);
  color: var(--text-2);
  font-size: 0.9rem;
}

.notice.error {
  background: var(--red-soft);
  color: #ffb4b6;
}

.notice.ok {
  background: var(--green-soft);
  color: #9be8b9;
}

.steps {
  display: grid;
  gap: 0.7rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-3);
  font-size: 0.9rem;
}

.steps li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.steps .n {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-hi);
  font-size: 0.8rem;
  font-weight: 800;
}

/* ------------------------------------------------------------ cihaz */

.device {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0.6rem 0 1.4rem;
}

.device .label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.device .mac {
  font-family: var(--heading);
  font-size: clamp(1.4rem, 6vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.device .meta {
  color: var(--text-3);
  font-size: 0.86rem;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.section-head h2 {
  font-size: 1.25rem;
}

.count {
  color: var(--text-4);
  font-size: 0.86rem;
  font-weight: 700;
}

/* ---------------------------------------------------------- playlist */

.list {
  display: grid;
  gap: 0.8rem;
}

.pl {
  display: grid;
  gap: 0.9rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(14, 21, 32, 0.86);
}

.pl.active {
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.25) inset;
}

.pl-top {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  justify-content: space-between;
}

.pl-name {
  font-family: var(--heading);
  font-size: 1.12rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.pl-detail {
  margin-top: 0.2rem;
  color: var(--text-3);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.chips {
  display: flex;
  gap: 0.4rem;
  flex: none;
}

.chip {
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: var(--ink-3);
  color: var(--text-3);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chip.on {
  background: var(--accent);
  color: var(--accent-ink);
}

.pl-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.empty {
  padding: 2rem 1.2rem;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--text-3);
}

.empty strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--text);
  font-family: var(--heading);
  font-size: 1.1rem;
}

.bottom-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.8rem;
}

/* ------------------------------------------------------------- pencere */

.sheet-wrap {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(4, 7, 12, 0.72);
  animation: fade 0.18s var(--ease);
}

.sheet {
  width: 100%;
  max-width: 34rem;
  max-height: 92dvh;
  overflow-y: auto;
  padding: 1.4rem 1.2rem calc(1.4rem + env(safe-area-inset-bottom));
  border: 1px solid var(--line);
  border-radius: 1.4rem 1.4rem 0 0;
  background: var(--ink-2);
  animation: rise 0.22s var(--ease);
}

.sheet h2 {
  font-size: 1.35rem;
  margin-bottom: 1.1rem;
}

.sheet-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.sheet-actions .btn {
  flex: 1;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  margin-bottom: 1.1rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: var(--ink);
  border: 1px solid var(--line);
}

.segmented button {
  min-height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text-3);
  font-weight: 800;
  cursor: pointer;
}

.segmented button[aria-pressed="true"] {
  background: var(--ink-4);
  color: var(--text);
}

/* Dar ekranda etiketler adın üstünde: yanında adres satırını kötü yerden kırıyordu. */
@media (max-width: 520px) {
  .pl-top {
    flex-direction: column-reverse;
    gap: 0.55rem;
  }
}

@media (min-width: 640px) {
  .sheet-wrap {
    align-items: center;
    padding: 1.5rem;
  }

  .sheet {
    border-radius: 1.4rem;
    padding: 1.8rem;
  }

  .card {
    padding: 1.8rem;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

@keyframes rise {
  from {
    transform: translateY(1.5rem);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.foot a {
  color: var(--text-3);
}

/* Gizlilik politikası (privacy.html). */
.legal {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1rem 1.2rem 3rem;
  line-height: 1.6;
  color: var(--text-2);
}

.legal h1 {
  font-family: var(--heading);
  font-size: 2rem;
  color: var(--text);
}

.legal h2 {
  margin-top: 1.8rem;
  font-family: var(--heading);
  font-size: 1.15rem;
  color: var(--text);
}

.legal ul {
  padding-left: 1.2rem;
}

.legal .muted {
  color: var(--text-4);
}

.license-line {
  margin: -0.4rem 0 1rem;
  font-size: 0.9rem;
  color: var(--text-3);
}

.foot .disclaimer {
  max-width: 34rem;
  margin: 0 auto 0.5rem;
  line-height: 1.45;
}
