:root {
  --bg: #09090b;
  --panel: rgba(18, 18, 24, 0.78);
  --panel-solid: #111217;
  --muted: #8d93a6;
  --text: #f5f7fb;
  --accent: #2f6bff;
  --accent-2: #22d3ee;
  --line: rgba(255,255,255,0.08);
  --gold: #ffcc4d;
  --success: #22c55e;
  --shadow: 0 20px 60px rgba(0,0,0,0.35);
  --radius: 22px;
  --sakura: #ff5fa3;
  --violet: #a855f7;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: radial-gradient(circle at top, #161827 0%, #0b0b0f 45%, #070709 100%); color: var(--text); font-family: Inter, sans-serif; }
body { min-height: 100vh; }
a, button, input { font: inherit; }
button { cursor: pointer; border: 0; background: none; color: inherit; }
.app-shell { min-height: 100vh; padding-bottom: 84px; }
.glass { background: var(--panel); backdrop-filter: blur(20px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.app-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 16px 24px; background: rgba(10,10,14,0.78); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line);
}
.brand-container { display: flex; align-items: center; }
.brand-text { font-size: 28px; font-weight: 800; letter-spacing: -0.04em; }
.brand-text span { color: var(--accent); }
.brand-text.big { font-size: 34px; margin: 0; }
.desktop-nav { display: flex; gap: 8px; }
.desktop-nav-link, .nav-item {
  color: #c9cfdd; padding: 11px 16px; border-radius: 14px; transition: .22s ease;
}
.desktop-nav-link:hover, .nav-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.desktop-nav-link.active, .nav-item.active { background: linear-gradient(135deg, rgba(47,107,255,.18), rgba(34,211,238,.18)); color: #fff; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn, .header-user-btn, .player-btn, .modal-close-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.04); color: var(--text);
}
.icon-btn, .modal-close-btn, .player-btn { width: 46px; height: 46px; border-radius: 14px; }
.icon-btn i, .modal-close-btn i, .player-btn i { font-size: 22px; }
.header-user-btn { padding: 0 15px; height: 46px; border-radius: 14px; }
.view-container { width: min(1280px, calc(100% - 32px)); margin: 24px auto 0; }
.hero {
  position: relative; border-radius: 28px; overflow: hidden; min-height: 460px;
  background-size: cover; background-position: center;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(9,9,11,0.92), rgba(9,9,11,0.45) 50%, rgba(9,9,11,0.15));
}
.hero-content { position: relative; z-index: 1; max-width: 620px; padding: 46px; display: flex; flex-direction: column; gap: 16px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,0.08); color: #f5d66b; font-size: 13px; font-weight: 700; }
.hero h2 { margin: 0; font-size: clamp(34px, 5vw, 56px); line-height: 1.02; }
.hero p { margin: 0; color: #d0d6e2; font-size: 15px; line-height: 1.7; }
.meta-row, .tag-row { display: flex; gap: 10px; flex-wrap: wrap; }
.meta-pill, .tag { padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,0.08); font-size: 13px; color: #eef2ff; }
.hero-actions, .profile-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 18px; border-radius: 16px; font-weight: 700; text-decoration: none;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), #5da3ff); color: white; }
.btn-secondary { background: rgba(255,255,255,0.08); color: white; border: 1px solid var(--line); }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 28px 0 14px; }
.section-header h3 { margin: 0; font-size: 24px; }
.section-note { color: var(--muted); font-size: 14px; }
.grid { display: grid; gap: 18px; }
.anime-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.card {
  background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; transition: .25s ease; min-width: 0;
}
.card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.06); }
.poster-wrap { position: relative; aspect-ratio: 3/4; overflow: hidden; }
.poster-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster-badge { position: absolute; top: 12px; left: 12px; background: rgba(9,9,11,.72); padding: 7px 10px; border-radius: 999px; font-size: 12px; }
.poster-badge.vip { color: var(--gold); }
.card-body { padding: 14px; }
.card-title { margin: 0 0 8px 0; font-size: 18px; }
.card-desc { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.rating { color: #f8d06a; font-size: 13px; }
.mini-btn { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,0.08); }
.search-shell, .profile-card, .history-list, .catalog-toolbar, .empty-state, .plans-card, .auth-box, .modal-card {
  border-radius: 24px; border: 1px solid var(--line);
}
.search-shell, .profile-card, .history-list, .catalog-toolbar, .empty-state { background: var(--panel); }
.catalog-toolbar, .search-shell, .profile-card, .history-list, .empty-state { padding: 20px; }
.input, .select, .auth-form input {
  width: 100%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.06); color: white;
  border-radius: 16px; padding: 14px 15px; outline: none;
}
.toolbar-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 14px; }
.profile-card { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; }
.avatar {
  width: 96px; height: 96px; border-radius: 28px; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; font-size: 34px; font-weight: 800;
}
.profile-meta h3 { margin: 0 0 6px; font-size: 28px; }
.profile-meta p { margin: 0; color: var(--muted); line-height: 1.7; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.stat-box { padding: 16px; border-radius: 18px; background: rgba(255,255,255,0.05); border: 1px solid var(--line); }
.stat-box strong { display: block; font-size: 26px; }
.stat-box span { color: var(--muted); font-size: 13px; }
.history-item { display: flex; gap: 14px; padding: 14px; border-radius: 18px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); }
.history-item img { width: 92px; height: 122px; border-radius: 16px; object-fit: cover; }
.history-item h4 { margin: 0 0 8px; font-size: 18px; }
.history-item p { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.progress-line { height: 8px; width: 100%; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; }
.progress-line span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #22d3ee); border-radius: inherit; }
.auth-screen, .modal-overlay, .player-container {
  position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 100;
  background: rgba(2,3,8,.72); backdrop-filter: blur(10px);
  overflow: hidden;
}
.auth-screen.show, .modal-overlay.show, .player-container.show { display: flex; }
.auth-box, .modal-card { width: min(92vw, 520px); padding: 28px; position: relative; }

/* ---------- Anime auth screen ---------- */
.auth-screen { background: radial-gradient(circle at 20% 15%, rgba(168,85,247,.18), transparent 55%), radial-gradient(circle at 82% 85%, rgba(255,95,163,.16), transparent 50%), rgba(2,3,8,.78); }
.auth-bg-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.auth-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: blobFloat 12s ease-in-out infinite; }
.blob-a { width: 320px; height: 320px; top: -80px; left: -60px; background: radial-gradient(circle, var(--violet), transparent 70%); animation-delay: 0s; }
.blob-b { width: 360px; height: 360px; bottom: -100px; right: -80px; background: radial-gradient(circle, var(--sakura), transparent 70%); animation-delay: -4s; }
.blob-c { width: 260px; height: 260px; top: 40%; left: 50%; background: radial-gradient(circle, var(--accent-2), transparent 70%); animation-delay: -8s; }
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -24px) scale(1.08); }
  66% { transform: translate(-24px, 20px) scale(0.94); }
}
.petal { position: absolute; top: -24px; width: 14px; height: 14px; background: linear-gradient(135deg, var(--sakura), #ffb3d6); border-radius: 70% 20% 70% 20%; opacity: .8; animation: petalFall linear infinite; }
.petal::after { content: ""; position: absolute; inset: 0; background: inherit; border-radius: inherit; opacity: .5; }
.petal.p1 { left: 8%; animation-duration: 11s; animation-delay: 0s; }
.petal.p2 { left: 22%; animation-duration: 14s; animation-delay: -3s; width: 10px; height: 10px; }
.petal.p3 { left: 38%; animation-duration: 9s; animation-delay: -6s; }
.petal.p4 { left: 58%; animation-duration: 15s; animation-delay: -1s; width: 12px; height: 12px; }
.petal.p5 { left: 74%; animation-duration: 12s; animation-delay: -8s; }
.petal.p6 { left: 90%; animation-duration: 10s; animation-delay: -4s; width: 9px; height: 9px; }
@keyframes petalFall {
  0% { transform: translateY(-5vh) translateX(0) rotate(0deg); opacity: 0; }
  10% { opacity: .85; }
  50% { transform: translateY(45vh) translateX(24px) rotate(180deg); }
  90% { opacity: .7; }
  100% { transform: translateY(100vh) translateX(-16px) rotate(360deg); opacity: 0; }
}
.auth-box { z-index: 1; animation: authPopIn .45s cubic-bezier(.2,.8,.2,1); border: 1px solid rgba(168,85,247,.25); box-shadow: 0 25px 70px rgba(0,0,0,.5), 0 0 0 1px rgba(255,95,163,.06), 0 0 40px rgba(168,85,247,.12); }
@keyframes authPopIn {
  0% { opacity: 0; transform: translateY(18px) scale(.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-brand { text-align: center; }
.auth-brand-icon {
  width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 18px; font-size: 26px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--sakura) 55%, var(--accent-2));
  box-shadow: 0 8px 24px rgba(168,85,247,.4);
  animation: iconPulse 2.6s ease-in-out infinite;
}
@keyframes iconPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(168,85,247,.4); }
  50% { box-shadow: 0 8px 34px rgba(255,95,163,.55); }
}
.auth-brand .brand-text.big {
  background: linear-gradient(90deg, #fff, var(--accent-2), var(--sakura), #fff);
  background-size: 300% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmerText 5s linear infinite;
}
@keyframes shimmerText { to { background-position: 300% center; } }
.auth-brand p { margin: 8px 0 0; color: var(--muted); }
.auth-tabs { display: flex; gap: 6px; margin: 24px 0 18px; padding: 5px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.auth-tab { flex: 1; padding: 11px; border-radius: 12px; color: #cfd5e1; display: flex; align-items: center; justify-content: center; gap: 7px; font-weight: 600; font-size: 14px; transition: .25s ease; }
.auth-tab i { font-size: 16px; }
.auth-tab.active { background: linear-gradient(135deg, var(--violet), var(--sakura)); color: white; box-shadow: 0 6px 18px rgba(168,85,247,.35); }
.auth-form { display: grid; gap: 14px; animation: fieldsIn .35s ease; }
@keyframes fieldsIn { 0% { opacity: 0; transform: translateY(6px); } 100% { opacity: 1; transform: translateY(0); } }
.hidden-form { display: none; }
.input-icon-wrap { position: relative; display: flex; align-items: center; }
.input-icon-wrap .input-icon { position: absolute; left: 15px; color: var(--muted); font-size: 18px; pointer-events: none; transition: color .2s ease; }
.input-icon-wrap input { padding-left: 44px; }
.input-icon-wrap input:focus { border-color: var(--sakura); background: rgba(255,95,163,.07); box-shadow: 0 0 0 3px rgba(255,95,163,.12); }
.input-icon-wrap input:focus ~ .input-icon, .input-icon-wrap:focus-within .input-icon { color: var(--sakura); }
.pw-toggle { position: absolute; right: 6px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); }
.pw-toggle:hover { color: #fff; background: rgba(255,255,255,.06); }
.pw-toggle i { font-size: 18px; }
.input-icon-wrap input[type="password"], .input-icon-wrap input[type="text"] { padding-right: 42px; }
.otp-head { text-align: center; margin-bottom: 4px; }
.otp-head h3 { margin: 0 0 6px; font-size: 20px; }
.otp-head p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.otp-inputs { display: flex; justify-content: center; gap: 10px; margin: 6px 0; }
.otp-digit {
  width: 50px; height: 58px; text-align: center; font-size: 22px; font-weight: 700;
  border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,0.05); color: var(--text);
  transition: .2s ease;
}
.otp-digit:focus { outline: none; border-color: var(--sakura); background: rgba(255,95,163,.1); box-shadow: 0 0 0 3px rgba(255,95,163,.14); transform: translateY(-2px); }
.telegram-btn { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; color: white; padding: 13px; border-radius: 14px; font-weight: 600; }
.form-group { display: grid; gap: 8px; color: #e9edf5; font-size: 14px; }
.center { text-align: center; }
.crown-icon, .telegram-icon { font-size: 54px; }
.crown-icon, .crown-inline { color: var(--gold); }
.telegram-icon, .telegram-btn { background: #229ed9; }
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.35) 45%, transparent 65%);
  transform: translateX(-120%); transition: transform .6s ease;
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:active { transform: scale(.98); }
@media (max-width: 480px) {
  .auth-box { padding: 22px; }
  .otp-digit { width: 42px; height: 52px; font-size: 19px; }
}
.plan-list { display: grid; gap: 14px; }
.plan-card { padding: 18px; border-radius: 20px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); }
.plan-card.best { border-color: rgba(255, 204, 77, .55); box-shadow: inset 0 0 0 1px rgba(255,204,77,.25); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.plan-price { font-size: 30px; font-weight: 800; margin: 10px 0 6px; }
.plan-card ul { margin: 12px 0 0; padding-left: 18px; color: #d9dfeb; }
.plan-card li { margin: 7px 0; }
.modal-title { margin: 0 0 18px; font-size: 24px; }
.player-container { background: rgba(0,0,0,.95); }
.video-element { width: min(100vw, 1200px); max-height: 100vh; background: black; }
.player-controls-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.player-top-bar, .player-bottom-bar { padding: 18px; background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,0)); }
.player-bottom-bar { background: linear-gradient(0deg, rgba(0,0,0,.68), rgba(0,0,0,0)); }
.player-title { font-size: 18px; font-weight: 700; }
.player-top-bar, .player-btn-row, .player-seek-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.player-btn-row, .player-seek-row { pointer-events: all; }
.player-btn-group { display: flex; gap: 12px; }
.seek-slider { width: 100%; }
.time-display { font-size: 13px; color: #dde2f0; min-width: 104px; text-align: right; }
.toast-container { position: fixed; right: 18px; top: 18px; display: grid; gap: 10px; z-index: 200; }
.toast {
  min-width: 280px; max-width: 360px; padding: 14px 16px; border-radius: 16px; background: rgba(17,18,23,.96); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.toast.success { border-color: rgba(34,197,94,.35); }
.toast.error { border-color: rgba(239,68,68,.45); }
.bottom-nav {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 25;
  width: min(780px, calc(100% - 24px)); display: none; gap: 8px; padding: 10px; border-radius: 22px;
  background: rgba(14,15,20,.88); border: 1px solid var(--line); backdrop-filter: blur(18px);
}
.nav-item { flex: 1; display: grid; gap: 6px; place-items: center; padding: 12px 8px; border-radius: 16px; font-size: 12px; }
.nav-item i { font-size: 20px; }
.empty-state { text-align: center; color: var(--muted); }
.empty-state i { font-size: 48px; color: #bfc6d5; }
.hidden { display: none !important; }

/* ---------- Detail (anime) page ---------- */
body.detail-view .app-header,
body.detail-view .bottom-nav { display: none !important; }
body.detail-view .view-container { margin-top: 0; width: 100%; }
.detail-topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; background: rgba(9,9,11,.85); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line);
}
.detail-topbar-title { margin: 0; font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.detail-page { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 22px 0 60px; display: flex; flex-direction: column; gap: 14px; }
.detail-poster-wrap { width: 200px; margin: 0 auto; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3/4.2; }
.detail-poster-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-title { margin: 4px 0 0; text-align: center; font-size: 26px; font-weight: 800; }
.detail-badges-row { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.detail-badge { padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: .02em; }
.detail-badge.free { background: rgba(239,68,68,.16); color: #ff5a6a; }
.detail-badge.premium { background: rgba(255,204,77,.16); color: var(--gold); }
.detail-genres { text-align: center; margin: 0; color: var(--muted); font-size: 14px; }
.detail-watch-btn { width: 100%; background: linear-gradient(135deg, #ef233c, #ff5a6a); box-shadow: 0 12px 28px rgba(239,35,60,.35); margin-top: 4px; }
.detail-description { color: #d9dfeb; line-height: 1.85; font-size: 14.5px; margin: 6px 0 0; }
.detail-meta-list { display: grid; gap: 10px; padding: 16px 18px; border-radius: 18px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.detail-meta-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.detail-meta-line span { color: var(--muted); }
.detail-meta-line b { font-weight: 700; text-align: right; }
.detail-meta-line b i { font-size: 9px; margin-right: 5px; }
.kirish-free i { color: #4ade80; }
.kirish-premium i { color: var(--gold); }

.inline-player { border-radius: 22px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.inline-player-media { position: relative; aspect-ratio: 16/9; background: #000; }
.inline-player-backdrop, .inline-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.inline-video.hidden { display: none; }
.inline-player-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 22px;
  background: linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,.15) 55%, rgba(0,0,0,.35));
  transition: opacity .2s ease;
}
.inline-player-overlay.hidden { display: none; }
.inline-side-btn, .inline-play-btn {
  display: inline-flex; align-items: center; justify-content: center; color: #fff; border: none;
}
.inline-side-btn { width: 44px; height: 44px; border-radius: 50%; background: rgba(9,9,11,.55); font-size: 20px; }
.inline-side-btn:hover { background: rgba(9,9,11,.8); }
.inline-play-btn { width: 66px; height: 66px; border-radius: 50%; background: linear-gradient(135deg, #ef233c, #ff5a6a); font-size: 30px; box-shadow: 0 10px 30px rgba(239,35,60,.5); }
.inline-play-btn:hover { transform: scale(1.05); }
.inline-seek-row { padding: 10px 14px 0; background: #000; }
.inline-seek-row .seek-slider { width: 100%; accent-color: #ef233c; }
.inline-player-controls { display: flex; align-items: center; gap: 12px; padding: 8px 14px 14px; background: #000; }
.inline-player-controls .time-display { flex: 1; font-size: 13px; color: #cfd5e1; }
.inline-player-controls .player-btn { width: 38px; height: 38px; border-radius: 10px; }
#inline-speed-btn { width: auto; padding: 0 12px; font-size: 12.5px; font-weight: 700; }

.episode-list { display: flex; flex-wrap: wrap; gap: 10px; }
.episode-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 14px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--line); color: #e9edf5; font-weight: 600; font-size: 14px;
}
.episode-btn:hover { background: rgba(255,255,255,0.09); }
.episode-btn.active { border-color: rgba(239,35,60,.6); color: #ff5a6a; box-shadow: 0 0 0 1px rgba(239,35,60,.35), 0 0 18px rgba(239,35,60,.25); }

@media (max-width: 640px) {
  .detail-page { padding: 18px 0 50px; }
  .detail-poster-wrap { width: 170px; }
  .detail-title { font-size: 22px; }
}

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); }
  .view-container { width: min(100%, calc(100% - 18px)); margin-top: 16px; }
  .app-header { padding: 14px 14px; }
  .hero-content { padding: 24px; }
  .toolbar-grid, .stats, .profile-card { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .brand-text { font-size: 24px; }
  .header-user-btn span { display: none; }
  .hero { min-height: 420px; }
  .hero h2 { font-size: 34px; }
  .anime-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-title { font-size: 16px; }
  .history-item { flex-direction: column; }
  .history-item img { width: 100%; height: 220px; }
}
