:root {
  /*--color-primary: #ffa31a;*/
  --color-primary: #e63946;
 /* --color-primary: #e02500; */
  --color-accent: #f72585; /* Hồng neon sexy, nổi bật */
  --color-highlight: #ffd6e0; /* Hồng pastel nhạt - tạo điểm nhấn dịu dàng */
  --color-dark: #0a0a0a; /* Đen sâu - nền chính */
  --color-subtle-dark: #161616; /* Đen phụ - dùng cho các box / khối */
  --color-text: #cccccc; /* Xám trắng dễ đọc - text */
  --color-muted: #888888; /* Xám mờ - phụ */
  --color-highlight-gold: #ffb347;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--font-size-base);
  background: var(--color-dark);
  color: #fff;
  line-height: 1.6;
  font-weight: var(--font-weight-base);
}

html,
body,
header,
footer,
main,
nav,
section,
article,
aside,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li,
form,
fieldset,
legend,
figure,
figcaption,
div {
  display: block;
}

ul,
ol {
  list-style: none;
}

/* Link reset */
a {
  color: inherit;
  text-decoration: none;
}

/* Ảnh và video tự co theo khung */
img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Input / button nhất quán */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

.sections {
  margin-bottom: 1rem;
}

.icon-svg {
  display: block;
  stroke-width: 2;
  stroke: #f5f5f5;
  width: 27px;
  height: 27px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  border: none;
  text-decoration: none;
  cursor: pointer;
  background: none;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.6rem;
}

.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background-color: #0052b3;
  flex-shrink: 0;
}

.icon-wrap .icon-svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
}

.text-h2 {
  font-weight: 500;
  font-size: 0.5rem;
}

.title-h1 {
  font-weight: 500;
  font-size: 1.2rem;
}

.site-header {
  padding: 0 0.60rem;
  border-bottom: solid 1px var(--color-subtle-dark);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 996;
  background: var(--color-dark);
}

.in-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 55px;
}

.header-logo img {
  display: block;
  max-height: 35px;
  height: auto;
  width: auto;
  object-fit: contain;
}

.header-nav {
  position: absolute;
  top: 0;
  height: 100vh;
  left: -70%;
  width: 70%;
  display: block;
  background: var(--color-dark);
  z-index: 998;
  transition: left 0.2s ease;
}

.header-nav.active {
  left: 0;
}

.list-menu {
  margin-top: 0.60rem;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.list-menu a {
  padding: 10px 0.60rem;
  display: block;
  text-decoration: none;
  color: #fff;
  font-weight: 400;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.list-menu a:hover {
  background: var(--color-subtle-dark);
  color: var(--color-primary);
}

.close-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: inherit;
  font-size: 0.7rem;
  cursor: pointer;
  margin: 0.60rem;
}

.close-btn > .close-text {
  color: var(--color-text);
}

.menu-btn > .icon-svg, .close-btn > .icon-svg {
  stroke: var(--color-primary);
}

.menu-btn {
  order: 1;
}

.header-logo {
  order: 2;
}

.search-btn {
  order: 3;
}

.header-form {
  display: flex;
  align-items: center;
  height: 55px;
  /* max-width: 100%;*/
  gap: 0.5rem;
  position: absolute;
  top: -55px;
  background: var(--color-dark);
  left: 0;
  padding: 5px 0.60rem;
  width: 100%;
  z-index: 998;
  transition: top 0.2s ease;
}

.header-form.active {
  top: 0;
}

.in-search {
  flex: 1;
  display: flex;
  align-items: center;
  border-radius: 999px;
  overflow: hidden;
  /*background: var(--color-subtle-dark);*/
  padding: 0.3em 0.7em;
  column-gap: 13px;
}

.in-search > button .icon-svg {
  width: 24px;
  height: 24px;
  stroke-width: 1;
}

.header-form input[type="search"] {
  flex: 1;
  /* padding: 0.6em 1em;*/
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s ease;
  background: none;
  border: none;
  color: #fff;
}

.header-form input:focus {
  border-color: #e50914;
}

/* .header-form button {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6em 1em;
  background: #e50914;
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.3s ease;
} */

.search-form button:hover {
  background: #b20710;
}

.visually-hidden {
  position: absolute;
  left: -9999px;
}

.overlay {
  position: fixed;
  opacity: 0;
  visibility: hidden;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  transition: all 0.2s ease;
  z-index: 997;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

.site-main {
  margin-top: 55px;
  padding: 0.60rem;
}

.section-latest-videos {
  /*padding: 10px 0;*/
}

.video-list {
  display: grid;
  column-gap: 0.85rem;
  row-gap: 1.25rem;
  grid-template-columns: repeat(2, 1fr);
  list-style: none;
  padding: 0;
  margin: 0;
}

.video-link {
  text-decoration: none;
  color: inherit;
  display: block;
  /*-webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;*/
}

.video-link:hover .video-title {
  color: var(--color-primary);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #000;
}

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

.lazy-img {
  width: 100%;
  height: auto;
  display: block;
  filter: blur(20px);
  transition: filter 0.4s ease, transform 0.3s ease;
  object-fit: cover;
}

.lazy-img.loaded {
  filter: blur(0);
  transform: scale(1);
}

.video-duration {
  position: absolute;
  right: 6px;
  bottom: 6px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 3px;
}

.video-label {
  border-left: solid 3.5px var(--color-primary);
  position: absolute;
  left: 6px;
  top: 6px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 0 3px 3px 0;
}

.video-title {
  font-size: 1rem;
  font-weight: 500;
  margin-top: 0.5rem;
  line-height: 1.4;
  text-align: center;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-break: break-word;
}

/*.video-label {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #999;
}*/

.video-container {
  overflow: hidden;
  display: block;
  width: 100%;
}

.entry-video,.entry-header,.video-description {
margin-bottom:0.60rem;
}

.entry-header {
font-weight:400;
font-size:1.10rem;
line-height:1.4;
}
.video-container iframe,
#easy3xplay {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  display: block;
}

.server-buttons {
  margin-bottom: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.server-btn {
  position: relative;
  padding: 6px 19px;
  background: var(--color-subtle-dark, #222);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.server-btn:hover {
  background: #333;
}

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

.server-btn.active::before {
  content: "";
  position: absolute;
  right: 0;
  /*top: 50%;
  transform: translateY(-50%);*/
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 8px 2px var(--color-accent);
  animation: pulseDot 1.5s ease-in-out infinite;
}

@keyframes pulseDot {
  0% { transform: translateY(-50%) scale(1); opacity: 1; }
  50% { transform: translateY(-50%) scale(1.6); opacity: 0.5; }
  100% { transform: translateY(-50%) scale(1); opacity: 1; }
}

.pagination {
  text-align: center;
  margin-top: 30px;
}
.pagination-list {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pagination-list li a {
  padding: 6px 12px;
  background: #f5f5f5;
  color: #333;
  border-radius: 4px;
  text-decoration: none;
}
.pagination-list .active-page span {
  padding: 6px 12px;
  background: #0073aa;
  color: #fff;
  border-radius: 4px;
}
.pagination-list .dots {
  padding: 6px 8px;
  color: #999;
}

.tag-slider-section {
  padding: 0 0;
  overflow: hidden;
  position: relative;
  margin-bottom: 0.80rem;
}

.tag-slider-wrapper {
  position: relative;
  overflow: hidden;
}

.tag-slider {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0;
  scrollbar-width: none;
}
.tag-slider::-webkit-scrollbar {
  display: none;
}

.tag-item {
  flex-shrink: 0;
  background: var(--color-subtle-dark);
  color: #fff;
  padding: 7px 16px;
  border-radius: 999px;
  border: solid 1.3px #1f1f1f;
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.tag-item:hover {
  background: #1f1f1f;
}

/* Nút điều hướng cho desktop */
.tag-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  display: none;
  width: 35px;
  height: 35px;
}

.tag-nav .icon-svg {
  width: 25px;
  height: 25px;
}
.tag-nav.prev {
  left: -10px;
}
.tag-nav.next {
  right: -10px;
}

/* Gradient viền mờ 2 bên cho mobile */
.tag-gradient {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  z-index: 5;
  pointer-events: none;
}
.tag-gradient.left {
  left: -5px;
  background: linear-gradient(to right, #0a0a0a, transparent);
}
.tag-gradient.right {
  right: -5px;
  background: linear-gradient(to left, #0a0a0a, transparent);
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1rem;
  gap: 4px;
  color: var(--color-text);
  /*background-color: #181818;
 padding: 10px;
  border-radius:5px;*/
  margin-bottom: 0.65rem;
}
.breadcrumb a {
  color: var(--color-muted);
  text-decoration: none;
  font-weight: 350;
  white-space: nowrap;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb .bc-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  stroke-width: 1;
  stroke: var(--color-muted);
  flex-shrink: 0;
}
.breadcrumb-current {
  color: var(--color-text);
  font-weight: 350;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-break: break-word;
}

.video-tag strong, .video-cat strong {
display:inline-block;
font-weight:500;
font-size:1.1rem;
color:var(--color-text);
margin-bottom:0.25rem;
}

.video-tags, .video-cats {
display:flex;
align-items:center;
flex-wrap:wrap;
gap:0.35rem;
margin-bottom:0.60rem;
}

.video-tag a, .video-cat a{
display: inline-block;
  background: var(--color-subtle-dark);
  padding: 5px 15px;
  border-radius: 3px;
  font-size: 0.85rem;
  text-decoration: none;
  color: #f2f2f2;
}

.single-video {
margin-bottom:0.75rem;
}

.entry-meta {
  font-size: 0.85rem;
  color: #999;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  align-items: center;
  margin-bottom: 0.65rem;
}

.entry-meta > * {
  position: relative;
  white-space: nowrap;
}

.entry-meta > *:not(:first-child)::before {
  content: "|"; /* hoặc "|" */
  color: #999;
  margin: 0 5px;
}

.readmore-container {
  position: relative; 
  border-bottom: solid 1px var(--color-subtle-dark);
  padding-bottom: 24px;
  margin-bottom:1.95rem;;
}

.readmore-content {
   height:0;
  overflow: hidden;
 /* transition: height 0.1s ease;*/
}

.readmore-content.expanded {
height:100%;
}


.readmore-toggle {
  display: inline-block;
  position: absolute;
  bottom: -17px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-subtle-dark);
  padding: 6px 16px;
  border-radius: 999px;
  color: var(--color-text);
  font-size: 0.90rem;
  font-weight: 400;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
}

.seo-expand-block {
 /* border: 1px solid #ddd;*/
 border: solid 1.3px #1f1f1f;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 0.65rem;
  transition: all 0.3s ease;
}

.seo-toggle-btn {
  all: unset;
  cursor: pointer;
  width: 100%;
  background: var(--color-subtle-dark);
  display: flex;
  align-items: center;
}

.seo-heading {
  padding:6px 15px;
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 400;
  color: #fff;
  gap: 15px;
  margin: 0;
}

.seo-content {
  padding: 1rem;
  display: none;
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.6;
}

.seo-expand-block[aria-expanded="true"] .seo-content {
  display: block;
}

/* Xoay icon SVG khi mở rộng */
.seo-expand-block .icon-svg {
  transition: transform 0.3s ease;
  width:35px;
  height:35px;
}

.seo-expand-block[aria-expanded="true"] .icon-svg {
  transform: rotate(180deg);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.3rem;
  justify-content: flex-start;
  align-items: center;
}

.filter-item {
  display: inline-block;
  padding: 6px 15px;
  background: #1c1c1c;
  border: 1px solid #333;
  color: #eee;
  font-size: 1rem;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.filter-item:hover {
  background: var(--color-primary, #e50914);
  color: #fff;
  border-color: var(--color-primary, #e50914);
}

.filter-item.active {
  background: var(--color-primary, #e50914);
  color: #fff;
  border-color: var(--color-primary, #e50914);
}




.site-footer {
  background: var(--color-subtle-dark);
  color: var(--color-text);
  padding: 1rem 0.60rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-container {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: #fff;
}

.footer-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu ul li {
  margin-bottom: 0.5rem;
}

.footer-menu a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-menu a:hover {
  color: var(--color-primary);
}

.footer-menus {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 1.75rem;
  font-size: 1.1rem;
  color: #888;
}

.footer-bottom small {
}

.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  padding: 8px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.scroll-to-top .icon-svg {
width:30px;
height:30px;
}

.scroll-to-top.active {
  opacity: 1;
  pointer-events: auto;
}


@media (min-width: 640px) {
  .footer-container {
    grid-template-columns: 1fr 2fr;
  }

  .footer-menus {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .video-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) {
  /* .container {
    max-width: 1000px;
  } */
  .in-search > button .icon-svg {
    width: 20px;
    height: 20px;
  }
  .tag-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .tag-gradient {
    display: none;
  }

  .header-logo {
    order: 1;
  }

  .header-nav {
    order: 2;
  }

  .header-form {
    order: 3;
  }
  .footer-container {
    grid-template-columns: 1fr 3fr;
  }

  .footer-menus {
    grid-template-columns: repeat(4, 1fr);
  }
  .in-search {
    flex: 0 0 150px;
    background: var(--color-subtle-dark);
    padding: 6px 9px;
  }
  .header-form input[type="search"] {
    max-width: 150px;
  }
  .header-form {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    display: inline-block;
  }
  .list-menu {
    flex-direction: row;
    margin: 0;
  }
  .video-list {
    grid-template-columns: repeat(5, 1fr);
  }
  .header-nav {
    background: none;
    position: static;
    width: auto;
    height: auto;
  }
  .menu-btn,
  .search-btn,
  .close-btn,
  .close-search {
    display: none;
  }
}

@media (min-width: 1280px) {
  /* CSS here */
}
