:root {
    --bg: #080c12;
    --surface: #121923;
    --surface-2: #0f151f;
    --line: #273246;
    --line-soft: #1d2738;
    --text: #eef2f7;
    --muted: #a6b1c3;
    --accent: #ff5b45;
    --accent-2: #ff7a67;
    --ok: #4cc38a;
    --danger: #ff6f61;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    color: var(--text);
    font-family: "Trebuchet MS", "Gill Sans", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 12% 6%, #1f2835 0%, transparent 34%),
        radial-gradient(circle at 92% 0%, #3a1c1a 0%, transparent 28%),
        linear-gradient(180deg, #090d14 0%, var(--bg) 100%);
}
a { color: #ffb0a5; text-decoration: none; }
a:hover { color: #ffd2cb; }

.container {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 14px;
}
.box {
    max-width: 720px;
    margin: 40px auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    margin-top: 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}
.top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
h1, h2 { margin: 0; }
h1 { font-size: 1.45rem; letter-spacing: 0.02em; }
h2 { font-size: 1.05rem; color: #f6f8fc; }

.actions,
.links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.actions a,
.links a {
    border: 1px solid var(--line);
    background: var(--surface-2);
    border-radius: 999px;
    padding: 7px 12px;
    color: #dbe4f5;
}
.actions a:hover,
.links a:hover {
    border-color: #465a7a;
}

label { display: block; margin-bottom: 6px; font-weight: 700; color: #e6edf8; }
.row { margin-bottom: 12px; }
.inline { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.create-grid { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 10px; }

input[type="text"],
input[type="number"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #33425a;
    border-radius: 10px;
    background: #121a27;
    color: #eff5ff;
    font-size: 14px;
}
input::placeholder,
textarea::placeholder { color: #8795ad; }
textarea { min-height: 90px; }

button {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, var(--accent-2), var(--accent));
    color: #fff;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 700;
}
button:hover { filter: brightness(1.03); }
.btn-danger { background: linear-gradient(180deg, #ff7f73, #e94b3b); }
.btn-muted { background: linear-gradient(180deg, #6f809f, #5d6d8a); }
.del-btn { background: linear-gradient(180deg, #ff7f73, #e94b3b); }

.msg, .ok { color: var(--ok); margin: 8px 0; }
.err { color: var(--danger); margin: 8px 0; }
.hint { color: var(--muted); font-size: 13px; }

.year-nav { overflow-x: auto; white-space: nowrap; margin-bottom: 14px; padding-bottom: 6px; }
.year-nav a {
    display: inline-block;
    margin: 0 6px 6px 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 10px;
    color: #c6d2e9;
    background: var(--surface-2);
    font-size: 13px;
}
.year-nav a.active { background: var(--accent); color: #fff; border-color: var(--accent); }

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}
th, td {
    border-bottom: 1px solid var(--line-soft);
    padding: 10px;
    text-align: left;
    font-size: 14px;
    vertical-align: top;
}
th {
    background: #171f2c;
    color: #e9f0fc;
}
.mini-video { width: 220px; height: 124px; border: 0; border-radius: 8px; }
.mini-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mini-form input[type="password"] { width: 200px; padding: 7px 10px; }

@media (max-width: 900px) {
    .mini-video { width: 160px; height: 90px; }
    .box { margin: 18px auto; }
    .create-grid { grid-template-columns: 1fr; }
}
