/*
Theme Name: SaoViet NgoiSao Lite
Theme URI: https://tapchisaoviet.net/
Author: SaoViet Lite
Description: Giao diện tạp chí giải trí – showbiz siêu nhẹ phối màu rực rỡ Đỏ – Vàng Gold – Đen theo nhận diện logo Ngôi Sao Việt Nam, có lưới 3 cột chuyên mục ở Trang chủ và cuối bài viết.
Version: 1.3.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: saoviet-ngoisao-lite
*/

:root {
  --ns-accent: #d91b2b;
  --ns-accent-dark: #a8121f;
  --ns-gold: #f5a623;
  --ns-gold-dark: #d48806;
  --ns-dark: #161616;
  --ns-soft-bg: #fff8eb;
  --ns-card-bg: #fffdf9;
  --ns-text: #1c1c1c;
  --ns-muted: #6c6c6c;
  --ns-border: #e8e2d9;
  --ns-bg: #ffffff;
  --ns-max: 1140px;
  --ns-serif: Georgia, "Times New Roman", Cambria, serif;
  --ns-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--ns-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ns-text);
  background: var(--ns-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color .15s ease, background-color .15s ease; }
a:hover { color: var(--ns-accent); }
img { max-width: 100%; height: auto; display: block; }

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

/* Header */
.ns-header {
  background: #fff;
  border-top: 4px solid var(--ns-gold);
  padding: 12px 0;
}
.ns-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ns-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ns-date {
  font-size: 12px;
  color: var(--ns-muted);
  border-left: 2px solid var(--ns-gold);
  padding-left: 12px;
  font-weight: 500;
}
.ns-brand .custom-logo-link img {
  max-height: 52px;
  width: auto;
}
.ns-logo-text {
  margin: 0;
  font-family: var(--ns-serif);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: var(--ns-dark);
}
.ns-logo-text span { color: var(--ns-accent); }

.ns-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ns-search-form {
  display: flex;
  align-items: center;
  border: 1.5px solid #e2d8c8;
  border-radius: 22px;
  padding: 2px 4px 2px 14px;
  background: #fffdf9;
}
.ns-search-form input[type="search"] {
  border: 0;
  background: transparent;
  font-size: 13px;
  width: 170px;
  outline: none;
  padding: 5px 0;
}
.ns-search-form button {
  background: linear-gradient(135deg, var(--ns-accent) 0%, #f02838 100%);
  color: #fff;
  border: 0;
  border-radius: 18px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* Desktop Header Ad */
.ns-header-ad-bar {
  background: #faf7f2;
  border-bottom: 1px solid var(--ns-border);
  padding: 10px 0;
  text-align: center;
}
.ns-header-ad-bar .ns-ad-inner {
  max-width: 728px;
  max-height: 100px;
  margin: 0 auto;
  overflow: hidden;
}

/* Navigation Bar rực rỡ theo màu Logo (Đỏ rực + viền Vàng Gold) */
.ns-nav-wrap {
  background: linear-gradient(90deg, #b80f20 0%, var(--ns-accent) 50%, #c8102e 100%);
  border-bottom: 3px solid var(--ns-gold);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 3px 10px rgba(184, 15, 32, 0.22);
}
.ns-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
}
.ns-home-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ns-gold);
  color: var(--ns-dark);
  font-weight: 800;
  margin-right: 10px;
  flex-shrink: 0;
}
.ns-home-icon:hover {
  background: #fff;
  color: var(--ns-accent);
}
.ns-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  flex: 1;
}
.ns-menu > li { position: relative; }
.ns-menu > li > a {
  display: block;
  padding: 12px 13px;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  color: #ffffff;
}
.ns-menu > li.current-menu-item > a,
.ns-menu > li.current-category-ancestor > a,
.ns-menu > li > a:hover {
  background: rgba(0, 0, 0, 0.18);
  color: #ffe27a;
}
.ns-menu ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 195px;
  background: #fff;
  border: 1px solid var(--ns-border);
  border-top: 3px solid var(--ns-gold);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  z-index: 60;
}
.ns-menu li:hover > ul.sub-menu { display: block; }
.ns-menu ul.sub-menu a {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ns-text);
}
.ns-menu ul.sub-menu a:hover {
  background: var(--ns-soft-bg);
  color: var(--ns-accent);
}
.ns-menu-toggle {
  display: none;
  background: var(--ns-gold);
  color: var(--ns-dark);
  border: 0;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* Section Header Bar rực rỡ (Đỏ rực + gạch chân Vàng Gold) */
.ns-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 2px solid var(--ns-gold);
  margin: 0 0 18px;
}
.ns-sec-title {
  margin: 0 0 -2px;
  font-family: var(--ns-sans);
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #fff;
  background: linear-gradient(90deg, var(--ns-accent) 0%, #ef2334 100%);
  padding: 7px 16px;
  border-radius: 5px 5px 0 0;
  display: inline-block;
}
.ns-sec-more {
  font-size: 12px;
  font-weight: 700;
  color: var(--ns-accent);
  padding-bottom: 6px;
}

/* Top Story Grid */
.ns-topstory {
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0 26px;
  border-bottom: 2px solid #f2e8d5;
}
.ns-spotlight-main {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 18px;
  background: linear-gradient(135deg, #fff8eb 0%, #fff1f2 100%);
  border: 1px solid #f5dfc0;
  border-left: 4px solid var(--ns-accent);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 18px;
}
.ns-spotlight-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eee;
}
.ns-spotlight-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ns-spotlight-body {
  padding: 18px 18px 18px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ns-cat-tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--ns-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 8px;
}
.ns-cat-tag:hover { background: var(--ns-gold); color: var(--ns-dark); }
.ns-spotlight-body h1,
.ns-spotlight-body h2 {
  margin: 0 0 10px;
  font-family: var(--ns-serif);
  font-size: 22px;
  line-height: 1.32;
  font-weight: 700;
}
.ns-excerpt {
  margin: 0;
  font-size: 14px;
  color: #4f4f4f;
  line-height: 1.55;
}
.ns-meta {
  font-size: 12px;
  color: var(--ns-muted);
  margin-top: 6px;
}

.ns-subtop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.ns-thumb-box {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 6px;
  background: #eee;
}
.ns-thumb-box img { width: 100%; height: 100%; object-fit: cover; }
.ns-subtop-item h3 {
  margin: 8px 0 0;
  font-family: var(--ns-serif);
  font-size: 15px;
  line-height: 1.38;
  font-weight: 700;
}

.ns-top-side {
  border-left: 1px solid var(--ns-border);
  padding-left: 20px;
}
.ns-side-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0ebe2;
  align-items: flex-start;
}
.ns-side-item:first-child { padding-top: 0; }
.ns-side-item:last-child { border-bottom: 0; padding-bottom: 0; }
.ns-side-item h4 {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  flex: 1;
}
.ns-side-thumb {
  flex: 0 0 92px;
  aspect-ratio: 16 / 11;
  border-radius: 5px;
  overflow: hidden;
  background: #eee;
}
.ns-side-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================================
 * LƯỚI 3 CỘT CHUYÊN MỤC RỰC RỠ THEO MÀU LOGO (ĐỎ – VÀNG GOLD – ĐEN VÀNG)
 * ========================================================================= */
.ns-catbox-section {
  padding: 28px 0 12px;
}
.ns-catbox-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 24px;
}
.ns-catbox-row:last-child {
  margin-bottom: 0;
}
.ns-catbox {
  background: var(--ns-card-bg);
  border: 1px solid #efe6d5;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}
.ns-catbox-title {
  margin: 0;
  font-family: var(--ns-sans);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 10px 16px;
  color: #fff;
  background: linear-gradient(90deg, var(--ns-accent) 0%, #f02838 100%);
  border-bottom: 3px solid var(--ns-gold);
}
.ns-catbox:nth-child(3n+2) .ns-catbox-title {
  background: linear-gradient(90deg, #d98200 0%, var(--ns-gold) 100%);
  color: #1a1a1a;
  border-bottom: 3px solid var(--ns-accent);
}
.ns-catbox:nth-child(3n+3) .ns-catbox-title {
  background: linear-gradient(90deg, #161616 0%, #333333 100%);
  color: #ffd15c;
  border-bottom: 3px solid var(--ns-gold);
}
.ns-catbox-title a { color: inherit; display: block; }
.ns-catbox-title a:hover { opacity: 0.9; color: inherit; }

.ns-catbox-lead {
  padding: 14px 14px 12px;
  border-bottom: 1px solid #f0e8da;
}
.ns-catbox-lead-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 7px;
  overflow: hidden;
  background: #eee;
  margin-bottom: 10px;
}
.ns-catbox-lead-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ns-catbox-lead h3 {
  margin: 0 0 6px;
  font-family: var(--ns-sans);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.38;
  color: #1a1a1a;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ns-catbox-time {
  font-size: 12px;
  color: #8c8c8c;
}
.ns-catbox-subs {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ns-catbox-sub {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}
.ns-catbox-sub-thumb {
  flex: 0 0 96px;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  overflow: hidden;
  background: #eee;
}
.ns-catbox-sub-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ns-catbox-sub h4 {
  margin: 0;
  font-family: var(--ns-sans);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  color: #262626;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Main 2-Column Layout */
.ns-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 30px;
  margin: 26px 0 36px;
  align-items: start;
}
.ns-section { margin-bottom: 34px; }

/* News Stream List */
.ns-stream {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ns-stream-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ns-border);
}
.ns-stream-item h3 {
  margin: 0 0 6px;
  font-family: var(--ns-serif);
  font-size: 18px;
  line-height: 1.35;
}

/* Sidebar */
.ns-sidebar {
  position: sticky;
  top: 62px;
}
.ns-widget {
  background: var(--ns-card-bg);
  border: 1px solid #efe6d5;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 24px;
}
.ns-widget-title {
  margin: -14px -14px 14px;
  padding: 0;
  border-bottom: 3px solid var(--ns-gold);
  background: linear-gradient(90deg, var(--ns-accent) 0%, #ef2334 100%);
  border-radius: 7px 7px 0 0;
}
.ns-widget-title span {
  display: block;
  padding: 9px 14px;
  font-family: var(--ns-sans);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
}

/* Ranked List */
.ns-rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ns-rank-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0e8da;
  align-items: flex-start;
}
.ns-rank-item:last-child { border-bottom: 0; padding-bottom: 0; }
.ns-rank-num {
  font-family: var(--ns-sans);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  color: var(--ns-accent);
  min-width: 24px;
}
.ns-rank-item a {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

/* Single Post */
.ns-main { min-width: 0; overflow-x: hidden; }
.ns-breadcrumb {
  font-size: 13px;
  color: var(--ns-muted);
  margin-bottom: 12px;
}
.ns-single-title {
  margin: 0 0 12px;
  font-family: var(--ns-serif);
  font-size: 30px;
  line-height: 1.3;
  font-weight: 700;
}
.ns-single-meta {
  font-size: 13px;
  color: var(--ns-muted);
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--ns-border);
}
.ns-entry-content {
  font-size: 17px;
  line-height: 1.78;
  color: #222;
  overflow-wrap: break-word;
}
.ns-entry-content p { margin: 0 0 18px; }
.ns-entry-content img,
.ns-entry-content figure,
.ns-entry-content .wp-caption,
.ns-entry-content .wp-block-image,
.ns-entry-content iframe,
.ns-entry-content video,
.ns-entry-content table {
  max-width: 100% !important;
}
.ns-entry-content img {
  height: auto !important;
  margin: 16px auto;
  border-radius: 5px;
}
.ns-entry-content .wp-caption,
.ns-entry-content figure {
  width: auto !important;
  margin: 18px auto;
  text-align: center;
}
.ns-entry-content .wp-caption img,
.ns-entry-content figure img {
  margin: 0 auto;
}
.ns-entry-content .wp-caption-text,
.ns-entry-content figcaption {
  font-size: 13px;
  color: var(--ns-muted);
  font-style: italic;
  margin-top: 6px;
  text-align: center;
}
.ns-entry-content h2,
.ns-entry-content h3 {
  font-family: var(--ns-serif);
  margin: 26px 0 12px;
  line-height: 1.35;
}
.ns-entry-content blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  border-left: 4px solid var(--ns-accent);
  background: var(--ns-soft-bg);
  font-style: italic;
}
.ns-tags {
  margin: 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ns-tags a {
  background: var(--ns-soft-bg);
  border: 1px solid #f0dfc2;
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
}

/* Pagination */
.ns-pagination {
  margin: 26px 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ns-pagination .page-numbers {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--ns-border);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
}
.ns-pagination .page-numbers.current {
  background: var(--ns-accent);
  border-color: var(--ns-accent);
  color: #fff;
}

/* Footer tối sang trọng với viền Đỏ – Vàng Gold */
.ns-footer {
  background: var(--ns-dark);
  border-top: 4px solid var(--ns-gold);
  padding: 36px 0 26px;
  font-size: 13px;
  color: #ccc;
}
.ns-footer-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #2c2c2c;
  font-weight: 700;
  font-size: 13.5px;
  color: #fff;
}
.ns-footer-cats a:hover { color: var(--ns-gold); }
.ns-footer-info {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}
.ns-footer-info p { margin: 0 0 6px; color: #bbb; }
.ns-footer-brand {
  font-family: var(--ns-serif);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.ns-footer-brand span { color: var(--ns-gold); }

/* Responsive */
@media (max-width: 992px) {
  .ns-topstory { grid-template-columns: 1fr; }
  .ns-top-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--ns-border); padding-top: 18px; }
  .ns-layout { grid-template-columns: 1fr; }
  .ns-sidebar { position: static; }
  .ns-catbox-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .ns-header { padding: 8px 0; }
  .ns-date { display: none; }
  .ns-header-ad-bar { display: none !important; }
  .ns-search-form input[type="search"] { width: 120px; }
  .ns-menu-toggle { display: inline-block; }
  .ns-menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 8px 0;
  }
  .ns-menu.is-open { display: flex; }
  .ns-nav-inner { flex-wrap: wrap; padding: 6px 0; gap: 8px; }
  .ns-spotlight-main { grid-template-columns: 1fr; }
  .ns-spotlight-body { padding: 14px; }
  .ns-spotlight-body h1,
  .ns-spotlight-body h2 { font-size: 19px; }
  .ns-subtop-grid,
  .ns-catbox-row,
  .ns-footer-info { grid-template-columns: 1fr; }
  .ns-stream-item { grid-template-columns: 1fr; }
  .ns-single-title { font-size: 23px; }
}


/* =========================================================================
 * KHỐI TRUYỀN HÌNH (YOUTUBE PLAYLIST — LAZY FACADE SIÊU NHẸ)
 * ========================================================================= */
.ns-tv-wrap {
  background: linear-gradient(180deg, #f4f5f7 0%, #fff8eb 100%);
  border: 1px solid #eadcc5;
  border-top: 4px solid var(--ns-accent);
  border-radius: 12px;
  padding: 18px 20px 20px;
  margin: 24px 0 12px;
}
.ns-tv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.ns-tv-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ns-accent);
  letter-spacing: 0.4px;
}
.ns-tv-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 24px;
  border-radius: 6px;
  background: var(--ns-accent);
  color: #fff;
  font-size: 13px;
}
.ns-tv-channel {
  font-size: 13px;
  font-weight: 700;
  color: #444;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ns-tv-channel span {
  background: #ff0000;
  color: #fff;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
}
.ns-tv-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.ns-tv-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}
.ns-tv-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ns-tv-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.ns-tv-playbtn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  border-radius: 12px;
  background: rgba(217, 27, 43, 0.92);
  color: #fff;
  border: 2px solid #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.ns-tv-now-title {
  margin: 12px 0 4px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: #1a1a1a;
}
.ns-tv-now-meta {
  font-size: 12px;
  color: var(--ns-muted);
}
.ns-tv-list {
  max-height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 6px;
}
.ns-tv-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 7px;
  border-radius: 8px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease;
}
.ns-tv-item:hover {
  background: #fff;
  border-color: #eadcc5;
}
.ns-tv-item.is-active {
  background: #fff;
  border-color: var(--ns-accent);
}
.ns-tv-item-thumb {
  position: relative;
  flex: 0 0 112px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #222;
}
.ns-tv-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ns-tv-playing-badge {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #ffd15c;
  font-size: 11px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
}
.ns-tv-item.is-active .ns-tv-playing-badge {
  display: flex;
}
.ns-tv-item-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.38;
  color: #222;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ns-tv-item.is-active .ns-tv-item-title {
  color: var(--ns-accent);
}
@media (max-width: 900px) {
  .ns-tv-grid { grid-template-columns: 1fr; }
  .ns-tv-list { max-height: 300px; }
}
