/*
Theme Name: AURUM Video
Theme URI: https://github.com/
Author: AURUM
Description: Dark/gold cinema-style theme built to display movies distributed from AURUM (JWPlayer iframe embeds or Bunny Stream / direct HLS video), matching the AURUM public site's own visual language. Requires no companion plugin — video custom fields are registered by this theme itself.
Version: 2.0.8
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aurum-video
*/

:root {
  --bg: #0f0f0f;
  --bg-2: #1c1c1c;
  --bg-3: #272727;
  --hover: #3f3f3f;
  --text: #f1f1f1;
  --muted: #aaaaaa;
  --muted-2: #717171;
  --gold: #d4af37;
  --gold-bright: #ffe08a;
  --gold-deep: #a8842a;
  --line: rgba(255, 255, 255, 0.12);
  --red: #ff4d4d;
  --topbar-h: 60px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Playfair Display", serif;
  font-weight: 700;
  margin: 0 0 12px;
}

::selection {
  background: var(--gold);
  color: #000;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.72) #141414;
}

::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

::-webkit-scrollbar-track {
  background: #141414;
  border-left: 1px solid rgba(255, 255, 255, 0.04);
}

::-webkit-scrollbar-thumb {
  border: 2px solid #141414;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 224, 138, 0.95), rgba(212, 175, 55, 0.82) 48%, rgba(168, 132, 42, 0.92));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #fff1b8, var(--gold-bright) 42%, var(--gold));
}

::-webkit-scrollbar-corner {
  background: #141414;
}

.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
  border-left: 0;
}

.sidebar::-webkit-scrollbar-thumb {
  border-color: var(--bg);
  background: rgba(212, 175, 55, 0.58);
}

/* ===== TOPBAR ===== */
.aurum-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.aurum-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  flex: none;
}
.aurum-logo .mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(from 210deg, var(--gold-deep), var(--gold-bright), var(--gold), var(--gold-deep));
  color: #1a1407;
  font-weight: 900;
  font-size: 13px;
  font-style: italic;
}
.aurum-logo .word {
  background: linear-gradient(180deg, #fff, var(--gold-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.aurum-logo .custom-logo-link {
  display: block;
}
.aurum-logo img,
.aurum-logo .custom-logo {
  width: var(--aurum-logo-width, 120px);
  max-height: var(--aurum-logo-height, 40px);
  object-fit: contain;
}
.aurum-nav {
  flex: 1;
}
/* wp_nav_menu() renders a <ul><li> list — reset it into a horizontal bar. */
.aurum-nav ul {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.aurum-nav li {
  list-style: none;
}
.aurum-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  transition: background 0.2s;
}
.aurum-nav a:hover {
  background: var(--bg-3);
}
.aurum-search {
  display: flex;
  flex: none;
}
.aurum-search input {
  background: #121212;
  border: 1px solid #303030;
  border-right: none;
  border-radius: 40px 0 0 40px;
  color: var(--text);
  padding: 8px 16px;
  font-size: 14px;
  outline: none;
  width: 200px;
}
.aurum-search input:focus {
  border-color: var(--gold);
}
.aurum-search button {
  background: var(--bg-3);
  border: 1px solid #303030;
  border-radius: 0 40px 40px 0;
  color: var(--text);
  padding: 0 14px;
  cursor: pointer;
}
.aurum-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}

/* ===== MAIN LAYOUT ===== */
.aurum-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  min-height: 60vh;
}
.aurum-page-title {
  font-size: 26px;
  margin-bottom: 20px;
}

/* ===== VIDEO GRID / CARDS ===== */
.aurum-grid {
  display: grid;
  grid-template-columns: repeat(var(--aurum-grid-cols-desktop, 4), minmax(0, 1fr));
  gap: 20px;
}
.aurum-card {
  display: block;
}
.aurum-card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a2440, #3a1f38);
}
.aurum-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.aurum-card:hover .aurum-card-thumb {
  outline: 2px solid var(--gold);
}
.aurum-card-title {
  margin: 10px 0 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.aurum-card-meta {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
}
.aurum-empty {
  color: var(--muted-2);
  padding: 40px 0;
  text-align: center;
}

/* ===== PAGINATION ===== */
.aurum-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}
.aurum-pagination a,
.aurum-pagination span {
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--bg-3);
  font-size: 14px;
}
.aurum-pagination .current {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1a1407;
  font-weight: 700;
}

/* ===== SINGLE VIDEO PAGE ===== */
.aurum-watch-page {
  width: 100%;
}

.aurum-watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.aurum-watch-main {
  min-width: 0;
}

.aurum-watch-sidebar {
  position: sticky;
  top: calc(var(--topbar-h) + 16px);
  min-width: 0;
}

.aurum-watch-sidebar-title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
}

.aurum-watch-sidebar-title::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.7);
}

.aurum-recommendation-list {
  display: grid;
  gap: 12px;
}

.aurum-recommendation-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border-radius: 10px;
  color: var(--text);
}

.aurum-recommendation-card:hover .aurum-recommendation-title,
.aurum-recommendation-card:focus-visible .aurum-recommendation-title {
  color: var(--gold-bright);
}

.aurum-recommendation-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.aurum-recommendation-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, #1a2440, #3a1f38);
}

.aurum-recommendation-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aurum-recommendation-duration {
  position: absolute;
  right: 5px;
  bottom: 5px;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.86);
  color: #fff;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
}

.aurum-recommendation-body {
  min-width: 0;
}

.aurum-recommendation-title {
  margin: 0 0 5px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.aurum-recommendation-meta,
.aurum-recommendation-date {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.aurum-video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}
.aurum-video-stage iframe,
.aurum-video-stage video,
.aurum-video-stage aurum-video-player {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}
.aurum-video-missing {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--muted-2);
}

/* ===== CUSTOM VIDEO CONTROL BAR (direct/HLS sources only — matches the
   AURUM Next.js app's own VideoPlayer component 1:1) ===== */
.video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}
.video-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}
.video-stage.theater {
  position: fixed;
  inset: 0;
  z-index: 500;
  border-radius: 0;
  margin-bottom: 0;
}
.poster-fb {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
}
.poster-fb.hidden {
  display: none;
}
.poster-fb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}
.big-play {
  position: relative;
  z-index: 2;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1a1407;
  display: grid;
  place-items: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s;
}
.big-play:hover {
  transform: scale(1.08);
}
.controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 14px 14px 10px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.video-stage:hover .controls,
.controls.show {
  opacity: 1;
}
.progress {
  position: relative;
  height: 5px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 8px;
}
.progress .filled {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
}
.progress .knob {
  position: absolute;
  top: 50%;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--gold-bright);
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.ctrl-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ctrl-row .spacer {
  margin-left: auto;
}
.cbtn {
  display: grid;
  place-items: center;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  border-radius: 6px;
  padding: 4px;
}
.cbtn:hover {
  color: var(--gold-bright);
}
.time {
  font-size: 13px;
  color: #eee;
  font-variant-numeric: tabular-nums;
}
.vol {
  display: flex;
  align-items: center;
  gap: 6px;
}
.vol input {
  width: 0;
  opacity: 0;
  transition: 0.3s;
  accent-color: var(--gold);
  cursor: pointer;
}
.vol:hover input {
  width: 70px;
  opacity: 1;
}
.menu {
  position: relative;
}
.menu-pop {
  position: absolute;
  bottom: 46px;
  right: 0;
  display: none;
  background: rgba(28, 28, 28, 0.98);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  min-width: 140px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  z-index: 5;
}
.menu-pop.open {
  display: block;
}
.menu-pop .mt {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 6px 12px;
}
.menu-pop button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: none;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: 0.15s;
}
.menu-pop button:hover {
  background: var(--hover);
}
.menu-pop button.sel {
  color: var(--gold-bright);
}
.menu-pop button.sel::after {
  content: "✓";
}
@media (max-width: 640px) {
  .ctrl-row {
    gap: 8px;
  }
  .vol input {
    display: none;
  }
}
.aurum-single-title {
  font-size: 24px;
}
.aurum-single-meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}

/* ===== ACTIONS ROW (like/dislike + share) ===== */
.aurum-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.aurum-like-pill {
  display: inline-flex;
  align-items: center;
  background: var(--bg-3);
  border-radius: 999px;
  overflow: hidden;
}
.aurum-reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.aurum-reaction-btn:hover {
  background: var(--hover);
}
.aurum-reaction-btn[data-reaction="like"].is-active {
  color: var(--gold-bright);
}
.aurum-reaction-btn[data-reaction="dislike"].is-active {
  color: var(--red);
}
.aurum-like-pill-sep {
  width: 1px;
  height: 22px;
  background: var(--line);
}
.aurum-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--bg-3);
  border: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.aurum-pill:hover {
  background: var(--hover);
}
.aurum-share-wrap {
  position: relative;
}
.aurum-share-menu {
  position: absolute;
  top: 44px;
  right: 0;
  z-index: 20;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  min-width: 160px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}
.aurum-share-menu a,
.aurum-share-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
}
.aurum-share-menu a:hover,
.aurum-share-menu button:hover {
  background: var(--hover);
}

/* ===== DESCRIPTION BOX ===== */
.aurum-descbox {
  background: var(--bg-2);
  border-radius: 12px;
  padding: 14px 16px;
  max-width: none;
}
.aurum-single-content {
  line-height: 1.75;
  font-size: 15.5px;
}
.aurum-single-content img {
  border-radius: 10px;
}
.aurum-desc-body {
  max-height: 3.5em;
  overflow: hidden;
}
.aurum-desc-body.is-open {
  max-height: none;
}
.aurum-desc-more {
  background: none;
  border: none;
  color: var(--gold-bright);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0 0;
}
.aurum-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}
.aurum-tags a {
  background: var(--bg-3);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--gold-bright);
}

/* ===== COMMENTS (theme WordPress's default markup) ===== */
.comments-area {
  max-width: 900px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.comment-list .comment,
.comment-list .pingback {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.comment-list .avatar {
  border-radius: 50%;
  float: left;
  margin-right: 14px;
}
.comment-author cite {
  font-style: normal;
  font-weight: 600;
}
.comment-metadata a {
  color: var(--muted);
  font-size: 12.5px;
}
#respond input[type="text"],
#respond input[type="email"],
#respond input[type="url"],
#respond textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 12px;
}
#respond textarea {
  min-height: 100px;
}
#respond .form-submit input[type="submit"] {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1a1407;
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 700;
  cursor: pointer;
}

/* ===== FOOTER ===== */
.aurum-before-footer {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}
.aurum-before-footer:empty {
  display: none;
}
.aurum-before-footer-widget {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-bottom: 24px;
}
.aurum-before-footer-title {
  font-size: 22px;
  margin-bottom: 16px;
}
.aurum-before-footer ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.aurum-before-footer li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.aurum-before-footer a {
  color: var(--text);
}
.aurum-before-footer a:hover {
  color: var(--gold-bright);
}
.aurum-footer {
  background: var(--aurum-footer-bg, var(--bg));
  border-top: 1px solid var(--aurum-footer-border, var(--line));
  padding: 28px 24px;
  text-align: center;
  color: var(--aurum-footer-text, var(--muted-2));
  font-size: 13px;
}
.aurum-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .aurum-grid {
    grid-template-columns: repeat(var(--aurum-grid-cols-tablet, 3), minmax(0, 1fr));
  }
  .aurum-watch-layout {
    grid-template-columns: 1fr;
  }
  .aurum-watch-sidebar {
    position: static;
  }
  .aurum-recommendation-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 720px) {
  .aurum-search input {
    width: 120px;
  }
  .aurum-nav {
    display: none;
    position: absolute;
    top: var(--topbar-h);
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 12px;
    border-bottom: 1px solid var(--line);
  }
  .aurum-nav.is-open {
    display: block;
  }
  .aurum-nav ul {
    flex-direction: column;
  }
  .aurum-nav-toggle {
    display: block;
  }
  .aurum-grid {
    grid-template-columns: repeat(var(--aurum-grid-cols-mobile, 2), minmax(0, 1fr));
    gap: 16px;
  }
  .aurum-main {
    padding: 16px;
  }
  .aurum-watch-layout {
    gap: 20px;
  }
  .aurum-recommendation-list {
    grid-template-columns: 1fr;
  }
  .aurum-recommendation-card {
    grid-template-columns: minmax(118px, 42%) minmax(0, 1fr);
  }
  .aurum-recommendation-title {
    font-size: 13.5px;
  }
  .aurum-before-footer {
    padding: 20px;
  }
}

/* ===== AURUM Display homepage layout ===== */
:root {
  --side-w: 240px;
  --ease: cubic-bezier(.2,.7,.3,1);
}

button {
  font-family: inherit;
}

body.no-scroll {
  overflow: hidden;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  background: var(--bg);
}

.tb-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 170px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--text);
  transition: background .2s;
  flex: none;
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--bg-3);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .06em;
}

.logo .mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex: none;
  background: conic-gradient(from 210deg, var(--gold-deep), var(--gold-bright), var(--gold), var(--gold-deep));
  box-shadow: 0 0 12px rgba(212,175,55,.45);
  display: grid;
  place-items: center;
}

.logo .mark span {
  font-family: Georgia, "Playfair Display", serif;
  color: #1a1407;
  font-size: 16px;
  font-weight: 900;
  font-style: italic;
}

.logo .word {
  background: linear-gradient(180deg, #fff, var(--gold-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo img,
.logo .custom-logo {
  width: var(--aurum-logo-width, 120px);
  max-height: 34px;
  object-fit: contain;
}

.tb-center {
  flex: 1;
  display: flex;
  justify-content: center;
  max-width: 680px;
  margin: 0 auto;
}

.searchbar {
  display: flex;
  flex: 1;
  max-width: 560px;
}

.searchbar input {
  flex: 1;
  width: 100%;
  background: #121212;
  border: 1px solid #303030;
  border-right: none;
  border-radius: 40px 0 0 40px;
  padding: 10px 18px;
  color: var(--text);
  font-size: 16px;
  outline: none;
}

.searchbar input:focus {
  border-color: var(--gold);
}

.searchbar input::placeholder {
  color: var(--muted-2);
}

.searchbar .go {
  width: 64px;
  border: 1px solid #303030;
  border-radius: 0 40px 40px 0;
  background: var(--bg-3);
  display: grid;
  place-items: center;
  color: var(--text);
  transition: background .2s;
}

.searchbar .go:hover {
  background: var(--hover);
}

.mic {
  width: 40px;
  height: 40px;
  margin-left: 10px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-3);
  display: grid;
  place-items: center;
  color: var(--text);
  transition: background .2s;
  flex: none;
}

.mic:hover {
  background: var(--hover);
}

.tb-right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 170px;
  justify-content: flex-end;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: none;
  background: linear-gradient(135deg, #3a3a44, #1a1a20);
  border: 1.5px solid var(--gold);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--gold-bright);
  font-size: 15px;
}

.search-icon-mobile {
  display: none;
}

.sidebar {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  bottom: 0;
  width: var(--side-w);
  overflow-y: auto;
  padding: 12px 12px 30px;
  z-index: 150;
  background: var(--bg);
  transition: transform .25s var(--ease);
}

.side-sec {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.side-sec:last-child {
  border: none;
}

.side-link,
.aurum-side-menu a {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.3;
  transition: background .2s;
  cursor: pointer;
}

.side-link:hover,
.aurum-side-menu a:hover {
  background: var(--bg-3);
}

.side-link.active {
  background: var(--bg-3);
  font-weight: 500;
}

.side-link.active svg,
.side-link.active .ic {
  color: var(--gold-bright);
}

.side-link svg {
  flex: none;
  color: var(--text);
}

.side-link .ic,
.aurum-side-menu .ic {
  width: 22px;
  flex: none;
  display: grid;
  place-items: center;
  font-family: Georgia, "Playfair Display", serif;
  font-weight: 900;
  font-size: 16px;
  color: var(--text);
}

.side-cat {
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 10px 12px 4px;
}

.aurum-side-menu ul,
.aurum-side-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main {
  margin-top: var(--topbar-h);
  margin-left: var(--side-w);
  min-height: 70vh;
  transition: margin-left .25s var(--ease);
}

body.side-collapsed .sidebar,
body.view-watch .sidebar {
  transform: translateX(-100%);
}

body.side-collapsed .main,
body.view-watch .main {
  margin: 20px;
}

.chipbar-wrap {
  position: sticky;
  top: var(--topbar-h);
  z-index: 100;
  background: var(--bg);
}

.chipbar {
  display: flex;
  gap: 12px;
  padding: 12px 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chipbar::-webkit-scrollbar,
.subchipbar::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  padding: 8px 14px;
  border-radius: 9px;
  background: var(--bg-3);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: .2s;
}

.chip:hover {
  background: var(--hover);
}

.chip.active {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1a1407;
  font-weight: 700;
}

.subchipbar {
  display: flex;
  gap: 9px;
  padding: 0 24px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.subchip {
  flex: none;
  padding: 6px 13px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: .2s;
}

.subchip:hover {
  background: var(--bg-3);
  color: var(--text);
}

.subchip.active {
  background: var(--text);
  color: #0a0a0a;
  border-color: var(--text);
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  padding: 6px 24px 60px;
}

.vcard {
  display: block;
  cursor: pointer;
}

.vthumb {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  transition: border-radius .2s;
}

.vthumb .grad,
.vthumb .fill {
  position: absolute;
  inset: 0;
}

.vthumb .fill {
  background-size: cover;
  background-position: center;
}

.vthumb .grad::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 28% 22%, rgba(255,255,255,.16), transparent 55%);
}

.vthumb .badge-dur {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(0,0,0,.82);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
}

.vthumb .badge-q {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(212,175,55,.92);
  color: #1a1407;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
}

.vthumb .hover-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.35);
  opacity: 0;
  transition: .25s;
}

.vcard:hover .hover-play {
  opacity: 1;
}

.vcard:hover .vthumb {
  border-radius: 0;
}

.hover-play .pp {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(212,175,55,.95);
  display: grid;
  place-items: center;
  color: #1a1407;
}

.vmeta {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.chan-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: #fff;
  font-family: Georgia, "Playfair Display", serif;
  font-weight: 700;
  font-size: 16px;
}

.vinfo {
  min-width: 0;
}

.vtitle {
  margin: 0 0 5px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.vchannel {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
}

.vchannel .vc-check {
  color: var(--muted-2);
}

.vstats {
  color: var(--muted);
  font-size: 13px;
}

.empty-cat {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted-2);
}

.empty-cat svg {
  margin-bottom: 14px;
  color: var(--muted-2);
}

.empty-cat b {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
}

.home .aurum-ad-grid {
  padding: 12px 24px 20px;
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(0,0,0,.6);
  opacity: 0;
  visibility: hidden;
  transition: .25s;
}

.scrim.show {
  opacity: 1;
  visibility: visible;
}

.aurum-footer,
.aurum-before-footer {
  margin-left: var(--side-w);
  transition: margin-left .25s var(--ease);
}

body.side-collapsed .aurum-footer,
body.side-collapsed .aurum-before-footer,
body.view-watch .aurum-footer,
body.view-watch .aurum-before-footer {
  margin-left: 0;
}

@media (max-width: 1000px) {
  body:not(.side-collapsed) .sidebar {
    transform: translateX(-100%);
    box-shadow: 0 0 40px rgba(0,0,0,.6);
  }

  body:not(.side-collapsed) .main,
  .aurum-footer,
  .aurum-before-footer {
    margin-left: 0;
  }
}

@media (min-width: 1001px) {
  .scrim {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --topbar-h: 54px;
  }

  .tb-center {
    display: none;
  }

  .search-icon-mobile {
    display: grid;
  }

  .tb-left {
    min-width: auto;
  }

  .tb-right {
    min-width: auto;
    gap: 4px;
  }

  .logo {
    font-size: 19px;
  }

  .sidebar {
    width: 260px;
    transform: translateX(-100%);
  }

  .main {
    margin: 20px !important;
  }

  body.mside-open .sidebar {
    transform: translateX(0);
    box-shadow: 0 0 40px rgba(0,0,0,.7);
  }

  .grid {
    grid-template-columns: 1fr;
    padding: 6px 0 70px;
    gap: 18px 0;
  }

  .vthumb {
    border-radius: 0;
  }

  .vmeta {
    padding: 0 12px;
  }

  .chipbar {
    padding: 10px 12px;
  }

  .subchipbar {
    padding: 0 12px 10px;
  }

  .home .aurum-ad-grid {
    padding: 10px 12px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar,
  .main,
  .chip,
  .subchip,
  .vthumb,
  .hover-play {
    transition: none !important;
  }
}


/* ===== Simplified homepage and taxonomy SEO layout ===== */
.tb-right {
  min-width: 48px;
}

.chipbar-wrap {
  border-bottom: 1px solid var(--line);
}

.aurum-tagbar {
  align-items: center;
  padding-top: 0;
}

.aurum-tagbar-label {
  flex: none;
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.aurum-home-intro {
  max-width: 980px;
  margin: 30px auto 22px;
  padding: 0 24px;
  text-align: center;
}

.aurum-home-intro h1 {
  margin: 0 0 10px;
  font-family: inherit;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.3;
}

.aurum-home-intro p {
  max-width: 860px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.aurum-section-title {
  margin: 8px 24px 18px;
  padding-left: 12px;
  border-left: 3px solid var(--gold);
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.35;
}

.aurum-taxonomy-intro {
  max-width: 980px;
  margin: 30px auto 26px;
  padding: 0 24px;
  text-align: center;
}

.aurum-taxonomy-intro .aurum-page-title {
  margin-bottom: 10px;
}

.aurum-taxonomy-description {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.aurum-taxonomy-description p {
  margin: 0;
}

@media (max-width: 768px) {
  .aurum-home-intro,
  .aurum-taxonomy-intro {
    margin-top: 22px;
    padding: 0 12px;
  }

  .aurum-section-title {
    margin: 6px 0 16px;
  }

  .aurum-tagbar-label {
    margin-left: 2px;
  }
}
