/* ==========================================================================
   Foto Bachmann – Video Share
   Schlankes, funktionales Tool. Branding dezent: Logo, Akzentfarbe, Fonts.
   ========================================================================== */

:root {
    --accent: #e30087;
    --accent-dark: #b8006d;
    --bg: #f7f5f3;
    --bg-card: #ffffff;
    --text: #1a1a1a;
    --text-muted: #6b6864;
    --border: #e5e2df;
    --danger: #c0392b;
    --success: #2e7d32;
    --radius: 8px;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.page {
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 20px 64px;
}

.page--narrow {
    max-width: 420px;
}

/* Header / Branding ------------------------------------------------------ */

.brand-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 16px;
    flex-wrap: wrap;
}

.brand-header img {
    height: 36px;
    display: block;
}

.brand-header .actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.brand-header--center {
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.brand-header--center img {
    height: 44px;
    margin-bottom: 4px;
}

/* Cards ------------------------------------------------------------------- */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.card + .card {
    margin-top: 16px;
}

/* Forms -------------------------------------------------------------------- */

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    margin-top: 16px;
}

label:first-child {
    margin-top: 0;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="file"],
select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    background: var(--bg-card);
    color: var(--text);
}

input:focus,
select:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.btn:hover {
    background: var(--accent-dark);
    text-decoration: none;
}

.btn--secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn--secondary:hover {
    background: var(--bg);
    color: var(--text);
}

.btn--danger {
    background: var(--danger);
}

.btn--danger:hover {
    background: #962e23;
}

.btn--full {
    width: 100%;
    margin-top: 20px;
}

.btn--sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* Alerts ------------------------------------------------------------------- */

.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 16px;
}

.alert--error {
    background: #fdecea;
    color: var(--danger);
    border: 1px solid #f5c6c2;
}

.alert--success {
    background: #eaf5ea;
    color: var(--success);
    border: 1px solid #c5e3c5;
}

/* Video table -------------------------------------------------------------- */

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th {
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
    padding: 10px 8px;
}

td {
    padding: 12px 8px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.expiry-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.expiry-badge--ok {
    background: #eaf5ea;
    color: var(--success);
}

.expiry-badge--soon {
    background: #fff4e0;
    color: #9c6500;
}

.expiry-badge--expired {
    background: #fdecea;
    color: var(--danger);
}

.link-copy {
    display: flex;
    align-items: center;
    gap: 8px;
}

.link-copy input {
    flex: 1;
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg);
}

/* Player page -------------------------------------------------------------- */

.player-wrap {
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    line-height: 0;
}

.player-wrap video {
    width: 100%;
    display: block;
    max-height: 80vh;
}

.video-title {
    margin: 20px 0 4px;
    font-size: 20px;
    font-weight: 700;
}

.video-meta {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 0;
}

.footer-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 40px;
}

.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }
    thead {
        display: none;
    }
    td {
        border-bottom: none;
        padding: 4px 0;
    }
    tr {
        border-bottom: 1px solid var(--border);
        padding: 12px 0;
    }
    td::before {
        content: attr(data-label);
        display: block;
        font-size: 11px;
        text-transform: uppercase;
        color: var(--text-muted);
        font-weight: 600;
        margin-bottom: 2px;
    }
}
