/* =========================================================================
   VIET69Z - CLASSIC MINIMALIST TUBE THEME
   Thiết kế giao diện siêu gọn nhẹ, tốc độ tải tức thì, chuẩn phong cách Viet69z
   ========================================================================= */

:root {
  --bg-body: #2c2c2c;
  --bg-header: #181818;
  --bg-section: #1b1b1b;
  --bg-card: transparent;
  --bg-btn: #2b2b2b;
  --border-btn: #3c3c3c;
  --border-subtle: #2d2d2d;
  
  --primary: #cc0000;
  --primary-hover: #ff2222;
  --badge-red: #cc181e;
  
  --text-primary: #ffffff;
  --text-title: #e0e0e0;
  --text-muted: #888888;
  
  --container-max: 1120px;
}

/* RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 14px;
  background-color: var(--bg-body);
}

body {
  font-family: Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

button, input {
  font-family: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 10px;
}

/* ================= TOP HEADER ================= */
#site-header {
  background: var(--bg-header);
  border-bottom: 1px solid #141414;
  padding: 16px 0 14px;
  margin-bottom: 25px;
}

.header-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.header-logo-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.branding-logo {
  display: inline-flex;
  align-items: center;
  user-select: none;
  text-decoration: none;
}

.logo-text-viet {
  font-size: 38px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -1px;
  line-height: 1;
}

.logo-badge-69 {
  background: var(--badge-red);
  color: #ffffff;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  padding: 3px 8px;
  border-radius: 4px;
  margin: 0 2px 0 3px;
  display: inline-block;
  vertical-align: middle;
}

.logo-text-z {
  font-size: 38px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -1px;
  line-height: 1;
}

@media (max-width: 600px) {
  .logo-text-viet, .logo-text-z {
    font-size: 30px;
  }
  .logo-badge-69 {
    font-size: 24px;
    padding: 2px 6px;
  }
}

/* ================= CATEGORY NAV BAR ================= */
.category-nav-bar {
  width: 100%;
}

.cat-menu-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.cat-chip-btn {
  background: var(--bg-btn);
  border: 1px solid var(--border-btn);
  color: #ddd;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.cat-chip-btn:hover {
  color: #ff3333;
  background: #333333;
}

.cat-chip-btn.active {
  background: var(--bg-btn);
  border-color: var(--border-btn);
  color: #ff3333; /* Chữ đỏ khi đang chọn */
}

/* ================= MAIN CONTENT WRAPPER ================= */
.main-wrapper {
  flex: 1;
  padding-bottom: 30px;
}

/* ================= SECTION TOP BAR (TITLE + SEARCH) ================= */
.section-top-bar {
  background: var(--bg-section);
  border: 1px solid #282828;
  border-left: 4px solid var(--primary); /* Dải đỏ dọc đặc trưng */
  padding: 6px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  gap: 10px;
}

.section-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.section-search-wrap {
  flex-shrink: 0;
}

.section-search-form {
  display: flex;
  align-items: center;
}

.search-input {
  background: #383838;
  border: 1px solid #4a4a4a;
  color: #fff;
  font-size: 12.5px;
  padding: 4px 9px;
  width: 170px;
  height: 26px;
  border-radius: 2px 0 0 2px;
  outline: none;
  box-sizing: border-box;
}

.search-input::placeholder {
  color: #888;
}

.search-input:focus {
  border-color: #777;
}

.search-btn {
  background: #b22222;
  color: #fff;
  border: none;
  font-size: 12px;
  font-weight: 700;
  padding: 0 12px;
  height: 26px;
  line-height: 26px;
  border-radius: 0 2px 2px 0;
  cursor: pointer;
  transition: background 0.15s ease;
  box-sizing: border-box;
}

.search-btn:hover {
  background: var(--primary);
}

@media (max-width: 600px) {
  .section-top-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-search-wrap {
    width: 100%;
  }
  .section-search-form {
    width: 100%;
  }
  .search-input {
    flex: 1;
    width: 100%;
  }
}

/* ================= LAYOUT COLS ================= */
#home-view .layout-cols {
  display: block;
}

#home-view .sidebar-wrapper {
  display: none;
}

.content-left {
  width: 100%;
}

/* ================= VIDEO GRID ================= */
.video-grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px 12px;
}

@media (max-width: 960px) {
  .video-grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .video-grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 8px;
  }
}

/* VIDEO CARD - CORE WEB VITALS OPTIMIZED */
.video-card {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  content-visibility: auto;
  contain-intrinsic-size: 320px 240px;
}

.video-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #151515;
  overflow: hidden;
  border-radius: 0;
}

.video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}

.video-card-body {
  padding: 6px 0 0 0;
}

.video-card-title {
  font-size: 13px;
  font-weight: normal;
  line-height: 1.35;
  color: #ddd;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 35px;
  margin: 0;
  transition: color 0.15s ease;
}

.video-card-title a {
  color: inherit;
  text-decoration: none;
}

.video-card:hover .video-card-title,
.video-card:hover .video-card-title a {
  color: #ff3333;
}

/* Ẩn các badge và icon không cần thiết trên card để giống 100% ảnh mẫu */
.video-card-meta,
.video-hd-badge,
.video-hover-play-icon,
.video-duration-badge {
  display: none !important;
}

/* ================= PAGINATION ================= */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin: 25px 0 35px;
  flex-wrap: wrap;
}

.btn-page {
  background: var(--bg-btn);
  border: 1px solid var(--border-btn);
  color: #ddd;
  padding: 6px 12px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 32px;
  text-align: center;
}

.btn-page:hover:not(.active):not(:disabled) {
  background: #383838;
  color: #fff;
}

.btn-page.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn-page:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ================= SEO TAGS CLOUD BOX (DƯỚI PHÂN TRANG) ================= */
.seo-tags-box {
  background: #191919;
  border: 1px solid #363636;
  border-left: 4px solid var(--primary);
  padding: 18px 20px;
  margin: 24px 0 32px;
  border-radius: 4px;
}

.seo-tags-header {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.seo-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
}

.seo-tag-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #242424 !important;
  border: 1px solid #4a4a4a !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 7px 15px !important;
  margin: 4px 2px !important;
  border-radius: 4px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: all 0.18s ease !important;
  line-height: 1.4 !important;
  cursor: pointer !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4) !important;
}

.seo-tag-pill i {
  color: #ff3333 !important;
  font-size: 11px !important;
  transition: color 0.18s ease !important;
}

.seo-tag-pill:hover {
  background: #cc0000 !important;
  color: #ffffff !important;
  border-color: #ff3333 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 10px rgba(204, 0, 0, 0.4) !important;
}

.seo-tag-pill:hover i {
  color: #ffffff !important;
}

/* Dấu phân cách giữa các thẻ tag */
.seo-tag-sep {
  color: #888888 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  margin: 0 2px 0 0 !important;
  user-select: none !important;
  display: inline-block !important;
}

.seo-tag-sep:last-child {
  display: none !important;
}

/* Thẻ tag trang xem phim chi tiết */
.watch-tag-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #242424 !important;
  border: 1px solid #4a4a4a !important;
  color: #ffffff !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  padding: 6px 13px !important;
  margin: 4px 2px !important;
  border-radius: 4px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: all 0.18s ease !important;
  cursor: pointer !important;
}

.watch-tag-pill i {
  color: #ff3333 !important;
  font-size: 11px !important;
}

.watch-tag-pill:hover {
  background: #cc0000 !important;
  border-color: #ff3333 !important;
  color: #ffffff !important;
}

.watch-tag-pill:hover i {
  color: #ffffff !important;
}

.watch-tag-sep {
  color: #888888 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  margin: 0 2px !important;
  user-select: none !important;
}

/* ================= AD SLOTS & TELEGRAM NOTICE ================= */
.ad-banner-slot {
  margin: 10px 0;
  text-align: center;
}

.ad-banner-slot:empty {
  display: none;
}

#telegram-notice-bar {
  margin-bottom: 10px;
}

#telegram-notice-bar:empty {
  display: none;
}

/* ================= WATCH VIEW (PLAYER PAGE) ================= */
#watch-view {
  margin-top: 10px;
}

#watch-view .layout-cols {
  display: block;
}

#watch-view .content-left {
  max-width: 100%;
}

.watch-breadcrumbs {
  font-size: 12.5px;
  color: #999;
  margin-bottom: 8px;
}

.watch-breadcrumbs a {
  color: #bbb;
}

.watch-breadcrumbs a:hover {
  color: #ff3333;
}

.watch-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.4;
}

.player-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  margin-bottom: 14px;
  position: relative;
}

.server-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.server-btn {
  background: var(--bg-btn);
  border: 1px solid var(--border-btn);
  color: #ddd;
  font-size: 12.5px;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 2px;
  cursor: pointer;
}

.server-btn:hover {
  background: #383838;
  color: #fff;
}

.server-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.watch-info-section {
  background: #1e1e1e;
  border: 1px solid #2d2d2d;
  padding: 14px;
  margin-bottom: 20px;
  border-radius: 2px;
}

.watch-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.watch-meta-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #aaa;
}

.watch-cat-badge {
  background: #333;
  color: #ff3333;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 2px;
}

.watch-actions-right {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-action-pill {
  background: #2b2b2b;
  border: 1px solid #3c3c3c;
  color: #ccc;
  padding: 5px 11px;
  border-radius: 2px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.btn-action-pill:hover {
  background: #383838;
  color: #fff;
}

.telegram-cta-box {
  background: #181818;
  border: 1px solid #2e2e2e;
  border-left: 3px solid #0ea5e9;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.tg-cta-left {
  font-size: 13px;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tg-cta-left i {
  color: #38bdf8;
  font-size: 16px;
}

.btn-join-tg-pill {
  background: #0284c7;
  color: #fff;
  padding: 5px 14px;
  border-radius: 2px;
  font-size: 12.5px;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
}

.btn-join-tg-pill:hover {
  background: #0ea5e9;
}

/* ================= FOOTER ================= */
#site-footer {
  background: #161616;
  border-top: 1px solid #222;
  padding: 24px 0;
  margin-top: auto;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-desc {
  font-size: 12px;
  color: #888;
  max-width: 800px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 16px;
  font-size: 12.5px;
  color: #aaa;
}

.footer-links a:hover {
  color: #ff3333;
}

.footer-copyright {
  font-size: 11.5px;
  color: #666;
}

/* ================= GLOBAL TOAST NOTIFICATION ================= */
#global-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast-item {
  background: #1f1f1f;
  border: 1px solid #333;
  border-left: 4px solid var(--primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: 2px;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  animation: toastFadeIn 0.25s ease;
}

@keyframes toastFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================= SEO KEYWORDS BLOCK & HIGHLIGHT LINKS ================= */
.seo-keywords-block {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 32px 0;
  background: #101010;
}

.seo-block-container {
  max-width: 980px;
  margin: 0 auto;
  color: #687076 !important;
  font-size: 0.88rem;
  line-height: 1.9;
}

.seo-block-heading {
  color: #e0e0e0;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.seo-block-text {
  color: #687076 !important;
  margin-bottom: 12px;
  font-weight: 400;
}

.seo-keywords-block a.seo-keyword-link {
  color: #ff3333 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline !important;
  box-shadow: none !important;
  transition: color 0.2s ease, text-decoration 0.2s ease !important;
}

.seo-keywords-block a.seo-keyword-link:hover {
  color: #ffffff !important;
  text-decoration: underline !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

.seo-keywords-block a.seo-title-link {
  color: #ff3333 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  background: none !important;
  border: none !important;
  transition: color 0.2s ease !important;
}

.seo-keywords-block a.seo-title-link:hover {
  color: #ffffff !important;
  text-decoration: underline !important;
}

/* ================= CATEGORY UNIQUE CONTENT HUB (Seamless Dark Tone) ================= */
.category-seo-hub {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 26px 0 16px 0;
  margin: 28px 0 10px 0;
  background: transparent !important;
  border-radius: 0;
  box-shadow: none !important;
}

.hub-header {
  margin-bottom: 12px;
  padding-bottom: 0;
  border: none;
}

.hub-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #eaeaea !important;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  line-height: 1.4;
}

.hub-title i.fa-fire-alt {
  color: #ff3333 !important;
  font-size: 1rem;
}

.hub-intro {
  font-size: 0.9rem;
  line-height: 1.85;
  color: #7b8288 !important;
  margin: 0 0 16px 0;
  font-weight: 400;
}

.hub-intro strong, .hub-intro b {
  color: #eaeaea !important;
  font-weight: 600;
}

.hub-intro a {
  color: #ff3333 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.hub-intro a:hover {
  text-decoration: underline !important;
}

.hub-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.hub-badge-pill {
  color: #9aa0a6 !important;
  font-size: 0.84rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.hub-badge-pill i {
  color: #ff3333 !important;
  font-size: 0.75rem;
}

.hub-faqs-container {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 16px;
  margin-top: 12px;
}

.hub-faqs-heading {
  font-size: 0.96rem;
  font-weight: 700;
  color: #d1d5db !important;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hub-faqs-heading i {
  color: #ff3333 !important;
}

.hub-faq-item {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
  border-radius: 0 !important;
  margin-bottom: 4px;
  padding: 6px 0;
}

.hub-faq-question {
  padding: 8px 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #cccccc !important;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s ease;
  background: transparent !important;
}

.hub-faq-question:hover {
  color: #ff3333 !important;
  background: transparent !important;
}

.hub-faq-question i.fa-chevron-down,
.hub-faq-question i.fa-chevron-up {
  color: #687076 !important;
  font-size: 0.78rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.hub-faq-question:hover i {
  color: #ff3333 !important;
}

.hub-faq-answer {
  padding: 6px 0 12px 14px;
  font-size: 0.86rem;
  line-height: 1.7;
  color: #7b8288 !important;
  border-left: 2px solid rgba(255, 51, 51, 0.5);
  margin: 4px 0 8px 2px;
  background: transparent !important;
}
