@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap");

:root {
  --bg: #0a0c10;
  --bg2: #111318;
  --bg3: #181c23;
  --surface: #1c2030;
  --surface2: #232840;
  --border: #2a3045;
  --accent: #4f9cf9;
  --accent2: #7b5ef8;
  --accent-glow: rgba(79, 156, 249, 0.18);
  --text: #e8ecf4;
  --text2: #8a93ab;
  --text3: #5a6278;
  --success: #3ddc84;
  --warn: #f4a742;
  --danger: #f45c5c;
  --header-bg: rgba(10, 12, 16, 0.95);
  --usage-card-bg: linear-gradient(165deg, #171b24, #10141c);
  --usage-card-border: #2a3550;
  --card-radius: 12px;
  --tr: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
body.theme-light {
  --bg: #f3f6fc;
  --bg2: #ffffff;
  --bg3: #f3f7ff;
  --surface: #e8efff;
  --surface2: #dde8ff;
  --border: #d3deef;
  --accent: #3f88f8;
  --accent2: #6d64f5;
  --accent-glow: rgba(63, 136, 248, 0.18);
  --text: #1f2a3d;
  --text2: #4f5f77;
  --text3: #7b8ba4;
  --header-bg: rgba(255, 255, 255, 0.94);
  --usage-card-bg: linear-gradient(165deg, #ffffff, #f5f8ff);
  --usage-card-border: #dbe5f3;
}
body.theme-light .header {
  background: linear-gradient(
    120deg,
    rgba(249, 252, 255, 0.96),
    rgba(241, 247, 255, 0.95) 45%,
    rgba(235, 244, 255, 0.94)
  );
  border-bottom: 1px solid rgba(63, 136, 248, 0.28);
  box-shadow:
    0 12px 28px rgba(129, 157, 194, 0.2),
    inset 0 -1px 0 rgba(109, 100, 245, 0.14);
}
body.theme-light .header::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(63, 136, 248, 0.62),
    transparent
  );
}
body.theme-light .header::after {
  background: radial-gradient(
    circle,
    rgba(63, 136, 248, 0.14),
    transparent 68%
  );
}
body.theme-light .logo {
  color: #2f7ff7;
  text-shadow: 0 0 14px rgba(63, 136, 248, 0.2);
}
body.theme-light .logo span {
  color: #15233b;
}
body.theme-light .search-input {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98),
    rgba(242, 248, 255, 0.96)
  );
  border-color: rgba(63, 136, 248, 0.32);
  color: #1d2c45;
}
body.theme-light .search-input:focus {
  border-color: rgba(63, 136, 248, 0.66);
  box-shadow:
    0 0 0 3px rgba(63, 136, 248, 0.12),
    0 10px 22px rgba(141, 170, 207, 0.2);
}
body.theme-light .head-icon-btn,
body.theme-light .head-theme-btn,
body.theme-light .head-help-btn {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98),
    rgba(241, 247, 255, 0.95)
  );
  border-color: rgba(63, 136, 248, 0.3);
  color: #3f5d88;
}
body.theme-light .head-icon-btn:hover,
body.theme-light .head-theme-btn:hover,
body.theme-light .head-help-btn:hover {
  border-color: rgba(63, 136, 248, 0.62);
  color: #2f4f7e;
  box-shadow:
    0 0 0 2px rgba(63, 136, 248, 0.12),
    0 8px 16px rgba(141, 170, 207, 0.2);
}
body.theme-light .lang-btn {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98),
    rgba(241, 247, 255, 0.95)
  );
  border-color: rgba(63, 136, 248, 0.3);
  color: #3f5d88;
}
body.theme-light .lang-btn:hover {
  border-color: rgba(63, 136, 248, 0.62);
  color: #2f4f7e;
  box-shadow:
    0 0 0 2px rgba(63, 136, 248, 0.12),
    0 8px 16px rgba(141, 170, 207, 0.2);
}
body.theme-light .lang-btn.active {
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.88),
    rgba(123, 94, 248, 0.82)
  );
  border-color: rgba(79, 156, 249, 0.9);
  color: #fff;
}
body.theme-light .filter-bar {
  background: linear-gradient(
    95deg,
    rgba(248, 252, 255, 0.97),
    rgba(240, 247, 255, 0.95)
  );
  border-top: 1px solid rgba(63, 136, 248, 0.16);
  border-bottom: 1px solid rgba(63, 136, 248, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 10px 20px rgba(149, 173, 205, 0.14);
}
body.theme-light .filter-bar::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(109, 100, 245, 0.42),
    transparent
  );
}
body.theme-light .fg {
  border-color: rgba(63, 136, 248, 0.24);
  background: rgba(255, 255, 255, 0.82);
}
body.theme-light .fl {
  color: #6b80a1;
}
body.theme-light .sel {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98),
    rgba(244, 249, 255, 0.96)
  );
  border-color: rgba(63, 136, 248, 0.32);
  color: #1f2e49;
}
body.theme-light .sel:focus,
body.theme-light .sel:hover {
  border-color: rgba(63, 136, 248, 0.62);
  box-shadow: 0 0 0 2px rgba(63, 136, 248, 0.12);
}
body.theme-light .sel option {
  background: #ffffff;
  color: #1f2e49;
}
body.theme-light .fdiv {
  background: linear-gradient(
    180deg,
    transparent,
    rgba(63, 136, 248, 0.35),
    transparent
  );
}
body.theme-light .filter-btn {
  background: linear-gradient(
    135deg,
    rgba(86, 130, 233, 0.94),
    rgba(109, 100, 245, 0.9)
  );
  border-color: rgba(109, 100, 245, 0.45);
  color: #f5f8ff;
  box-shadow: 0 8px 16px rgba(125, 122, 205, 0.26);
}
body.theme-light .filter-btn:hover {
  border-color: rgba(109, 100, 245, 0.75);
  background: linear-gradient(
    135deg,
    rgba(100, 143, 239, 0.94),
    rgba(121, 112, 248, 0.9)
  );
  box-shadow:
    0 0 0 2px rgba(109, 100, 245, 0.14),
    0 10px 20px rgba(125, 122, 205, 0.3);
}
body.theme-light .disclaimer-inner {
  color: #4f6688;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg2);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(
    120deg,
    rgba(13, 17, 26, 0.94),
    rgba(14, 21, 34, 0.9) 45%,
    rgba(25, 16, 45, 0.88)
  );
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(79, 156, 249, 0.26);
  padding: 0 24px;
  height: 70px;
  display: grid;
  grid-template-columns: auto minmax(360px, 600px) auto;
  align-items: center;
  gap: 18px;
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.36),
    inset 0 -1px 0 rgba(123, 94, 248, 0.14);
  overflow: hidden;
}
.header::before {
  content: "";
  position: absolute;
  inset: -1px auto auto -20%;
  width: 70%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(79, 156, 249, 0.7),
    transparent
  );
}
.header::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(79, 156, 249, 0.16),
    transparent 68%
  );
  pointer-events: none;
}
.logo {
  font-family: "Rajdhani", sans-serif;
  font-size: 23px;
  font-weight: 700;
  color: #7dc2ff;
  letter-spacing: 1px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-shadow: 0 0 18px rgba(79, 156, 249, 0.24);
}
.logo span {
  color: #e8f1ff;
  margin-left: 8px;
}
.search-wrap {
  width: 100%;
  max-width: 600px;
  position: relative;
  justify-self: center;
}
.search-input {
  width: 100%;
  background: linear-gradient(
    135deg,
    rgba(20, 26, 38, 0.94),
    rgba(15, 20, 30, 0.9)
  );
  border: 1px solid rgba(79, 156, 249, 0.34);
  border-radius: 12px;
  padding: 11px 56px 11px 16px;
  color: var(--text);
  font-size: 14px;
  font-family: "Noto Sans SC", sans-serif;
  outline: none;
  transition:
    border-color var(--tr),
    box-shadow var(--tr),
    background var(--tr);
  min-height: 44px;
  text-align: left;
}
.search-input:focus {
  border-color: rgba(79, 156, 249, 0.76);
  box-shadow:
    0 0 0 3px rgba(79, 156, 249, 0.16),
    0 12px 26px rgba(17, 31, 57, 0.3);
}
.search-input::placeholder {
  color: var(--text3);
}
.search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #1fbe7a, #26d08f);
  border: 1px solid rgba(61, 220, 132, 0.7);
  cursor: pointer;
  color: #fff;
  padding: 0;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--tr);
  font-size: 12px;
  line-height: 1;
  height: 34px;
  width: 34px;
  box-shadow: 0 6px 14px rgba(45, 184, 107, 0.3);
}
.search-btn:hover {
  color: #fff;
  border-color: #3de08d;
  background: linear-gradient(135deg, #23c987, #37d89c);
  box-shadow: 0 8px 18px rgba(45, 184, 107, 0.38);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  justify-self: end;
}
.actions-main,
.actions-social {
  display: flex;
  align-items: center;
  gap: 8px;
}
.actions-divider {
  width: 1px;
  height: 20px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(79, 156, 249, 0.55),
    transparent
  );
  opacity: 0.9;
}
.lang-switch {
  display: flex;
  align-items: center;
}
.lang-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(79, 156, 249, 0.35);
  background: linear-gradient(
    135deg,
    rgba(22, 31, 47, 0.92),
    rgba(17, 23, 36, 0.9)
  );
  color: #9fb0d6;
  cursor: pointer;
  font-size: 12px;
  font-family: "Noto Sans SC", sans-serif;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: all var(--tr);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lang-btn:hover {
  border-color: rgba(79, 156, 249, 0.78);
  color: #c7dcff;
  box-shadow:
    0 0 0 2px rgba(79, 156, 249, 0.16),
    0 8px 18px rgba(12, 24, 46, 0.36);
}
.lang-btn.active {
  border-color: rgba(79, 156, 249, 0.9);
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.82),
    rgba(123, 94, 248, 0.72)
  );
  color: #fff;
}
.head-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(79, 156, 249, 0.35);
  background: linear-gradient(
    135deg,
    rgba(22, 31, 47, 0.92),
    rgba(17, 23, 36, 0.9)
  );
  color: #9fb0d6;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all var(--tr);
}
.head-icon-btn svg {
  width: 16px;
  height: 16px;
}
.header-actions a[aria-label="哔哩哔哩主页"] svg {
  transform: translateY(1px) scale(0.95);
}
.head-icon-btn:hover {
  border-color: rgba(79, 156, 249, 0.78);
  color: #c7dcff;
  box-shadow:
    0 0 0 2px rgba(79, 156, 249, 0.16),
    0 8px 18px rgba(12, 24, 46, 0.36);
}
.head-help-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(79, 156, 249, 0.35);
  background: linear-gradient(
    135deg,
    rgba(22, 31, 47, 0.92),
    rgba(17, 23, 36, 0.9)
  );
  color: #d7e6ff;
  cursor: pointer;
  transition: all var(--tr);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.head-help-btn:hover {
  border-color: rgba(79, 156, 249, 0.78);
  box-shadow:
    0 0 0 2px rgba(79, 156, 249, 0.16),
    0 8px 18px rgba(12, 24, 46, 0.36);
}
.head-help-btn svg {
  width: 16px;
  height: 16px;
}
.head-theme-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(79, 156, 249, 0.35);
  background: linear-gradient(
    135deg,
    rgba(22, 31, 47, 0.92),
    rgba(17, 23, 36, 0.9)
  );
  color: #9fb0d6;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--tr);
}
.head-theme-btn:hover {
  border-color: rgba(79, 156, 249, 0.78);
  box-shadow:
    0 0 0 2px rgba(79, 156, 249, 0.16),
    0 8px 18px rgba(12, 24, 46, 0.36);
}
.head-theme-btn svg {
  width: 16px;
  height: 16px;
}
.theme-icon {
  position: absolute;
  transition:
    opacity var(--tr),
    transform var(--tr);
}
.theme-icon.sun {
  opacity: 1;
  transform: scale(1);
}
.theme-icon.moon {
  opacity: 0;
  transform: scale(0.8);
}
body.theme-light .theme-icon.sun {
  opacity: 0;
  transform: scale(0.8);
}
body.theme-light .theme-icon.moon {
  opacity: 1;
  transform: scale(1);
}

.filter-bar {
  background: linear-gradient(
    95deg,
    rgba(11, 16, 24, 0.95),
    rgba(15, 20, 32, 0.93)
  );
  border-top: 1px solid rgba(79, 156, 249, 0.16);
  border-bottom: 1px solid rgba(79, 156, 249, 0.26);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  z-index: 90;
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    0 12px 26px rgba(0, 0, 0, 0.25);
}
.filter-bar::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(123, 94, 248, 0.45),
    transparent
  );
}
.fg {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid rgba(79, 156, 249, 0.2);
  border-radius: 10px;
  background: rgba(15, 23, 36, 0.55);
}
#sortGrp,
#daysGrp,
#typeGrp,
#ratingGrp {
  border: none;
}
.fl {
  font-size: 12px;
  color: #95a9ca;
  font-weight: 500;
  white-space: nowrap;
}
.sel {
  background: linear-gradient(
    135deg,
    rgba(20, 28, 43, 0.9),
    rgba(16, 22, 34, 0.88)
  );
  border: 1px solid rgba(79, 156, 249, 0.35);
  border-radius: 8px;
  color: #e7efff;
  font-size: 13px;
  font-family: "Noto Sans SC", sans-serif;
  padding: 6px 30px 6px 10px;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a6278' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  transition:
    border-color var(--tr),
    box-shadow var(--tr),
    transform var(--tr);
}
.sel:focus,
.sel:hover {
  border-color: rgba(79, 156, 249, 0.75);
  box-shadow: 0 0 0 2px rgba(79, 156, 249, 0.14);
  transform: translateY(-1px);
}
.sel option {
  background: var(--bg3);
}
#sortSel,
#daysSel,
#typeSel,
#ratingSel {
  width: 126px;
  min-width: 126px;
}
.fdiv {
  width: 1px;
  height: 26px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(79, 156, 249, 0.42),
    transparent
  );
}
.filter-btn {
  background: linear-gradient(
    135deg,
    rgba(53, 84, 139, 0.95),
    rgba(74, 72, 165, 0.92)
  );
  border: 1px solid rgba(123, 94, 248, 0.5);
  border-radius: 10px;
  color: #edf2ff;
  font-size: 13px;
  font-family: "Noto Sans SC", sans-serif;
  padding: 8px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--tr);
  margin-left: auto;
  box-shadow: 0 8px 16px rgba(25, 27, 71, 0.33);
}
.filter-btn:hover {
  border-color: rgba(123, 94, 248, 0.8);
  background: linear-gradient(
    135deg,
    rgba(68, 101, 160, 0.95),
    rgba(93, 89, 190, 0.92)
  );
  box-shadow:
    0 0 0 2px rgba(123, 94, 248, 0.15),
    0 10px 22px rgba(25, 27, 71, 0.4);
}
.badge {
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  display: none;
}
.filter-btn.active .badge {
  display: inline-block;
}

.sb-ov {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--tr);
}
.sb-ov.open {
  opacity: 1;
  pointer-events: all;
}
.sidebar {
  position: fixed;
  top: 0;
  right: -340px;
  width: 320px;
  max-width: 90vw;
  height: 100vh;
  background: var(--bg2);
  border-left: 1px solid var(--border);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.sidebar.open {
  right: 0;
}
.sb-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.sb-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.xbtn {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text2);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--tr);
  font-size: 18px;
}
.xbtn:hover {
  color: var(--danger);
  border-color: var(--danger);
}
.sb-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}
.sb-sec {
  margin-bottom: 20px;
}
.sb-sec-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.genre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.gc {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 7px;
  cursor: pointer;
  transition: all var(--tr);
  font-size: 12px;
  color: var(--text2);
  user-select: none;
}
.gc:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--surface);
}
.gc.sel2 {
  background: rgba(79, 156, 249, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}
.gc-chk {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--border);
  border-radius: 3px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--tr);
  background: var(--bg2);
}
.gc.sel2 .gc-chk {
  background: var(--accent);
  border-color: var(--accent);
}
.gc.sel2 .gc-chk::after {
  content: "✓";
  font-size: 9px;
  color: #fff;
  font-weight: 700;
}
.sb-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.btn-p {
  flex: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-family: "Noto Sans SC", sans-serif;
  font-weight: 500;
  padding: 10px;
  cursor: pointer;
  transition:
    opacity var(--tr),
    transform var(--tr);
}
.btn-p:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.btn-s {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text2);
  font-size: 13px;
  font-family: "Noto Sans SC", sans-serif;
  padding: 10px 16px;
  cursor: pointer;
  transition: all var(--tr);
}
.btn-s:hover {
  color: var(--text);
  border-color: var(--text3);
}

.main {
  padding: 20px;
  max-width: 1440px;
  margin: 0 auto;
}
.site-disclaimer {
  margin-top: 10px;
}
.site-disclaimer[hidden] {
  display: none;
}
.disclaimer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 4px 20px 10px;
  color: var(--text2);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}
.sec-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sec-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.res-count {
  font-size: 13px;
  color: var(--text3);
  background: var(--bg3);
  padding: 3px 10px;
  border-radius: 20px;
}
.view-tog {
  display: flex;
  gap: 4px;
}
.vbtn {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text3);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--tr);
  font-size: 16px;
}
.vbtn.active,
.vbtn:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
}

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  gap: 16px;
  color: var(--text3);
}
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  gap: 12px;
  color: var(--text3);
  font-size: 14px;
  text-align: center;
}
.empty-icon {
  font-size: 48px;
  opacity: 0.4;
}
.proxy-tip {
  max-width: 560px;
  background: var(--bg2);
  border: 1px solid rgba(244, 92, 92, 0.35);
  border-radius: 12px;
  padding: 16px 16px 14px;
  text-align: left;
}
.proxy-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffb3b3;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.proxy-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 10px;
  word-break: break-word;
}
.proxy-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.proxy-btn {
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: #fff;
  padding: 9px 14px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
}
.proxy-btn.alt {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text2);
}

.wgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.wgrid.lv {
  grid-template-columns: 1fr;
}

.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  overflow: hidden;
  cursor: pointer;
  transition:
    transform var(--tr),
    border-color var(--tr),
    box-shadow var(--tr);
  position: relative;
  animation: cardIn 0.35s ease both;
}
@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(79, 156, 249, 0.4);
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(79, 156, 249, 0.15);
}
.card.lv {
  display: flex;
  align-items: stretch;
}
.card-thumb {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: var(--bg3);
  overflow: hidden;
  flex-shrink: 0;
}
.card.lv .card-thumb {
  width: 120px;
  padding-top: 0;
  height: 120px;
}
.card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.card:hover .card-thumb img {
  transform: scale(1.05);
}
.skel {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--bg3) 25%,
    var(--surface) 50%,
    var(--bg3) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.type-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.type-badge.video {
  border-color: rgba(79, 156, 249, 0.5);
  color: var(--accent);
}
.type-badge.scene {
  border-color: rgba(61, 220, 132, 0.5);
  color: var(--success);
}
.card-body {
  padding: 10px 12px 12px;
  flex: 1;
  min-width: 0;
}
.card-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px;
  line-height: 1.4;
}
.card.lv .card-title {
  white-space: normal;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  margin-bottom: 6px;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
.card-metrics {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.cstat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text3);
}
.card-author {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 118px;
  margin-left: auto;
  font-size: 11px;
  color: var(--text2);
}
.card-author svg {
  flex: 0 0 auto;
}
.card-author-name {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-foot {
  padding: 0 12px 12px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.card.lv .card-foot {
  padding: 0 14px 0 0;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  justify-content: center;
}
.card.lv .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card.lv .card-meta {
  min-height: 34px;
  justify-content: flex-start;
  gap: 12px;
}
.card.lv .card-author {
  margin-left: 0;
  align-items: center;
  transform: none;
}
.card.lv .sub-btn {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 12px;
}

.sub-btn {
  flex: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  border-radius: 7px;
  color: #fff;
  font-size: 13px;
  font-family: "Noto Sans SC", sans-serif;
  font-weight: 500;
  padding: 8px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all var(--tr);
  white-space: nowrap;
}
.sub-btn:hover {
  box-shadow: 0 4px 15px rgba(79, 156, 249, 0.4);
  transform: translateY(-1px);
}
.sub-btn:active {
  transform: none;
}
.sub-btn.dling {
  background: linear-gradient(135deg, #3ddc84, #2db86b);
  pointer-events: none;
}
.sub-btn.done {
  background: var(--surface);
  border: 1px solid var(--success);
  color: var(--success);
  pointer-events: none;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 30px 0 20px;
  flex-wrap: wrap;
}
.pbtn {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text2);
  font-size: 13px;
  font-family: "Noto Sans SC", sans-serif;
  padding: 7px 14px;
  cursor: pointer;
  min-width: 40px;
  text-align: center;
  transition: all var(--tr);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.pbtn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--surface);
}
.pbtn.cur {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-color: transparent;
  color: #fff;
  font-weight: 600;
}
.pbtn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.modal-ov {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-ov.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 700px;
  width: 100%;
  overflow: hidden;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
}
.modal-ov.open .modal {
  transform: none;
}
.modal-head {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}
.modal-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}
.modal-sub {
  font-size: 12px;
  color: var(--text3);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}
.modal-img {
  width: 50%;
  border-radius: 10px;
  margin: 0 auto 16px;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: var(--bg3);
  display: block;
}

.mstats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.msi {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
  transition: border-color var(--tr);
}
.msi:hover {
  border-color: rgba(79, 156, 249, 0.3);
}
.msi-ico {
  font-size: 20px;
  margin-bottom: 4px;
  line-height: 1;
}
.msi-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
  word-break: break-all;
}
.msi-lbl {
  font-size: 10px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 14px;
  background: var(--bg3);
  border-radius: 8px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  white-space: pre-wrap;
  max-height: 110px;
  overflow-y: auto;
}
.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.tag-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px;
  color: var(--text2);
}

.cmt-sec {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.cmt-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.cmt-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 2px;
}
.cmt {
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 11px 13px;
  border-radius: 10px;
}
.cmt-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 12px;
}
.cmt-author {
  color: var(--accent);
  font-weight: 600;
}
.cmt-date {
  color: var(--text3);
}
.cmt-text {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.cmt-empty {
  color: var(--text3);
  font-size: 13px;
  text-align: center;
  padding: 20px;
}
.cmt-spin {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text3);
  font-size: 13px;
  padding: 10px;
}
.spinner-sm {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.modal-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.modal-sub-btn {
  flex: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  border-radius: 9px;
  color: #fff;
  font-size: 14px;
  font-family: "Noto Sans SC", sans-serif;
  font-weight: 600;
  padding: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all var(--tr);
}
.modal-sub-btn:hover {
  box-shadow: 0 6px 20px rgba(79, 156, 249, 0.4);
  transform: translateY(-1px);
}
.steam-link {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text2);
  font-size: 13px;
  font-family: "Noto Sans SC", sans-serif;
  padding: 12px 18px;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--tr);
}
.steam-link:hover {
  color: var(--text);
  border-color: var(--text3);
}

.toast-wrap {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.toast {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 14px;
  color: var(--text);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  animation:
    tIn 0.3s ease,
    tOut 0.3s ease 2.2s both;
  white-space: nowrap;
}
@keyframes tIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes tOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
.toast.info {
  border-color: rgba(79, 156, 249, 0.4);
}
.toast.info .ti {
  color: var(--accent);
}
.toast.ok {
  border-color: rgba(61, 220, 132, 0.4);
}
.toast.ok .ti {
  color: var(--success);
}
.toast.warn {
  border-color: rgba(244, 167, 66, 0.4);
}
.toast.warn .ti {
  color: var(--warn);
}

.usage-ov {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.76);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.usage-ov.open {
  opacity: 1;
  pointer-events: all;
}
.usage-card {
  max-width: 760px;
  width: 100%;
  background: var(--usage-card-bg);
  border: 1px solid var(--usage-card-border);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.66);
  overflow: hidden;
  transform: translateY(10px) scale(0.98);
  transition: transform 0.2s;
}
.usage-ov.open .usage-card {
  transform: none;
}
.usage-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.usage-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}
.usage-close {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text2);
  cursor: pointer;
  width: 34px;
  height: 34px;
  font-size: 19px;
  line-height: 1;
  transition: all var(--tr);
}
.usage-head .usage-close {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}
.usage-close:hover {
  color: var(--danger);
  border-color: var(--danger);
}
.usage-body {
  padding: 16px 20px 20px;
  display: grid;
  gap: 10px;
}
.usage-topic {
  background: linear-gradient(
    145deg,
    rgba(79, 156, 249, 0.2),
    rgba(79, 156, 249, 0.08)
  );
  border: 1px solid rgba(79, 156, 249, 0.45);
  border-radius: 12px;
  padding: 14px 16px;
}
.usage-topic-title {
  font-size: 12px;
  color: #9ec9ff;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.usage-topic-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.7;
}
.usage-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text2);
  font-size: 13px;
  line-height: 1.8;
}
.usage-item.limit {
  background: linear-gradient(
    145deg,
    rgba(61, 220, 132, 0.16),
    rgba(61, 220, 132, 0.05)
  );
  border-color: rgba(61, 220, 132, 0.35);
}
.usage-item.dev {
  background: linear-gradient(
    145deg,
    rgba(246, 183, 62, 0.16),
    rgba(246, 183, 62, 0.05)
  );
  border-color: rgba(246, 183, 62, 0.35);
}
.usage-item.pack {
  background: linear-gradient(
    145deg,
    rgba(149, 112, 255, 0.18),
    rgba(149, 112, 255, 0.06)
  );
  border-color: rgba(149, 112, 255, 0.35);
}
.usage-item b {
  color: var(--text);
}
.usage-note {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text2);
  text-align: center;
  padding-top: 2px;
}

@media (max-width: 980px) {
  .header {
    height: auto;
    min-height: 58px;
    padding: 10px 16px;
    gap: 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "logo actions" "search search";
    align-items: center;
  }
  .logo {
    grid-area: logo;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .search-wrap {
    grid-area: search;
    max-width: none;
  }
  .header-actions {
    grid-area: actions;
    margin-left: 0;
    justify-self: end;
  }
}
@media (max-width: 768px) {
  .header {
    padding: 10px 12px;
    gap: 8px;
  }
  .logo {
    font-size: 18px;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .filter-bar {
    padding: 10px 16px;
    gap: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    grid-template-areas: "sort days btn" "type rating btn";
    align-items: center;
  }
  #sortGrp {
    grid-area: sort;
  }
  #daysGrp {
    grid-area: days;
  }
  #typeGrp {
    grid-area: type;
  }
  #ratingGrp {
    grid-area: rating;
  }
  #sortGrp,
  #daysGrp,
  #typeGrp,
  #ratingGrp {
    width: 100%;
  }
  .fdiv {
    display: none;
  }
  .fg {
    padding: 6px 7px;
  }
  .sel {
    width: 100%;
    min-width: 0;
  }
  .filter-btn {
    grid-area: btn;
    margin-left: 0;
    justify-self: end;
    align-self: stretch;
    min-height: 42px;
  }
  .main {
    padding: 14px;
  }
  .disclaimer-inner {
    padding: 3px 14px 8px;
    font-size: 11px;
  }
  .wgrid {
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 10px;
  }
  .mstats {
    grid-template-columns: repeat(2, 1fr);
  }
  .modal-head {
    padding: 16px 18px 14px;
  }
  .modal-body {
    padding: 16px 18px;
  }
  .modal-foot {
    padding: 14px 18px;
    flex-wrap: wrap;
  }
  .modal-desc {
    font-size: 12px;
    line-height: 1.65;
    max-height: 38vh;
    padding: 10px 12px;
  }
  .header-actions {
    gap: 8px;
  }
  .actions-main,
  .actions-social {
    gap: 6px;
  }
  .actions-divider {
    height: 18px;
  }
  .lang-btn {
    width: 32px;
    height: 32px;
    font-size: 11px;
    border-radius: 9px;
  }
  .head-help-btn {
    width: 32px;
    height: 32px;
  }
  .head-theme-btn {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }
  .head-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }
  .head-icon-btn svg,
  .head-theme-btn svg {
    width: 15px;
    height: 15px;
  }
  .search-btn {
    width: 30px;
    height: 30px;
  }
  .search-input {
    padding-right: 48px;
  }
  .card.lv .card-meta {
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 4px;
  }
  .card.lv .card-author {
    width: 100%;
    max-width: none;
    justify-content: flex-start;
  }
  .card.lv .card-author-name {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-all;
    text-align: left;
    line-height: 1.3;
  }
}
@media (max-width: 480px) {
  .header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "logo actions" "search search";
    padding: 10px;
    gap: 8px;
  }
  .header-actions {
    justify-self: end;
    gap: 5px;
  }
  .logo {
    font-size: 18px;
    letter-spacing: 0.7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .logo span {
    display: inline;
    margin-left: 5px;
  }
  .filter-bar {
    padding: 10px 12px;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "sort days" "type rating" "btn btn";
  }
  .filter-btn {
    justify-self: stretch;
    justify-content: center;
    min-height: 36px;
  }
  .actions-main,
  .actions-social {
    gap: 5px;
  }
  .actions-divider {
    height: 16px;
  }
  .lang-btn {
    width: 30px;
    height: 30px;
    font-size: 11px;
    border-radius: 8px;
  }
  .head-icon-btn,
  .head-theme-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }
  .head-icon-btn svg,
  .head-theme-btn svg {
    width: 14px;
    height: 14px;
  }
  .head-help-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }
  .search-wrap {
    min-width: 0;
  }
  .search-input {
    min-height: 40px;
    font-size: 13px;
  }
  .disclaimer-inner {
    padding: 2px 12px 8px;
    font-size: 10.5px;
  }
  .wgrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .card-body {
    padding: 8px 10px 10px;
  }
  .card-foot {
    padding: 0 10px 10px;
  }
  .mstats {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1400px) {
  .header {
    height: 74px;
    grid-template-columns: auto minmax(560px, 760px) auto;
    padding: 0 34px;
  }
  .logo {
    font-size: 25px;
    letter-spacing: 1.2px;
  }
  .search-input {
    min-height: 46px;
    font-size: 15px;
  }
  .search-btn {
    height: 36px;
    width: 36px;
  }
  .filter-bar {
    padding: 12px 34px;
    gap: 12px;
  }
  #sortSel,
  #daysSel,
  #typeSel,
  #ratingSel {
    width: 136px;
    min-width: 136px;
  }
}
@media (max-width: 1180px) and (orientation: landscape) {
  .header {
    height: 64px;
    grid-template-columns: auto minmax(300px, 1fr) auto;
    padding: 0 14px;
    gap: 12px;
  }
  .logo {
    font-size: 19px;
  }
  .search-input {
    min-height: 40px;
  }
  .header-actions {
    gap: 7px;
  }
  .filter-bar {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 8px 14px;
    overflow-x: auto;
  }
  .filter-bar::before {
    left: 14px;
    right: 14px;
  }
  .fg {
    flex: 0 0 auto;
  }
  #sortSel,
  #daysSel,
  #typeSel,
  #ratingSel {
    width: 118px;
    min-width: 118px;
  }
  .filter-btn {
    margin-left: 6px;
    flex: 0 0 auto;
    min-height: 40px;
  }
}
