/* iTech Media Editing — stilul platformei.
   Paleta și fonturile urmează itechmedia.ro: bleumarin închis, albastru spre cyan,
   Plus Jakarta Sans pentru titluri și Inter pentru text. Culorile se schimbă din :root. */

/* ---------- Fonturi (găzduite local, fără cereri către alte servere) ---------- */
@font-face {
    font-family: 'Inter Variable';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: 'Inter Variable';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Plus Jakarta Sans Variable';
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url('fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: 'Plus Jakarta Sans Variable';
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url('fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Valori de bază ---------- */
:root {
    --navy: #0f172a;
    --navy-sunk: #0b1220;
    --slate: #1e293b;
    --line: rgba(148, 163, 184, 0.2);
    --line-strong: rgba(148, 163, 184, 0.42);
    --text: #f1f5f9;
    --text-soft: #cbd5e1;
    --text-dim: #a3b2c5;
    --blue: #2563eb;
    --blue-deep: #1d4ed8;
    --cyan: #38bdf8;
    --green: #10b981;
    --red: #ef4444;
    --red-soft: #fca5a5;
    --amber: #fbbf24;

    --font-body: 'Inter Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-head: 'Plus Jakarta Sans Variable', 'Inter Variable', system-ui, sans-serif;

    --r-pill: 999px;
    --r-lg: 18px;
    --r-md: 12px;
    --r-sm: 8px;

    --gutter: 132px;   /* lățimea coloanei cu numele pistelor */
    --wrap: 1080px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(900px 420px at 85% -120px, rgba(37, 99, 235, 0.2), transparent 70%),
        var(--navy);
    background-repeat: no-repeat;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--font-head);
    line-height: 1.15;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
    font-weight: 800;
}

h2 {
    font-size: 1.2rem;
    font-weight: 700;
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--cyan);
    text-underline-offset: 3px;
}

a:hover {
    color: #7dd3fc;
}

:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 2px;
    border-radius: 4px;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: 24px;
}

.main {
    flex: 1;
    padding-block: 40px 72px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 10;
    padding: 10px 16px;
    background: var(--blue);
    color: #fff;
    border-radius: var(--r-sm);
}

.skip-link:focus {
    top: 12px;
}

.icon {
    width: 22px;
    height: 22px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Bara de previzualizare locală (nu apare online) ---------- */
.dev-bar {
    padding-block: 7px;
    background: rgba(251, 191, 36, 0.14);
    border-bottom: 1px solid rgba(251, 191, 36, 0.4);
    color: var(--text);
    font-size: 0.875rem;
}

.dev-bar a {
    color: var(--amber);
    font-weight: 600;
}

.mail {
    padding-block: 24px;
    border-top: 1px solid var(--line);
}

.mail__meta {
    margin: 6px 0 12px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.mail__body {
    max-width: 44em;
    color: var(--text-soft);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* ---------- Antet și subsol ---------- */
.site-header {
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    flex-wrap: wrap;
    padding-block: 14px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.brand:hover {
    color: var(--text);
}

.brand__logo {
    display: block;
    height: 28px;
    width: auto;
}

/* Semn simplu: un cadru cu un playhead, până când se pune logo-ul real. */
.brand__mark {
    position: relative;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.brand__mark::after {
    content: '';
    position: absolute;
    left: 11px;
    top: 5px;
    bottom: 5px;
    width: 3px;
    border-radius: 2px;
    background: #fff;
}

.brand__product {
    color: var(--cyan);
    font-weight: 600;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px 20px;
    flex-wrap: wrap;
}

.site-nav__link {
    color: var(--text-soft);
    text-decoration: none;
    font-weight: 500;
    padding-block: 6px;
    border-bottom: 2px solid transparent;
}

.site-nav__link:hover {
    color: var(--text);
}

.site-nav__link.is-current {
    color: var(--text);
    border-bottom-color: var(--cyan);
}

.site-nav__logout {
    margin: 0;
}

.lang-switch {
    display: inline-flex;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-pill);
    overflow: hidden;
    font-size: 0.8rem;
    font-weight: 600;
}

.lang-switch a {
    padding: 5px 11px;
    color: var(--text-dim);
    text-decoration: none;
}

.lang-switch a:hover {
    color: var(--text);
}

.lang-switch a[aria-current='true'] {
    background: rgba(56, 189, 248, 0.16);
    color: var(--text);
}

.admin-nav {
    border-bottom: 1px solid var(--line);
    background: rgba(30, 41, 59, 0.35);
}

.admin-nav__inner {
    display: flex;
    gap: 4px 24px;
    flex-wrap: wrap;
}

.admin-nav a {
    padding-block: 11px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.93rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
}

.admin-nav a:hover {
    color: var(--text);
}

.admin-nav a[aria-current='page'] {
    color: var(--text);
    border-bottom-color: var(--cyan);
}

.site-footer {
    border-top: 1px solid var(--line);
    color: var(--text-dim);
    font-size: 0.875rem;
}

.site-footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-block: 18px;
}

.site-footer a {
    color: var(--text-dim);
}

/* ---------- Butoane ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 24px;
    border: 1px solid transparent;
    border-radius: var(--r-pill);
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
    background: var(--blue);
    color: #fff;
}

.btn--primary:hover {
    background: var(--blue-deep);
    color: #fff;
}

.btn--ghost {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--text);
}

.btn--ghost:hover {
    border-color: var(--cyan);
    color: var(--text);
}

.btn--danger {
    background: transparent;
    border-color: rgba(239, 68, 68, 0.7);
    color: var(--red-soft);
}

.btn--danger:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.btn--small {
    min-height: 36px;
    padding: 6px 16px;
    font-size: 0.9rem;
}

.btn--block {
    width: 100%;
}

/* ---------- Mesaje ---------- */
.notice {
    margin-bottom: 20px;
    padding: 12px 16px;
    border: 1px solid var(--line-strong);
    border-left-width: 4px;
    border-radius: var(--r-sm);
    background: rgba(30, 41, 59, 0.6);
    color: var(--text);
}

.notice--success {
    border-left-color: var(--green);
}

.notice--error {
    border-left-color: var(--red);
}

.notice--info {
    border-left-color: var(--cyan);
}

/* ---------- Formulare ---------- */
.form {
    display: grid;
    gap: 18px;
}

.form > .btn {
    justify-self: start;
}

.form > .btn--block {
    justify-self: stretch;
}

.form--narrow {
    max-width: 460px;
}

.form--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
    max-width: 640px;
}

.form__checks,
.form__submit {
    grid-column: 1 / -1;
}

.form__checks {
    display: flex;
    gap: 8px 28px;
    flex-wrap: wrap;
}

.field {
    display: grid;
    align-content: start;
    gap: 6px;
    min-width: 0;
}

.field label,
.field__row label {
    color: var(--text-soft);
    font-size: 0.9rem;
    font-weight: 600;
}

.field__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.field__aside {
    font-size: 0.875rem;
}

.field input,
.field select {
    width: 100%;
    height: 46px;
    padding: 10px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    background: rgba(11, 18, 32, 0.7);
    color: var(--text);
    font: inherit;
}

.field input::placeholder {
    color: #7c8aa0;
}

.field input:focus-visible,
.field select:focus-visible {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.3);
}

.field input[readonly] {
    color: var(--text-dim);
    background: transparent;
}

.field.has-error input,
.field.has-error select {
    border-color: var(--red);
}

.field__hint {
    margin: 0;
    color: var(--text-dim);
    font-size: 0.875rem;
}

.field__error {
    margin: 0;
    color: var(--red-soft);
    font-size: 0.875rem;
}

/* Câmp-capcană pentru roboți: scos din pagină, dar prezent în formular. */
.field--trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.password {
    position: relative;
}

.password input {
    padding-right: 92px;
}

.password__toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    min-height: 34px;
    padding: 4px 12px;
    border: 0;
    border-radius: var(--r-pill);
    background: transparent;
    color: var(--cyan);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.password__toggle:hover {
    background: rgba(56, 189, 248, 0.12);
}

.check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-soft);
    cursor: pointer;
}

.check input {
    width: 18px;
    height: 18px;
    accent-color: var(--blue);
}

.form__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
    flex-wrap: wrap;
}

.inline-form {
    margin: 0 0 20px;
}

/* ---------- Titluri de pagină ---------- */
.page-head {
    margin-bottom: 32px;
}

.page-head--row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.page-head__sub {
    margin: 10px 0 0;
    color: var(--text-dim);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.crumb {
    margin: 0 0 8px;
    font-size: 0.9rem;
}

/* ---------- Pagina publică ---------- */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 56px;
    padding-block: 40px 56px;
}

.hero__title {
    font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.4rem);
    letter-spacing: -0.025em;
}

.hero__lead {
    margin: 20px 0 0;
    max-width: 34em;
    color: var(--text-soft);
    font-size: 1.15rem;
}

.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.sections-intro {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 48px;
    border-top: 1px solid var(--line);
}

.intro {
    padding-block: 28px;
}

.intro h2 {
    margin-bottom: 10px;
    padding-left: 14px;
    border-left: 4px solid var(--cyan);
}

.intro--video h2 {
    border-left-color: var(--blue);
}

.intro p {
    max-width: 36em;
    color: var(--text-soft);
}

.intro .intro__note {
    margin: 0;
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* ---------- Ilustrația cu timeline (decorativă) ---------- */
.art {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--navy-sunk);
    overflow: hidden;
    font-size: 0.75rem;
    color: var(--text-dim);
    user-select: none;
}

.art__ruler {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 30px;
    margin-left: 64px;
    padding: 0 10px 4px;
    border-bottom: 1px solid var(--line);
    background-image: repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 20px);
    background-size: 100% 7px;
    background-repeat: no-repeat;
    background-position: left top;
    font-variant-numeric: tabular-nums;
}

.art__track {
    position: relative;
    height: 62px;
    border-bottom: 1px solid var(--line);
}

.art__track:last-of-type {
    border-bottom: 0;
}

.art__label {
    position: absolute;
    inset: 0 auto 0 0;
    width: 64px;
    display: flex;
    align-items: center;
    padding-left: 12px;
    border-right: 1px solid var(--line);
    background: rgba(30, 41, 59, 0.35);
    font-weight: 600;
}

.art__clip {
    position: absolute;
    top: 11px;
    bottom: 11px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.art__clip--photo {
    background: rgba(56, 189, 248, 0.24);
    border-color: rgba(56, 189, 248, 0.55);
}

.art__clip--video {
    background:
        repeating-linear-gradient(90deg, transparent 0 34px, rgba(15, 23, 42, 0.55) 34px 36px),
        rgba(37, 99, 235, 0.42);
    border-color: rgba(96, 165, 250, 0.65);
}

.art__clip--text {
    background: rgba(148, 163, 184, 0.16);
    border: 1px dashed var(--line-strong);
}

.art__clip--a { left: calc(64px + 4%); width: 15%; }
.art__clip--b { left: calc(64px + 46%); width: 12%; }
.art__clip--c { left: calc(64px + 8%); width: 34%; }
.art__clip--d { left: calc(64px + 44%); width: 30%; }
.art__clip--e { left: calc(64px + 20%); width: 38%; }

.art__playhead {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(64px + 42%);
    width: 2px;
    background: var(--cyan);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.7);
    animation: playhead-in 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.art__playhead::before {
    content: '';
    position: absolute;
    top: 0;
    left: -5px;
    border: 6px solid transparent;
    border-top-color: var(--cyan);
}

@keyframes playhead-in {
    from {
        left: 64px;
        opacity: 0;
    }
}

/* ---------- Autentificare ---------- */
.auth {
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    align-items: center;
    gap: 72px;
    padding-block: 24px;
}

.auth--single {
    grid-template-columns: minmax(0, 420px);
}

.auth__form h1 {
    margin-bottom: 24px;
}

.auth__form h1 + .auth__lead {
    margin-top: -12px;
}

.auth__lead {
    margin-bottom: 24px;
    color: var(--text-dim);
}

.auth__alt {
    margin: 24px 0 0;
    color: var(--text-dim);
}

/* ---------- Editoare: cele două secțiuni ca piste de timeline ---------- */
.timeline {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--navy-sunk);
    overflow: hidden;
}

.timeline__ruler {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 34px;
    margin-left: var(--gutter);
    padding: 0 14px 5px;
    border-bottom: 1px solid var(--line);
    background-image: repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 24px);
    background-size: 100% 8px;
    background-repeat: no-repeat;
    color: var(--text-dim);
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    user-select: none;
}

.track {
    position: relative;
    display: grid;
    grid-template-columns: var(--gutter) minmax(0, 1fr);
    border-bottom: 1px solid var(--line);
}

.track:last-of-type {
    border-bottom: 0;
}

.track__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    border-right: 1px solid var(--line);
    background: rgba(30, 41, 59, 0.35);
    font-family: var(--font-head);
    font-weight: 700;
}

.clip {
    position: relative;
    z-index: 1;
    display: block;
    margin: 18px;
    padding: 24px 28px 24px 34px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: #17233a;
    color: var(--text);
    text-decoration: none;
}

/* Mânerul din stânga, ca la un clip de pe timeline. */
.clip::before {
    content: '';
    position: absolute;
    inset: -1px auto -1px -1px;
    width: 10px;
    border-radius: 14px 0 0 14px;
    background: var(--cyan);
}

.clip--video::before {
    background: var(--blue);
}

.clip--photo {
    width: min(100% - 36px, 62%);
}

.clip--video {
    margin-left: clamp(18px, 9%, 96px);
}

a.clip:hover,
a.clip:focus-visible {
    border-color: var(--cyan);
    background: #1b2a45;
    color: var(--text);
}

.clip__title {
    font-size: 1.45rem;
    font-weight: 800;
}

.clip__text {
    margin: 8px 0 0;
    max-width: 38em;
    color: var(--text-soft);
}

.clip__open {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 18px;
    padding: 9px 22px;
    border-radius: var(--r-pill);
    background: var(--blue);
    color: #fff;
    font-weight: 600;
}

a.clip:hover .clip__open {
    background: var(--blue-deep);
}

.clip__status {
    margin: 14px 0 0;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.clip--pending {
    border-style: dashed;
    background: transparent;
}

.clip--pending::before {
    opacity: 0.45;
}

.clip--pending .clip__title,
.clip--pending .clip__text {
    color: var(--text-dim);
}

/* Linia playhead-ului trece prin spatele clipurilor, ca să nu taie textul. */
.timeline__playhead {
    position: absolute;
    z-index: 0;
    top: 0;
    bottom: 0;
    left: calc(var(--gutter) + 71%);
    width: 2px;
    background: var(--cyan);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.6);
    pointer-events: none;
    animation: playhead-slide 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.timeline__playhead::before {
    content: '';
    position: absolute;
    top: 0;
    left: -5px;
    border: 6px solid transparent;
    border-top-color: var(--cyan);
}

@keyframes playhead-slide {
    from {
        left: var(--gutter);
        opacity: 0;
    }
}

.summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px 32px;
    flex-wrap: wrap;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.summary__list {
    display: flex;
    gap: 16px 48px;
    flex-wrap: wrap;
    margin: 0;
}

.summary__list dt,
.facts dt,
.figures dt {
    color: var(--text-dim);
    font-size: 0.875rem;
}

.summary__list dd,
.facts dd {
    margin: 2px 0 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* ---------- Secțiuni de setări (cont, administrare) ---------- */
.panel {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 0 40px;
    padding-block: 28px;
    border-top: 1px solid var(--line);
}

.panel > h2 {
    grid-column: 1;
    grid-row: 1 / span 12;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    align-content: flex-start;
}

.panel > :not(h2) {
    grid-column: 2;
    margin-block: 0;
}

.panel > :not(h2) ~ :not(h2) {
    margin-top: 16px;
}

.panel--danger > h2 {
    color: var(--red-soft);
}

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 18px 32px;
    margin: 0;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.actions form {
    margin: 0;
}

.code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-dim);
}

.empty {
    padding: 28px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--r-md);
    color: var(--text-dim);
    text-align: center;
}

/* ---------- Administrare ---------- */
.figures {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: rgba(30, 41, 59, 0.3);
}

.figures > div {
    padding: 18px 22px;
    border-right: 1px solid var(--line);
}

.figures > div:last-child {
    border-right: 0;
}

.figures dd {
    margin: 2px 0 0;
    font-family: var(--font-head);
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.figures dd a {
    color: var(--text);
    text-decoration: none;
}

.figures dd a:hover {
    color: var(--cyan);
}

.filters {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filters .field {
    flex: 1 1 220px;
    max-width: 320px;
}

.result-count {
    margin-bottom: 10px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.94rem;
}

.table th,
.table td {
    padding: 12px 16px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.table th {
    background: rgba(30, 41, 59, 0.45);
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: 600;
}

.table tbody tr:last-child td {
    border-bottom: 0;
}

.table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-pill);
    color: var(--text-soft);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.5;
    white-space: nowrap;
}

.badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-dim);
}

.badge--active::before {
    background: var(--green);
}

.badge--pending::before {
    background: var(--amber);
}

.badge--suspended::before {
    background: var(--red);
}

.badge--admin::before {
    background: var(--cyan);
}

.pager {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* ---------- Pagini cu un singur mesaj ---------- */
.message {
    max-width: 560px;
    padding-block: 32px;
}

.message h1 {
    margin-bottom: 16px;
}

.message p {
    color: var(--text-soft);
}

.message__code {
    margin: 0 0 6px;
    color: var(--cyan);
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.1rem;
}

.message .message__hint {
    color: var(--text-dim);
    font-size: 0.93rem;
}

.message__detail {
    overflow: auto;
    max-height: 320px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--navy-sunk);
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* ---------- Ecrane mici ---------- */
@media (max-width: 860px) {
    .hero,
    .auth {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .auth .art {
        display: none;
    }

    .sections-intro {
        grid-template-columns: minmax(0, 1fr);
    }

    .intro + .intro {
        border-top: 1px solid var(--line);
    }

    .panel {
        grid-template-columns: minmax(0, 1fr);
    }

    .panel > h2 {
        margin-bottom: 16px;
    }

    .panel > h2,
    .panel > :not(h2) {
        grid-column: 1;
        grid-row: auto;
    }

    .figures {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .figures > div:nth-child(2) {
        border-right: 0;
    }

    .figures > div:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 720px) {
    .main {
        padding-block: 28px 56px;
    }

    .timeline__ruler,
    .timeline__playhead {
        display: none;
    }

    .track {
        grid-template-columns: minmax(0, 1fr);
    }

    .track__head {
        padding: 12px 16px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .clip,
    .clip--photo,
    .clip--video {
        width: auto;
        margin: 14px;
        padding: 20px 20px 20px 28px;
    }

    .form--grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .site-nav {
        gap: 6px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .art__playhead,
    .timeline__playhead {
        animation: none;
    }

    .btn {
        transition: none;
    }
}
