:root {
  --accent: #ff5b2e;
  --bg: #0f0f10;
  --bg-2: #151516;
  --surface: #1a1a1c;
  --surface-2: #222225;
  --line: #2a2a2e;
  --text: #ececec;
  --text-2: #b4b4b8;
  --muted: #7d7d84;
  --green: #4ccf8a;
  --blue: #5aa9ff;
  --yellow: #f2c94c;
  --radius: 8px;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.55 var(--font); min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
.container { width: min(1240px, 100% - 40px); margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(15,15,16,.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; white-space: nowrap; user-select: none; }
.logo-mark { width: 40px; height: 19px; overflow: visible; }
.logo-wave { fill: none; stroke: var(--text); stroke-width: 2.6; stroke-linecap: round; }
.logo-ball {
  fill: var(--accent);
  offset-path: path("M3 5 C 13 5, 15 25, 25 25 S 37 5, 47 5 S 58 25, 61 25");
  animation: ride 7s ease-in-out infinite alternate;
}
@keyframes ride { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.logo.spin .logo-ball { animation-duration: .5s; }
@media (prefers-reduced-motion: reduce) { .logo-ball { animation: none; offset-distance: 38%; } }

.nav { display: flex; gap: 2px; flex: 1; }
.nav a { padding: 7px 12px; border-radius: 6px; color: var(--text-2); font-weight: 500; white-space: nowrap; }
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--text); background: var(--surface); }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn { width: 38px; height: 38px; border-radius: 6px; border: 0; background: transparent; color: var(--text-2); cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { background: var(--surface); color: var(--text); }
.burger { display: none; }
@media (max-width: 900px) {
  .burger { display: grid; }
  .nav { position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; padding: 10px 20px 16px; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
}

.user-btn { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.user-btn:hover { background: var(--surface); }
.user-menu { position: relative; }
.dropdown { position: absolute; right: 0; top: calc(100% + 6px); min-width: 200px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; box-shadow: 0 12px 32px rgba(0,0,0,.5); display: none; }
.dropdown.open { display: block; }
.dropdown a, .dropdown button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 6px; background: none; border: 0; cursor: pointer; color: var(--text-2); }
.dropdown a:hover, .dropdown button:hover { background: var(--surface-2); color: var(--text); }
.dropdown .head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.ava { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; flex: none; }
.ava.lg { width: 64px; height: 64px; font-size: 24px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent); filter: brightness(1.08); }
.btn-ghost { background: transparent; }
.btn-danger { color: #ff7a7a; }
.btn-danger:hover { border-color: #5a2a2a; background: #2a1717; }
.btn-sm { height: 32px; padding: 0 11px; font-size: 13px; }
.link { color: var(--accent); }
.link:hover { text-decoration: underline; }

.tag { display: inline-block; padding: 3px 9px; border-radius: 4px; background: var(--surface-2); color: var(--text-2); font-size: 12px; font-weight: 500; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-ongoing { color: var(--green); }
.st-completed { color: var(--muted); }
.st-dev { color: var(--blue); }
.st-announced { color: var(--yellow); }
.st-paused { color: var(--muted); }
.role { font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 4px; background: var(--surface-2); color: var(--text-2); vertical-align: middle; }
.role-owner, .role-admin { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.role-editor { background: color-mix(in srgb, var(--blue) 18%, transparent); color: var(--blue); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 520px; height: 70vh; max-height: 660px; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; display: flex; align-items: flex-end; }
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 25%; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 0%, rgba(15,15,16,.6) 40%, rgba(15,15,16,.1) 75%), linear-gradient(90deg, rgba(15,15,16,.85) 0%, rgba(15,15,16,0) 65%); }
.hero-content { position: relative; z-index: 2; padding-bottom: 64px; max-width: 620px; }
.hero h1 { font-size: clamp(32px, 5vw, 56px); margin: 10px 0 12px; font-weight: 800; }
.hero p { color: var(--text-2); font-size: 16px; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--text-2); font-size: 14px; }
.hero-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.hero-nav { position: absolute; z-index: 3; bottom: 30px; right: max(20px, calc((100% - 1240px) / 2)); display: flex; gap: 6px; }
.hero-nav button { width: 36px; height: 3px; border: 0; padding: 0; background: rgba(255,255,255,.25); cursor: pointer; }
.hero-nav button.active { background: var(--text); }

.intro { padding: 90px 0 70px; border-bottom: 1px solid var(--line); }
.intro h1 { font-size: clamp(36px, 6vw, 72px); margin: 0 0 14px; font-weight: 800; }
.intro p { color: var(--text-2); font-size: 18px; max-width: 560px; margin: 0; }

/* ---------- sections / grid ---------- */
.section { padding: 44px 0 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: 22px; font-weight: 700; }
.section-head a { color: var(--muted); font-size: 14px; }
.section-head a:hover { color: var(--text); }
.page-head { padding: 40px 0 8px; }
.page-head h1 { font-size: 34px; margin: 0 0 6px; font-weight: 800; }
.page-head p { margin: 0; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 26px 18px; }
.row { display: grid; grid-auto-flow: column; grid-auto-columns: 170px; gap: 18px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }

.card { display: block; min-width: 0; }
.poster { position: relative; aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; background: var(--surface); }
.poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .poster img { transform: scale(1.04); }
.card:hover .card-title { color: var(--accent); }
.poster-fb { width: 100%; height: 100%; display: flex; align-items: flex-end; padding: 12px; font-weight: 700; font-size: 15px; line-height: 1.2; color: rgba(255,255,255,.92); }
.poster .corner { position: absolute; left: 8px; bottom: 8px; right: 8px; display: flex; justify-content: space-between; align-items: flex-end; gap: 6px; }
.poster .pill { background: rgba(10,10,10,.8); backdrop-filter: blur(4px); padding: 3px 7px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.card-title { margin-top: 10px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .15s; }
.card-meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.card-meta .status { font-size: 12px; }

.progress { height: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.progress > div { height: 100%; background: var(--blue); }

/* ---------- в разработке ---------- */
.dev-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 14px; }
@media (max-width: 520px) { .dev-list { grid-template-columns: 1fr; } }
.dev-item { display: grid; grid-template-columns: 88px 1fr; gap: 16px; padding: 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s; }
.dev-item:hover { border-color: #3a3a40; }
.dev-item h3 { margin: 0 0 2px; font-size: 16px; }
.dev-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.stages { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; }
.stages span { height: 4px; border-radius: 2px; background: var(--surface-2); }
.stages span.done { background: var(--blue); }
.stages span.now { background: linear-gradient(90deg, var(--blue) 50%, var(--surface-2) 50%); }
.dev-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.dev-row b { color: var(--text); font-weight: 600; }
.dev-note { font-size: 13px; color: var(--text-2); border-left: 2px solid var(--line); padding-left: 10px; }

/* ---------- страница релиза ---------- */
.s-top { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.s-top-bg { position: absolute; inset: 0; background-size: cover; background-position: center 25%; opacity: .28; filter: blur(1px); }
.s-top::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg), rgba(15,15,16,.4)); }
.s-top .container { position: relative; z-index: 1; display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding: 48px 0 36px; align-items: end; }
.s-top .poster { width: 240px; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.s-top h1 { font-size: clamp(28px, 4vw, 44px); margin: 0 0 4px; font-weight: 800; }
.s-orig { color: var(--muted); font-size: 16px; margin-bottom: 18px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; font-size: 14px; margin: 0 0 22px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--text-2); }
.actions-row { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .s-top .container { grid-template-columns: 1fr; gap: 24px; }
  .s-top .poster { width: 160px; }
}
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin: 26px 0 22px; overflow-x: auto; }
.tab { padding: 12px 0; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; color: var(--muted); font-weight: 600; white-space: nowrap; }
.tab:hover { color: var(--text-2); }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }
.seasons { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.desc { font-size: 16px; color: var(--text-2); max-width: 760px; white-space: pre-line; margin: 0; }

.ep-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.ep { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; padding: 12px 6px; border-bottom: 1px solid var(--line); }
a.ep:hover { background: var(--bg-2); }
a.ep:hover .ep-title { color: var(--accent); }
.ep.current { background: var(--bg-2); box-shadow: inset 2px 0 0 var(--accent); }
.ep-n { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; text-align: center; }
.ep.watched .ep-n { color: var(--green); }
.ep-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s; }
.ep-meta { font-size: 13px; color: var(--muted); }
.ep.soon { color: var(--muted); }
.ep.soon .ep-title { color: var(--muted); font-weight: 500; }
.ep-side { font-size: 13px; color: var(--muted); white-space: nowrap; }
.new { color: var(--accent); font-size: 11px; font-weight: 700; margin-left: 8px; text-transform: uppercase; letter-spacing: .04em; }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.person { display: flex; gap: 14px; align-items: center; padding: 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); }
.person .photo { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; font-weight: 700; color: #fff; }
.person .photo img { width: 100%; height: 100%; object-fit: cover; }
.person-name { font-weight: 600; }
.person-role { font-size: 13px; color: var(--muted); }
.person-bio { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.people.big { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.people.big .person { flex-direction: column; align-items: flex-start; }
.people.big .photo { width: 80px; height: 80px; font-size: 26px; }

/* ---------- плеер ---------- */
.watch { display: grid; grid-template-columns: 1fr 330px; gap: 28px; padding: 26px 0 0; }
@media (max-width: 1000px) { .watch { grid-template-columns: 1fr; } }
.player { aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.player iframe, .player video { width: 100%; height: 100%; border: 0; display: block; }
.player-empty { height: 100%; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 20px; }
.watch-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin: 18px 0 8px; flex-wrap: wrap; }
.watch-head h1 { font-size: 22px; margin: 0; }
.watch-head .crumb { color: var(--muted); font-size: 14px; display: block; margin-bottom: 4px; }
.watch-head .crumb:hover { color: var(--text); }
.watch-side { border: 1px solid var(--line); border-radius: var(--radius); max-height: 620px; overflow-y: auto; align-self: start; }
.watch-side h3 { margin: 0; padding: 14px 16px; font-size: 15px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 1; }
.watch-side .ep-list { border-top: 0; }

/* ---------- комментарии ---------- */
.comments { max-width: 760px; }
.c-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.c-form textarea { min-height: 90px; resize: vertical; }
.c-form .row-end { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.comment { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.comment .ava { width: 36px; height: 36px; }
.c-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.c-head b { font-weight: 600; }
.c-text { margin-top: 4px; color: var(--text-2); white-space: pre-wrap; word-break: break-word; }
.c-del { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; }
.c-del:hover { color: #ff7a7a; }

/* ---------- формы ---------- */
.input, .field input, .field select, .field textarea, .filters input, .filters select, .c-form textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 9px 12px; outline: none; transition: border-color .15s;
}
.input:focus, .field input:focus, .field select:focus, .field textarea:focus, .filters input:focus, .filters select:focus, .c-form textarea:focus { border-color: #4a4a52; }
.filters { display: grid; grid-template-columns: 2fr repeat(5, 1fr); gap: 8px; margin: 22px 0 26px; }
@media (max-width: 900px) { .filters { grid-template-columns: 1fr 1fr; } .filters input { grid-column: 1 / -1; } }
.empty { padding: 70px 20px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--text); font-size: 18px; margin-bottom: 6px; }

/* ---------- новости ---------- */
.news { display: flex; flex-direction: column; max-width: 780px; }
.news-item { padding: 22px 0; border-top: 1px solid var(--line); }
.news-item time { color: var(--muted); font-size: 13px; }
.news-item h3 { margin: 4px 0 8px; font-size: 19px; }
.news-item p { margin: 0; color: var(--text-2); white-space: pre-line; }
.news-item .link { display: inline-block; margin-top: 10px; font-size: 14px; }

/* ---------- расписание ---------- */
.week { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 22px; }
@media (max-width: 900px) { .week { grid-template-columns: 1fr; } }
.day { padding: 12px; min-height: 150px; border-right: 1px solid var(--line); }
.day:last-child { border-right: 0; }
@media (max-width: 900px) { .day { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; } }
.day.today { background: var(--bg-2); }
.day h4 { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--muted); display: flex; justify-content: space-between; }
.day.today h4 { color: var(--accent); }
.day a { display: block; padding: 7px 0; font-size: 13px; font-weight: 600; border-top: 1px solid var(--line); }
.day a:hover { color: var(--accent); }
.day a span { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }

/* ---------- о студии / профиль ---------- */
.prose { max-width: 720px; font-size: 16px; color: var(--text-2); white-space: pre-line; }
.stats { display: flex; gap: 40px; flex-wrap: wrap; margin: 26px 0; }
.stats div { font-size: 14px; color: var(--muted); }
.stats b { display: block; font-size: 32px; color: var(--text); font-weight: 800; }
.profile-head { display: flex; gap: 18px; align-items: center; padding: 40px 0 10px; }
.profile-head h1 { margin: 0; font-size: 28px; }

/* ---------- поиск / модалки ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.65); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.overlay[hidden] { display: none; }
.search-box { width: min(620px, 100%); }
.search-box input { width: 100%; padding: 16px 18px; font-size: 17px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); outline: none; }
.search-results { margin-top: 8px; background: var(--bg-2); border-radius: var(--radius); max-height: 60vh; overflow-y: auto; }
.search-results a { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.search-results a:hover { background: var(--surface); }
.search-results .mini { width: 38px; flex: none; }
.search-results .mini .poster-fb { font-size: 0; }
.modal { width: min(400px, 100%); background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 26px; position: relative; }
.modal h2 { margin: 0 0 18px; font-size: 22px; }
.modal .close { position: absolute; top: 12px; right: 12px; }
.modal form { display: flex; flex-direction: column; gap: 12px; }
.modal .switch { margin-top: 16px; font-size: 14px; color: var(--muted); text-align: center; }
.modal .switch button { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; }
.form-error { color: #ff7a7a; font-size: 14px; min-height: 0; }
.form-error:empty { display: none; }
.hint { font-size: 12px; color: var(--muted); margin-top: -6px; }

/* ---------- footer ---------- */
.footer { margin-top: 80px; border-top: 1px solid var(--line); padding: 32px 0 20px; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-name { font-weight: 700; }
.footer-nav { display: flex; gap: 20px; color: var(--text-2); font-size: 14px; }
.footer-nav a:hover, .footer-links a:hover { color: var(--text); }
.footer-links { display: flex; gap: 16px; color: var(--text-2); font-size: 14px; }
.footer-bottom { margin-top: 24px; color: var(--muted); font-size: 13px; user-select: none; }

/* ---------- toasts ---------- */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast { background: var(--surface-2); border: 1px solid var(--line); padding: 11px 14px; border-radius: var(--radius); max-width: 360px; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: tin .25s ease-out; }
.toast.egg { border-color: color-mix(in srgb, var(--yellow) 45%, var(--line)); }
.toast.err { border-color: #5a2a2a; }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } }

/* ---------- управление ---------- */
.admin { padding-top: 30px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-top h1 { margin: 0; font-size: 28px; }
.admin-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin: 18px 0 24px; overflow-x: auto; }
.admin-tabs a { padding: 10px 0; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.admin-tabs a.active { color: var(--text); border-bottom-color: var(--accent); }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; background: var(--bg-2); }
.panel h3 { margin: 0 0 14px; font-size: 16px; }
.panel .sub { margin: -8px 0 14px; color: var(--muted); font-size: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field > label { font-size: 13px; color: var(--muted); }
.field textarea { min-height: 110px; resize: vertical; }
.field input[type=color] { height: 40px; padding: 3px; }
.field input[type=range] { padding: 0; border: 0; background: none; accent-color: var(--accent); }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; cursor: pointer; }
.check input { width: auto; accent-color: var(--accent); }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.img-field { display: flex; gap: 12px; }
.img-field .prev { width: 80px; flex: none; aspect-ratio: 2/3; border-radius: 6px; overflow: hidden; background: var(--surface); }
.img-field .prev.wide { width: 150px; aspect-ratio: 16/9; }
.img-field .prev.round { width: 64px; aspect-ratio: 1; border-radius: 50%; }
.img-field .prev img { width: 100%; height: 100%; object-fit: cover; }
.img-field .col { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.file-btn { align-self: flex-start; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 13px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .thumb { width: 36px; }
.table select { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; }
.t-actions { display: flex; gap: 6px; justify-content: flex-end; }
.season { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; background: var(--bg); }
.season-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.season-head input { background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; }
.ep-row { display: grid; grid-template-columns: 56px 1.1fr 2fr 100px 140px 36px 36px; gap: 6px; align-items: center; margin-bottom: 6px; }
.ep-row input { background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 7px 8px; width: 100%; min-width: 0; }
.ep-row.head { font-size: 12px; color: var(--muted); }
.ep-row .icon-btn { width: 36px; height: 34px; border: 1px solid var(--line); }
@media (max-width: 1000px) { .ep-row { grid-template-columns: 1fr 1fr; } .ep-row.head { display: none; } }
.savebar { position: sticky; bottom: 0; z-index: 10; display: flex; justify-content: flex-end; gap: 8px; padding: 14px 0; background: rgba(15,15,16,.94); border-top: 1px solid var(--line); }
.notice { padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--yellow); border-radius: 6px; color: var(--text-2); font-size: 14px; margin-bottom: 16px; }

/* ---------- пасхалки ---------- */
body.party { animation: party 2s linear infinite; }
@keyframes party { to { filter: hue-rotate(360deg); } }
body.bruh { filter: grayscale(1) contrast(1.15); }
body.hmm main { transform: rotate(-1.5deg); transition: transform .4s; }
body.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
body.barrel { animation: barrel 1.2s ease-in-out; }
@keyframes barrel { to { transform: rotate(360deg); } }
.faller { position: fixed; top: -60px; z-index: 400; pointer-events: none; font-weight: 800; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(115vh) rotate(var(--r, 180deg)); } }
.doge-word { position: fixed; z-index: 400; pointer-events: none; font-family: "Comic Sans MS", "Comic Sans", cursive; font-size: 26px; font-weight: 700; animation: doge 3.4s forwards; text-shadow: 2px 2px 0 #000; }
@keyframes doge { 0% { opacity: 0; transform: scale(.5); } 15%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.stonks { position: fixed; inset: 0; z-index: 400; pointer-events: none; display: grid; place-items: center; }
.stonks div { font: 900 84px Impact, "Arial Black", sans-serif; color: var(--green); animation: stonks 2.4s forwards; }
@keyframes stonks { 0% { transform: translate(-40vw, 40vh) scale(.3); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(40vw, -40vh) scale(1.3); opacity: 0; } }
.cat-walker { position: fixed; bottom: 0; left: -100px; z-index: 400; font-size: 56px; pointer-events: none; animation: catwalk 7s linear forwards; }
@keyframes catwalk { to { left: 110vw; } }
.secret { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); max-width: 720px; }
.secret .ico { font-size: 24px; width: 32px; text-align: center; }
.secret.locked { color: var(--muted); }
