:root {
  --brown-950: #1f120c;
  --brown-900: #2d1a10;
  --brown-800: #4a2c1b;
  --brown-700: #684127;
  --brown-600: #865b38;
  --brown-500: #a97b50;
  --brown-200: #dcc5aa;
  --cream: #f7f1e8;
  --paper: #fffdf9;
  --ink: #241c17;
  --muted: #74675d;
  --line: #ded1c3;
  --danger: #a42626;
  --success: #247044;
  --shadow: 0 18px 50px rgba(43, 25, 15, 0.12);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  line-height: 1.65;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
}
button,
input,
textarea,
select {
  font: inherit;
}
.site-container {
  width: min(1280px, calc(100% - 40px));
  margin-inline: auto;
}
.top-notice {
  padding: 7px 0;
  color: #f8e9d7;
  background: #0b0806;
  font-size: 13px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.top-notice i {
  color: #e4a963;
  margin-right: 6px;
}
.site-header {
  position: sticky;
  z-index: 900;
  top: 0;
  background: #24150e;
  border-bottom: 2px solid #8f4e27;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(14px);
}
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 25px;
  letter-spacing: -0.05em;
}
.brand span span,
.footer-brand span,
.admin-brand span {
  color: #d79b57;
}
.brand img {
  display: block;
  max-height: 52px;
  width: auto;
}
.main-nav {
  margin-left: auto;
}
.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.main-nav li {
  position: relative;
}
.main-nav a {
  display: block;
  padding: 10px 13px;
  color: #f1e5d7;
  font-weight: 650;
  font-size: 14px;
}
.main-nav a:hover {
  color: #fff;
  background: #5b301b;
}
.sub-menu {
  position: absolute;
  display: none;
  min-width: 210px;
  top: 100%;
  left: 0;
  margin: 0;
  padding: 7px;
  list-style: none;
  background: #3a2114;
  border: 1px solid #795034;
  box-shadow: var(--shadow);
}
.has-children:hover .sub-menu,
.has-children:focus-within .sub-menu {
  display: block;
}
.header-search {
  display: flex;
  width: 210px;
  border: 1px solid #745038;
  background: #24150e;
}
.header-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  padding: 9px 11px;
  color: #fff;
  background: transparent;
}
.header-search input::placeholder {
  color: #a99483;
}
.header-search button {
  width: 42px;
  border: 0;
  color: #e0b079;
  background: transparent;
}
.nav-toggle {
  display: none;
  border: 1px solid #80573a;
  background: transparent;
  color: #fff;
  font-size: 26px;
}

.ai-editor-panel {
  border-top: 3px solid var(--brown-700);
}
.ai-editor-options,
.ai-editor-history {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: #faf7f3;
}
.ai-editor-panel summary {
  cursor: pointer;
  font-weight: 700;
}
.ai-editor-task-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.ai-editor-task-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  background: #faf7f3;
}
.ai-editor-panel input[type="checkbox"],
.ai-editor-panel input[type="radio"] {
  accent-color: var(--brown-700);
  flex-shrink: 0;
}
.ai-editor-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}
.ai-content-actions {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #faf7f3;
}
.ai-field-button {
  float: right;
  padding: 2px 9px;
  margin: -3px 0 5px 8px;
  font-size: 12px;
}
.ai-editor-message {
  margin: 16px 0 0;
}
.ai-editor-preview {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.ai-editor-preview h3 {
  font-size: 18px;
}
.ai-editor-result {
  min-width: 0;
  padding: 16px;
  margin: 12px 0;
  border: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.ai-editor-result-label,
.ai-editor-title-option {
  display: block;
  margin-bottom: 10px;
}
.ai-editor-title-option {
  font-weight: 400;
}
.ai-editor-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 340px;
  object-fit: contain;
  margin: 12px 0;
}
.ai-editor-content-preview {
  max-height: 460px;
  overflow: auto;
  padding: 12px;
  background: #faf7f3;
}
.ai-editor-history-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.ai-editor-history-row > span:nth-child(2) {
  flex: 1;
  min-width: 180px;
  overflow-wrap: anywhere;
}
.ai-editor-history-row > small {
  flex-basis: 100%;
}
@media (max-width: 1000px) {
  .ai-editor-task-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .ai-editor-panel .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .ai-editor-task-grid {
    grid-template-columns: 1fr;
  }
  .ai-editor-actions > button {
    flex: 1 1 100%;
  }
  .ai-editor-result,
  .ai-editor-options,
  .ai-editor-history {
    padding: 12px;
  }
}
.hero-section {
  overflow: hidden;
  padding: 90px 0;
  background: radial-gradient(
      circle at 82% 45%,
      rgba(177, 110, 57, 0.34),
      transparent 25%
    ),
    linear-gradient(120deg, #24140c, #4d2e1c 58%, #25150d);
  color: #fff;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 60px;
}
.eyebrow {
  margin: 0 0 10px;
  color: #ae7040;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.18em;
}
.hero-section .eyebrow {
  color: #e7b47a;
}
.hero-section h1 {
  max-width: 800px;
  margin: 0 0 22px;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 900;
}
.hero-section h1 span {
  color: #daa16a;
}
.hero-section p {
  max-width: 650px;
  color: #d8c7b9;
  font-size: 18px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}
.btn-brown {
  border-color: var(--brown-700) !important;
  color: #fff !important;
  background: linear-gradient(
    135deg,
    var(--brown-700),
    var(--brown-600)
  ) !important;
  font-weight: 750;
}
.btn-brown:hover {
  border-color: var(--brown-800) !important;
  background: var(--brown-800) !important;
}
.btn-outline-brown {
  border: 1px solid var(--brown-600) !important;
  color: var(--brown-700) !important;
  background: #fff !important;
}
.btn-outline-brown:hover {
  color: #fff !important;
  background: var(--brown-700) !important;
}
.hero-mark {
  position: relative;
  display: grid;
  place-content: center;
  aspect-ratio: 1;
  border: 1px solid rgba(232, 183, 132, 0.35);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.015)
  );
  box-shadow:
    inset 0 0 90px rgba(235, 175, 112, 0.12),
    0 30px 100px rgba(0, 0, 0, 0.32);
}
.hero-mark:before,
.hero-mark:after {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: rotate(12deg);
}
.hero-mark:after {
  transform: rotate(-12deg);
}
.hero-mark span {
  font-size: clamp(90px, 14vw, 190px);
  font-weight: 950;
  line-height: 0.8;
  letter-spacing: -0.12em;
  color: #e4b078;
  text-shadow: 0 14px 45px rgba(0, 0, 0, 0.3);
}
.hero-mark small {
  text-align: center;
  letter-spacing: 0.7em;
  color: #fff;
  margin-top: 22px;
}
.content-section {
  padding: 78px 0;
}
.section-space {
  padding-block: 32px;
}
.section-dark {
  color: #fff;
  background: #24150e;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 30px;
}
.section-heading h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 850;
  letter-spacing: -0.04em;
}
.section-heading > a {
  color: var(--brown-500);
  font-weight: 750;
}
.stream-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.post-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stream-card,
.post-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 14px 34px rgba(63, 37, 21, 0.07);
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.section-dark .stream-card {
  border-color: #68442e;
  background: #321e13;
}
.stream-card:hover,
.post-card:hover {
  transform: translateY(-5px);
  border-color: #af7a4c;
}
.media-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #3b2417;
}
.media-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.stream-card:hover img,
.post-card:hover img {
  transform: scale(1.04);
}
.cover-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #e7b47a;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.08em;
  background: radial-gradient(circle at 70% 20%, #714429, #2a180f);
}
.live-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  color: #fff;
  background: #a42626;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
}
.live-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.13);
}
.live-badge.static {
  position: static;
}
.play-icon {
  position: absolute;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(40, 22, 13, 0.72);
  font-size: 27px;
}
.card-body-square {
  padding: 20px;
}
.card-body-square h2,
.card-body-square h3 {
  margin: 7px 0 9px;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 800;
}
.card-body-square p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.section-dark .card-body-square p {
  color: #baa899;
}
.category-label {
  display: inline-block;
  color: #8b582f;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.card-body-square time {
  display: block;
  margin-top: 15px;
  color: #99887b;
  font-size: 12px;
}
.ad-stack {
  display: grid;
  gap: 12px;
}
.ad-stack a {
  display: block;
  border: 1px solid var(--line);
  background: #eee;
}
.ad-stack img {
  display: block;
  width: 100%;
  max-height: 150px;
  object-fit: cover;
}
.ad-header {
  width: min(1400px, calc(100% - 36px));
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 0;
  overflow: hidden;
  padding-block: 16px 10px;
  background: #0b0807;
  box-shadow: 0 0 0 100vmax #0b0807;
  clip-path: inset(0 -100vmax);
  scrollbar-width: none;
}
.ad-header a {
  border: 0;
  background: #160e0a;
}
.ad-header img {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 728 / 90;
  object-fit: contain;
}
.ad-footer {
  padding-block: 25px;
}
.page-hero {
  padding: 66px 0;
  color: #fff;
  background: linear-gradient(120deg, #2b190f, #5c3923);
}
.page-hero p {
  max-width: 640px;
  margin: 12px 0 0;
  color: #d8c5b6;
}
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--cream);
}
.filter-bar input {
  flex: 1;
  min-width: 0;
}
.filter-bar input,
.filter-bar select {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #cdbba9;
  background: #fff;
  outline: none;
}
.filter-dark {
  border-color: #63412d;
  background: #332015;
}
.filter-dark input {
  color: #fff;
  border-color: #79513a;
  background: #24150e;
}
.empty-state {
  padding: 46px;
  border: 1px dashed #bda58e;
  color: var(--muted);
  text-align: center;
}
.pagination-square {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 32px;
}
.pagination-square a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: #fff;
}
.pagination-square a.active {
  color: #fff;
  border-color: var(--brown-700);
  background: var(--brown-700);
}
.article-page {
  padding: 60px 0 80px;
  background: var(--cream);
}
.article-shell {
  width: min(900px, calc(100% - 40px));
  margin: auto;
  padding: 44px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
  color: #8a7768;
  font-size: 13px;
}
.article-page h1 {
  margin: 12px 0 18px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.article-meta {
  display: flex;
  gap: 18px;
  color: #907f73;
  font-size: 13px;
}
.article-lead {
  margin: 22px 0 0;
  color: #5f5147;
  font-size: 19px;
}
.article-cover {
  display: block;
  width: 100%;
  margin: 30px 0;
  max-height: 560px;
  object-fit: cover;
}
.article-content {
  color: #352b25;
  font-size: 17px;
}
.article-content h2 {
  margin: 38px 0 12px;
  font-size: 30px;
}
.article-content h3 {
  margin: 28px 0 10px;
  font-size: 23px;
}
.article-content img {
  height: auto;
  margin: 22px auto;
}
.article-content a {
  color: #8b542d;
  text-decoration: underline;
}
.article-content blockquote {
  margin: 25px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--brown-600);
  background: var(--cream);
}
.stream-page {
  padding: 40px 0 70px;
  color: #fff;
  background: #180e09;
  min-height: 75dvh;
}
.breadcrumbs-dark {
  color: #c3aa97;
}
.stream-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 20px 0;
}
.stream-title .stream-name {
  margin: 12px 0 0;
  font-size: 42px;
  font-weight: 800;
}
.player-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.player-layout.has-chat {
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
}
.player-frame,
.chat-frame {
  height: min(68dvh, 760px);
  min-height: 460px;
  background: #000;
  border: 1px solid #62412e;
}
.player-frame iframe,
.chat-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.stream-description {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid #5d3e2b;
  background: #2c1b12;
}
.stream-description h1,
.home-stream-description h1 {
  margin: 0 0 15px;
  font-size: clamp(26px, 3vw, 36px);
}
.stream-description .article-content {
  color: #dfd0c4;
}
.search-results {
  display: grid;
  gap: 12px;
}
.search-results > a {
  padding: 22px;
  border: 1px solid var(--line);
  background: #fff;
}
.search-results h2 {
  margin: 7px 0;
  font-size: 23px;
}
.search-results p {
  margin: 0;
  color: var(--muted);
}
.site-footer {
  padding-top: 60px;
  color: #d5c4b6;
  background: #24150e;
  border-top: 1px solid #6d472f;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 45px;
}
.footer-grid h2 {
  font-size: 16px;
  color: #fff;
}
.footer-grid p {
  max-width: 440px;
  color: #a99483;
}
.footer-grid ul {
  padding: 0;
  list-style: none;
}
.footer-grid li {
  margin: 8px 0;
}
.footer-grid a {
  display: block;
  color: #d7c7bb;
}
.footer-brand {
  margin-bottom: 14px;
}
.copyright {
  padding: 17px;
  text-align: center;
  color: #9f8979;
  border-top: 1px solid #4f3322;
  font-size: 13px;
}
.ad-popup {
  position: fixed;
  z-index: 1200;
  right: 20px;
  bottom: 20px;
  width: min(420px, calc(100% - 40px));
  padding: 8px;
  background: #fff;
  border: 1px solid #8a6041;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.32);
}
.ad-popup-close {
  position: absolute;
  right: -1px;
  top: -37px;
  width: 36px;
  height: 36px;
  color: #fff;
  border: 0;
  background: #3d2416;
  font-size: 25px;
}
.not-found {
  display: grid;
  place-items: center;
  min-height: 65dvh;
  text-align: center;
  background: var(--cream);
}
.not-found span {
  color: var(--brown-500);
  font-size: 100px;
  font-weight: 950;
}
.not-found h1 {
  font-size: 42px;
}
.auth-page {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 24px;
  background: radial-gradient(circle at 75% 20%, #765036, #24150e 55%);
}
.auth-card {
  width: min(440px, 100%);
  padding: 38px;
  border: 1px solid #d7c4b0;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}
.auth-card-wide {
  width: min(540px, 100%);
}
.auth-brand {
  color: var(--brown-900);
  margin-bottom: 25px;
}
.auth-card h1 {
  margin-bottom: 24px;
  font-weight: 850;
}
.setup-link {
  display: block;
  margin-top: 20px;
  color: var(--brown-700);
  text-align: center;
}
.admin-body {
  background: #f1ece6;
}
.admin-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  width: 100%;
  min-height: 100dvh;
}
.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  color: #dbc9ba;
  background: #25160e;
  border-right: 1px solid #5d3b27;
}
.admin-brand {
  padding: 25px 22px;
  border-bottom: 1px solid #4f3322;
}
.admin-brand a {
  display: block;
  color: #fff;
  font-size: 23px;
  font-weight: 900;
}
.admin-brand small {
  color: #9e8878;
  font-size: 10px;
  letter-spacing: 0.15em;
}
.admin-sidebar nav {
  display: grid;
  gap: 3px;
  padding: 18px 10px;
}
.admin-sidebar nav a,
.admin-sidebar-foot a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
}
.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
  color: #fff;
  background: #654027;
  border-left: 3px solid #e1a565;
}
.admin-sidebar-foot {
  margin-top: auto;
  padding: 14px 10px;
  border-top: 1px solid #4f3322;
}
.admin-main {
  width: 100%;
  min-width: 0;
}
/* Cho cột admin co lại theo viewport; bảng chỉ cuộn trong khung riêng. */
.admin-content > *,
.admin-panel,
.editor-grid > *,
.admin-split > *,
.admin-split-small > *,
.form-grid > *,
.media-card {
  min-width: 0;
}
.admin-content .table-responsive {
  min-width: 0;
  max-width: 100%;
}
.admin-page-head > *,
.panel-head > *,
.admin-topbar > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.admin-topbar {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 30px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.admin-topbar button {
  display: none;
  border: 0;
  background: transparent;
  font-size: 26px;
}
.admin-topbar small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.admin-content {
  width: 100%;
  max-width: none;
  padding: 30px;
}
.admin-page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.admin-page-head h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 850;
}
.admin-page-head p:last-child {
  margin: 5px 0 0;
  color: var(--muted);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.stat-grid article {
  padding: 24px;
  color: #fff;
  background: linear-gradient(135deg, #3a2215, #70462b);
  border-bottom: 4px solid #d49a61;
}
.stat-grid span {
  display: block;
  color: #d6c1b0;
}
.stat-grid strong {
  display: block;
  margin-top: 12px;
  font-size: 38px;
}
.admin-panel {
  margin-bottom: 22px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(58, 34, 20, 0.05);
}
.admin-panel h2 {
  font-size: 21px;
  font-weight: 800;
}
.admin-panel h3 {
  font-size: 16px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.panel-head h2,
.panel-head p {
  margin: 0;
}
.panel-head p {
  color: var(--muted);
  font-size: 13px;
}
.admin-table {
  margin: 0;
}
.admin-table th {
  padding: 12px;
  color: #6d5b4e;
  background: #f2ebe4;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.admin-table td {
  padding: 13px 12px;
  vertical-align: middle;
}
.admin-table td small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-table td > a {
  color: #855331;
  font-weight: 750;
}
.admin-thumb {
  width: 90px;
  height: 52px;
  object-fit: cover;
}
.status {
  display: inline-block;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
}
.status-published,
.status-active {
  color: #176037;
  background: #d9f3e4;
}
.status-draft,
.status-inactive {
  color: #7b3e28;
  background: #f4ded3;
}
.admin-toolbar,
.bulk-bar {
  display: flex;
  gap: 9px;
  margin-bottom: 15px;
}
.admin-toolbar input {
  flex: 1;
}
.admin-toolbar > *,
.bulk-bar > * {
  min-width: 0;
}
.admin-toolbar select,
.bulk-bar select {
  max-width: 220px;
}
.bulk-bar {
  padding: 10px;
  background: #f5f0eb;
  border: 1px solid var(--line);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
.form-grid label,
.admin-panel > form > label,
.sticky-panel label {
  display: block;
}
.field-full {
  grid-column: 1/-1;
}
.admin-panel label {
  font-size: 13px;
  font-weight: 700;
}
.admin-panel label > .form-control,
.admin-panel label > .form-select,
.admin-panel label > .input-group {
  margin-top: 6px;
}
.admin-panel small {
  color: var(--muted);
}
.check-field {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 11px;
  border: 1px solid var(--line);
  background: #f8f4f0;
}
.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
}
.sticky-panel {
  position: sticky;
  top: 94px;
}
.sticky-panel > * {
  margin-bottom: 14px;
}
.quill-wrap {
  margin-top: 7px;
}
.ql-toolbar.ql-snow,
.ql-container.ql-snow {
  border-color: #cdbdad !important;
}
.ql-editor {
  min-height: 360px;
  font-size: 16px;
}
.admin-split {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 22px;
}
.admin-split-small {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
}
.category-list {
  max-height: 360px;
  overflow: auto;
  padding: 0;
  list-style: none;
}
.category-list li {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.toggle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.toggle-card {
  display: flex;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  background: #f7f2ed;
}
.sticky-save {
  position: sticky;
  bottom: 0;
  padding: 14px;
  text-align: right;
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid var(--line);
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.media-card {
  position: relative;
  border: 1px solid var(--line);
  background: #fff;
}
.media-preview {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: #eee;
}
.media-preview img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-card > div:last-child {
  padding: 11px;
}
.media-card strong,
.media-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media-select {
  position: absolute;
  z-index: 2;
  top: 7px;
  left: 7px;
  padding: 3px 6px;
  background: #fff;
}
.copy-button {
  margin-top: 8px;
  border: 0;
  padding: 0;
  color: #805033;
  background: transparent;
  font-size: 12px;
}
.media-modal[hidden] {
  display: none;
}
.media-modal {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}
.media-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(20, 11, 6, 0.72);
}
.media-modal > section {
  position: relative;
  width: min(1000px, 100%);
  max-height: 85dvh;
  overflow: auto;
  background: #fff;
  border: 1px solid #6b452e;
}
.media-modal header {
  display: flex;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.media-modal header h2,
.media-modal header p {
  margin: 0;
}
.media-modal header button {
  border: 0;
  background: transparent;
  font-size: 28px;
}
.media-modal-tools {
  display: flex;
  gap: 10px;
  padding: 14px 20px;
}
.media-modal-tools input {
  flex: 1;
  padding: 9px;
  border: 1px solid var(--line);
}
.media-modal-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 20px;
}
.media-modal-grid button {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid transparent;
  background: #eee;
}
.media-modal-grid button:hover {
  border-color: var(--brown-600);
}
.media-modal-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-modal footer {
  padding: 15px 20px;
  border-top: 1px solid var(--line);
}
@media (max-width: 1100px) {
  .post-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .player-layout.has-chat {
    grid-template-columns: 1fr;
  }
  .chat-frame {
    height: 480px;
  }
  .media-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .toggle-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .header-inner {
    min-height: 64px;
  }
  .nav-toggle {
    display: block;
    margin-left: auto;
  }
  .main-nav {
    position: absolute;
    display: none;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 10px 20px;
    background: #2d1a10;
    border-top: 1px solid #654027;
  }
  .main-nav.open {
    display: block;
  }
  .main-nav > ul {
    display: block;
  }
  .sub-menu {
    position: static;
    display: block;
    border: 0;
    box-shadow: none;
    background: #382116;
    padding-left: 18px;
  }
  .header-search {
    width: 180px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-mark {
    display: none;
  }
  .stream-grid,
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .admin-sidebar {
    position: fixed;
    z-index: 1500;
    left: -280px;
    width: 260px;
    transition: left 0.2s;
  }
  .admin-sidebar.open {
    left: 0;
  }
  .admin-topbar button {
    display: block;
  }
  .editor-grid,
  .admin-split,
  .admin-split-small {
    grid-template-columns: minmax(0, 1fr);
  }
  .sticky-panel {
    position: static;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .media-grid,
  .media-modal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .site-container {
    width: min(100% - 24px, 1280px);
  }
  .header-search {
    display: none;
  }
  .hero-section {
    padding: 62px 0;
  }
  .hero-section h1 {
    font-size: 43px;
  }
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .content-section {
    padding: 55px 0;
  }
  .stream-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }
  .section-heading {
    align-items: start;
  }
  .filter-bar,
  .admin-toolbar,
  .bulk-bar {
    flex-direction: column;
  }
  .filter-bar select,
  .admin-toolbar select,
  .bulk-bar select {
    max-width: none;
  }
  .article-shell {
    width: 100%;
    padding: 25px 18px;
    border-left: 0;
    border-right: 0;
  }
  .article-page {
    padding: 0;
  }
  .article-page h1 {
    font-size: 36px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .player-frame,
  .chat-frame {
    min-height: 300px;
    height: 56dvh;
  }
  .stream-title {
    align-items: start;
    flex-direction: column;
  }
  .admin-content {
    padding: 18px 12px;
  }
  .admin-topbar {
    padding-inline: 12px;
  }
  .admin-topbar button {
    flex-shrink: 0;
  }
  .admin-page-head,
  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field-full {
    grid-column: auto;
  }
  .toggle-grid {
    grid-template-columns: 1fr;
  }
  .media-grid,
  .media-modal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-panel {
    padding: 17px;
  }
  .auth-card {
    padding: 28px 22px;
  }
}

.home-live-section {
  min-height: 70dvh;
  padding: 14px 0 58px;
  color: #fff;
  background: radial-gradient(
      circle at 82% 0,
      rgba(128, 70, 34, 0.16),
      transparent 34%
    ),
    #0b0807;
}
.home-live-section .site-container,
.home-post-section .site-container,
.home-ad-section .site-container {
  width: min(1400px, calc(100% - 36px));
}
.home-stream-ads {
  padding: 0 0 8px;
}
.home-stream-ads.is-empty {
  min-height: 100px;
  border: 1px solid #35241c;
  background: linear-gradient(90deg, #120d0b, #17100d, #120d0b);
}
.home-stream-ads .ad-stack {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 0;
  overflow: hidden;
  scrollbar-width: none;
}
.ad-header::-webkit-scrollbar,
.home-stream-ads .ad-stack::-webkit-scrollbar {
  display: none;
}
.home-stream-ads .ad-stack a {
  border: 0;
  background: #160e0a;
}
.home-stream-ads .ad-stack img {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 728 / 90;
  object-fit: contain;
}
.home-stream-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0;
  padding: 7px;
  border: 1px solid #422b20;
  border-bottom: 2px solid #9a5128;
  background: #130e0c;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.home-stream-tabs::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.home-stream-tabs a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 20px;
  color: #d8cbc2;
  border: 1px solid #46382f;
  background: linear-gradient(180deg, #211a16, #15100e);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  font-size: 13px;
  font-weight: 800;
}
.home-stream-tabs a span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8d7564;
}
.home-stream-tabs a:hover,
.home-stream-tabs a.active {
  color: #fff;
  border-color: #b76532;
  background: linear-gradient(180deg, #a95d30, #753719);
}
.home-stream-tabs a.active span {
  background: #9f2121;
  box-shadow: 0 0 0 4px rgba(159, 33, 33, 0.15);
}
.stream-swipe-hint {
  display: none;
  margin: 0 0 14px;
  color: #a9917f;
  font-size: 11px;
  text-align: center;
}
.home-stream-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 56px;
  margin: 0;
  padding: 9px 14px;
  border: 1px solid #422b20;
  border-top: 0;
  background: #17100d;
}
.home-stream-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.home-stream-heading h1 {
  margin: 0;
  font-size: clamp(17px, 2vw, 23px);
  font-weight: 800;
  letter-spacing: -0.015em;
}
.home-stream-heading .btn {
  padding: 7px 12px;
  border-color: #60402f;
  font-size: 12px;
}
.stream-config-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  width: 100%;
  min-height: 420px;
  color: #d7c1b0;
  background: #050404;
}
.stream-config-empty i {
  color: #d89c61;
  font-size: 54px;
}
.home-stream-description {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid #3f2b21;
  border-left: 3px solid #a45b30;
  background: #17110e;
}
.home-stream-description .article-content {
  color: #dfd0c4;
}
.stream-order-input {
  width: 90px;
}
.home-live-section .player-layout {
  gap: 6px;
  padding-top: 6px;
  background: #0b0807;
}
.home-live-section .player-frame,
.home-live-section .chat-frame {
  min-width: 0;
  height: clamp(500px, 66dvh, 720px);
  border-color: #4d3022;
}
.home-live-section .chat-frame {
  border-top: 3px solid #9d522b;
}
.chat-config-empty {
  height: 100%;
  min-height: 100%;
}
.chat-config-empty i {
  color: #b86e43;
}
.home-ad-section {
  background: #0b0807;
}
.home-ad-section .section-space {
  padding-block: 0 32px;
}
.home-ad-section .ad-stack {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 8px;
}
.home-ad-section .ad-stack a {
  border-color: #432d22;
  background: #16100d;
}
.home-post-section {
  padding: 58px 0 76px;
  color: #fff;
  background: #0b0807;
}
.home-post-section .section-heading {
  margin-bottom: 25px;
  padding-bottom: 14px;
  border-bottom: 1px solid #30231d;
}
.home-post-section .section-heading h2 {
  font-size: clamp(25px, 3vw, 34px);
}
.home-post-section .section-heading h2 i {
  margin-right: 8px;
  color: #c37849;
  font-size: 0.78em;
}
.home-post-section .eyebrow {
  color: #b86a3d;
}
.home-more-link {
  padding: 10px 17px;
  color: #fff !important;
  border: 1px solid #9a522c;
  background: #7a3a1d;
}
.home-more-link:hover {
  background: #a85a2d;
}
.home-post-section .post-card {
  border-color: #3b2d27;
  background: #1a1512;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.22);
}
.home-post-section .post-card:hover {
  border-color: #9f5a34;
}
.home-post-section .card-body-square {
  padding: 17px;
}
.home-post-section .card-body-square h3 {
  display: -webkit-box;
  overflow: hidden;
  min-height: 54px;
  color: #f4eee9;
  font-size: 18px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.home-post-section .card-body-square p {
  color: #9f938b;
}
.home-post-section .category-label {
  color: #ce8051;
}
.home-post-section .empty-state {
  color: #a99d95;
  border-color: #48362d;
  background: #15100d;
}
@media (max-width: 900px) {
  .stream-swipe-hint {
    display: block;
  }
}
@media (max-width: 640px) {
  .home-live-section {
    padding-top: 8px;
  }
  .home-live-section .site-container,
  .home-post-section .site-container,
  .home-ad-section .site-container,
  .ad-header {
    width: calc(100% - 16px);
  }
  .home-stream-heading {
    gap: 8px;
    padding: 8px;
  }
  .home-stream-heading h1 {
    max-width: 185px;
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .home-stream-heading .live-badge {
    display: none;
  }
  .home-stream-heading .btn {
    padding: 6px 8px;
    font-size: 11px;
  }
  .home-stream-tabs {
    margin-inline: -8px;
    border-inline: 0;
  }
  .home-stream-tabs a {
    min-height: 40px;
    padding: 7px 14px;
  }
  .home-stream-ads.is-empty {
    min-height: 76px;
  }
  .home-stream-ads .ad-stack {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    overflow: visible;
    scroll-snap-type: none;
  }
  .home-stream-ads .ad-stack a {
    min-width: 0;
  }
  .home-stream-ads .ad-stack img {
    height: auto;
    max-height: none;
    aspect-ratio: 728 / 90;
  }
  .home-live-section .player-frame {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .home-live-section .chat-frame {
    height: 65dvh;
    min-height: 390px;
  }
  .home-live-section .stream-config-empty {
    height: 100%;
    min-height: 100%;
  }
  .home-stream-description {
    padding: 20px 16px;
  }
  .home-post-section {
    padding: 48px 0 60px;
  }
  .home-post-section .post-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
  }
  .home-post-section .post-card {
    flex: 0 0 min(82vw, 315px);
    scroll-snap-align: start;
  }
  .home-post-section .section-heading {
    align-items: center;
    flex-direction: row;
  }
  .home-post-section .section-heading h2 {
    font-size: 23px;
  }
  .home-more-link {
    flex: 0 0 auto;
    padding: 8px 11px;
    font-size: 12px;
  }
  .ad-header {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    overflow: visible;
    scroll-snap-type: none;
  }
  .ad-header a {
    min-width: 0;
  }
  .ad-header img {
    height: auto;
    max-height: none;
    aspect-ratio: 728 / 90;
  }
}

.ai-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
}
.ai-generate-form {
  border-top: 4px solid var(--brown-600);
}
.ai-planner-panel {
  border-top: 4px solid #b47b42;
  background: linear-gradient(135deg, #fff, #fcf6ee);
}
.ai-plan-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.ai-plan-history {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
  font-size: 12px;
}
.ai-plan-history a,
.ai-proposal-card a,
.ai-plan-detail a {
  color: var(--brown-700);
  overflow-wrap: anywhere;
}
.ai-proposal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.ai-proposal-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brown-500);
  background: #fffdf9;
}
.ai-proposal-card h3 {
  margin: 14px 0 0;
  font-size: 20px;
  line-height: 1.5;
}
.ai-proposal-card dl {
  margin: 0;
}
.ai-proposal-card dl > div {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #eee4da;
  font-size: 13px;
}
.ai-proposal-card dt {
  color: var(--muted);
}
.ai-proposal-card dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.ai-proposal-card > .btn {
  align-self: start;
  margin-top: auto;
}
.ai-plan-detail {
  margin-top: 16px;
  padding: 15px;
  border: 1px solid var(--line);
  background: #faf6f0;
}
.ai-plan-detail summary,
.ai-proposal-card summary {
  font-weight: 750;
  cursor: pointer;
}
.ai-plan-detail ul,
.ai-proposal-card details ul {
  margin: 12px 0 0;
}
.ai-research-text {
  margin-top: 15px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
}
@media (max-width: 900px) {
  .ai-proposal-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .ai-proposal-card {
    padding: 16px;
  }
  .ai-proposal-card dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
.ai-submit-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}
.ai-submit-row [data-ai-progress] {
  color: var(--muted);
  font-size: 13px;
}
.ai-config-card dl {
  margin: 0 0 18px;
}
.ai-config-card dl > div {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.ai-config-card dt {
  color: var(--muted);
  font-size: 12px;
}
.ai-config-card dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 750;
}
.ai-duplicate-panel {
  border-left: 4px solid #b8552e;
}
.ai-duplicate-panel .list-group-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.ai-duplicate-panel .list-group-item span {
  color: #9b3d24;
  white-space: nowrap;
}
@media (max-width: 1000px) {
  .ai-layout {
    grid-template-columns: 1fr;
  }
  .ai-layout .sticky-panel {
    position: static;
  }
}
@media (max-width: 640px) {
  .ai-submit-row,
  .ai-duplicate-panel .list-group-item {
    align-items: stretch;
    flex-direction: column;
  }
  .ai-duplicate-panel .list-group-item span {
    white-space: normal;
  }
}

.nav-toggle {
  min-width: 44px;
  height: 42px;
  font-size: 0;
}
.nav-toggle::before {
  content: "☰";
  font-size: 26px;
  line-height: 1;
}

/* Search Console: báo cáo nhiều domain, dùng chung khung admin. */
.gsc-page .gsc-stat-grid article {
  background: linear-gradient(135deg, #112d3b, #20566a);
  border-color: #40c4ae;
}
.gsc-page .gsc-stat-grid article:nth-child(2) {
  background: linear-gradient(135deg, #25325a, #45579b);
  border-color: #91a8fa;
}
.gsc-stat-grid small {
  display: block;
  margin-top: 12px;
  color: #c9dfdf;
  font-size: 11px;
}
.gsc-status-verified { color: #12604b; background: #d9f5ec; }
.gsc-status-pending, .gsc-status-verifying { color: #8a590d; background: #fff1cd; }
.gsc-status-error { color: #a0293d; background: #ffe2e8; }
.gsc-status-paused { color: #506070; background: #e8edf2; }
.gsc-connection summary, .gsc-actions, .gsc-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.gsc-connection summary { cursor: pointer; justify-content: space-between; }
.gsc-connection summary span, .gsc-note { font-size: 12px; color: #677886; }
.gsc-filter {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(130px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}
.gsc-filter label { min-width: 0; }
.gsc-filter .form-control, .gsc-filter .form-select { min-height: 42px; }
.gsc-tabs { margin-bottom: 18px; border-bottom: 1px solid #dce5ec; gap: 0; }
.gsc-tabs a { padding: 12px 16px; color: #526575; border-bottom: 3px solid transparent; }
.gsc-tabs a.active { color: #166556; border-color: #27a08a; background: #edf8f5; }
.gsc-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.gsc-chart { padding: 16px; border: 1px solid #e0e9ee; background: #f8fbfc; min-width: 0; }
.gsc-chart > div:first-child { display: flex; justify-content: space-between; gap: 10px; }
.gsc-chart svg { display: block; width: 100%; height: auto; }
.gsc-chart-line { fill: none; stroke: #159c86; stroke-width: 2.5; }
.gsc-chart circle { fill: #159c86; }
.gsc-chart-impressions .gsc-chart-line { stroke: #647acb; }
.gsc-chart-impressions circle { fill: #647acb; }
.gsc-grid-line { fill: none; stroke: #dce5ec; stroke-width: 1; }
.gsc-chart text { fill: #667887; font-size: 11px; }
.gsc-error { max-width: 300px; margin-top: 7px; color: #a0293d; font-size: 11px; overflow-wrap: anywhere; }
.gsc-domain-table td:nth-child(2) { min-width: 220px; max-width: 380px; overflow-wrap: anywhere; }
.gsc-detail-value { min-width: 220px; max-width: 650px; overflow-wrap: anywhere; }
.gsc-detail-value div + div { margin-top: 6px; color: #667887; }
.gsc-bulk-bar { flex-wrap: wrap; }
.gsc-bulk-bar input { max-width: 260px; }
@media (max-width: 1200px) {
  .gsc-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gsc-filter label:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .gsc-filter, .gsc-charts { grid-template-columns: minmax(0, 1fr); }
  .gsc-bulk-bar > *, .gsc-bulk-bar input, .gsc-bulk-bar select { max-width: none; width: 100%; }
  .gsc-tabs a { padding: 10px 12px; font-size: 12px; }
  .gsc-stat-grid strong { font-size: 28px; }
}
@media (max-width: 640px) {
  .top-notice .site-container {
    overflow-wrap: anywhere;
  }
  .hero-grid > * {
    min-width: 0;
  }
  .hero-section h1 {
    max-width: 100%;
    font-size: 38px;
    overflow-wrap: break-word;
  }
  .hero-section p {
    max-width: 100%;
    font-size: 16px;
    overflow-wrap: anywhere;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
