/*
Theme Name: Theme AV API
Theme URI: https://example.com/theme-av-api
Author: 7LS
Author URI: https://7ls.com
Description: ธีมวิดีโอโทนดำ-แดง สำหรับ CPT และ taxonomy ของ 7LS-Video-Publisher.
Version: 1.3.5
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: publish-videos-api
*/

:root {
  --color-bg: #0a0a0c;
  --color-surface: #141418;
  --color-text: #f2f2f2;
  --color-primary: #e50914;
  --color-accent: #b81d24;
  --color-link: #ff6b6b;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  --card-hover: translateY(-4px) scale(1.01);
  --grid-cols-desktop: 4;
  --grid-cols-tablet: 3;
  --grid-cols-mobile: 2;
  --max-width: 100%;
  --main-max-width: 100%;
  --page-gutter: clamp(12px, 2vw, 24px);
  --focus-ring: 0 0 0 3px rgba(229, 9, 20, 0.45);
  --line-height-heading: 1.25;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "Inter", "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: var(--line-height-heading);
  /* text-wrap: balance; */
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover {
  color: var(--color-link-hover, #fff);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid transparent;
  box-shadow: var(--focus-ring);
}

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 9, 12, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

body.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0px;
  padding: 14px 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand .logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #fff;
}

.brand .custom-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand .custom-logo {
  max-height: 44px;
  width: auto;
  height: auto;
  display: block;
}

.brand .tagline {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--color-text);
  font-size: 0.95rem;
}

.main-nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-form {
  position: relative;
}

.search-form input[type="search"] {
  width: 220px;
  padding: 8px 40px 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
}

.search-form button {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  border: none;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  padding: 6px 10px;
  cursor: pointer;
}

.search-form button:hover {
  background: var(--color-primary-hover, var(--color-primary));
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  font-weight: 700;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(
    120deg,
    var(--color-primary),
    var(--color-accent)
  );
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: linear-gradient(
    120deg,
    var(--color-primary-hover, var(--color-primary)),
    var(--color-accent-hover, var(--color-accent))
  );
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-text);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-cta {
  background: linear-gradient(
    120deg,
    var(--color-primary),
    var(--color-accent)
  );
  color: #fff;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 700;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-cta:hover {
  background: linear-gradient(
    120deg,
    var(--color-primary-hover, var(--color-primary)),
    var(--color-accent-hover, var(--color-accent))
  );
}

.theme-toggle,
.menu-toggle,
.search-toggle {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-toggle {
  display: none;
}

.menu-toggle {
  display: none;
}

.site-content {
  padding: 24px 0 80px;
  max-width: 1180px;
  margin: auto;
}

.site-main.container {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--main-max-width));
  max-width: var(--main-max-width);
  margin-inline: auto;
}

#main-content {
  scroll-margin-top: 120px;
}

.hero {
  margin-bottom: 24px;
  padding: 36px;
  border-radius: calc(var(--radius) + 6px);
  background-image:
    linear-gradient(135deg, rgba(229, 9, 20, 0.2), rgba(10, 10, 12, 0.92)),
    var(--hero-bg-image, url("./assets/images/hero-texture.svg"));
  background-size: var(--hero-bg-size, cover);
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  display: grid;
  gap: 24px;
}

.hero--carousel {
  grid-template-columns: 1fr;
}

.hero__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
}

.hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
}

.hero__header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 300;
  line-height: 1.65;
  max-width: 42ch;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__carousels {
  display: grid;
  gap: 24px;
}

.hero-carousel {
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.hero-carousel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.hero-carousel__header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.hero-carousel__controls {
  display: inline-flex;
  gap: 8px;
}

.carousel-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-carousel__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 6px;
}

.hero-carousel__track::-webkit-scrollbar {
  height: 6px;
}

.hero-carousel__track::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
}

.hero-carousel__item {
  flex: 0 0 clamp(220px, 26vw, 320px);
  scroll-snap-align: start;
}

.hero-carousel__item .video-card {
  height: 100%;
}

.hero__panel {
  display: grid;
  gap: 12px;
}

.hero__metric {
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero__metric-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.hero__metric-value {
  font-size: 1.4rem;
  display: block;
  margin-top: 4px;
}

.section {
  margin-top: 32px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 16px;
}

.section-header h2 {
  margin: 0;
  font-size: 1.3rem;
}

.section-header p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.6);
}

.section-link {
  color: var(--color-link);
  font-size: 0.9rem;
}

.filter-bar {
  margin: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
  cursor: pointer;
}

.filter-tab.is-active {
  background: var(--color-primary);
  border-color: transparent;
  color: #fff;
}

.term-strip {
  margin: 20px 0;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.term-strip__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.term-strip__header h3 {
  margin: 0;
}

.term-strip__list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.term-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
  font-size: 0.85rem;
}

.filter-group {
  margin: 16px 0 24px;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 12px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.filter-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.filter-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
  font-size: 0.85rem;
}

.filter-pill.is-active {
  background: var(--color-primary);
  border-color: transparent;
  color: #fff;
}

.video-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(var(--grid-cols-desktop), minmax(0, 1fr));
}

.video-grid--compact {
  /* grid-template-columns: 1fr; */
}

.video-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.video-card:hover {
  transform: var(--card-hover);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
}

.video-card__thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: block;
  background: rgba(0, 0, 0, 0.25);
}

.video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 1;
  background: #000;
  pointer-events: none;
}

.video-card.is-previewing .video-card__preview,
.video-card:hover .video-card__preview,
.video-card:focus-within .video-card__preview,
.video-card__thumb:hover .video-card__preview {
  opacity: 1;
  visibility: visible;
}

.video-card__duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  z-index: 2;
}

.video-card__badges {
  position: absolute;
  left: 10px;
  top: 10px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.badge {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.badge--new {
  background: var(--color-accent);
  color: #fff;
}

.badge--hd {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.video-card__body {
  padding: 12px 14px 16px;
  display: grid;
  gap: 8px;
}

.video-card__title {
  font-size: 0.98rem;
  margin: 0;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card__meta {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.archive-header {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.breadcrumb {
  margin: 12px 0 16px;
}

.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb__item a {
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb__item::after {
  content: "/";
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.4);
}

.breadcrumb__item:last-child::after {
  display: none;
}

.single-video {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: var(--main-max-width);
  margin: 0 auto;
}

.single-video--stacked {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.single-video__player-wrap {
  width: 100%;
}

.single-video__info {
  display: grid;
  gap: 14px;
  padding: 16px 0;
}

.single-video__main {
  display: grid;
  gap: 16px;
  width: 100%;
  min-width: 0;
}

.single-video__aside {
  width: 100%;
  min-width: 0;
  align-self: start;
}

.single-video__aside h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.related-videos {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.related-videos h3 {
  margin: 0 0 16px;
  font-size: 1.15rem;
}

.video-player {
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0;
  box-shadow: var(--shadow);
  position: relative;
  margin: 0 auto;
  max-width: 100%;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
}

.video-player .sevenls-video-container {
  margin: 0;
}

.video-player iframe,
.video-player video,
.video-player embed,
.video-player object {
  width: 100%;
  height: 100%;
  max-height: 100%;
  border: 0;
  display: block;
}

.video-player .wp-video {
  width: 100% !important;
  height: 100% !important;
}

.video-player .wp-video video {
  height: 100% !important;
  max-height: 100% !important;
}

.video-player .sevenls-video-player {
  position: relative;
  width: 100%;
  height: 100%;
  --sevenls-vp-aspect: auto;
  --sevenls-vp-max-height: none;
  --sevenls-vp-min-height: 0;
  display: block;
  background: #000;
  border-radius: inherit;
  overflow: hidden;
  cursor: auto;
}

.video-player .sevenls-video-player video,
.video-player .sevenls-video-player iframe {
  width: 100%;
  height: 100% !important;
  max-width: 100%;
  max-height: 100% !important;
  object-position: center center;
}

.video-player .pva-preplay-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(56px, 12vw, 72px);
  height: clamp(56px, 12vw, 72px);
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 12;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.video-player .pva-preplay-button:hover {
  transform: translate(-50%, -50%) scale(1.06);
  background: rgba(0, 0, 0, 0.78);
}

.video-player .pva-preplay-button svg {
  width: clamp(24px, 5vw, 30px);
  height: clamp(24px, 5vw, 30px);
  margin-left: 2px;
}

.video-player .sevenls-video-player:not(.pva-preplay-active) .pva-preplay-button {
  opacity: 0;
  pointer-events: none;
}

.video-player .sevenls-vp-controls,
.video-player .sevenls-vp-play-overlay,
.video-player .sevenls-vp-loading {
  display: none !important;
}

.video-player .sevenls-video-player.sevenls-vp-initialized video::-webkit-media-controls,
.video-player .sevenls-video-player.sevenls-vp-initialized video::-webkit-media-controls-panel,
.video-player .sevenls-video-player.sevenls-vp-initialized video::-webkit-media-controls-enclosure {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.video-player .sevenls-video-player.pva-preplay-active video::-webkit-media-controls,
.video-player .sevenls-video-player.pva-preplay-active video::-webkit-media-controls-panel,
.video-player .sevenls-video-player.pva-preplay-active video::-webkit-media-controls-enclosure {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.video-player .sevenls-video-player video {
  object-fit: contain;
  background: #000;
}

.video-player .sevenls-video-player iframe {
  width: 100%;
  min-height: 0;
  height: 100% !important;
  max-height: 100% !important;
  border: 0;
}

.sevenls-video-title,
.sevenls-video-description,
.sevenls-video-tags.sevenls-video-categories {
  display: none !important;
}

.preroll {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: grid;
  place-items: center;
  border-radius: calc(var(--radius) - 4px);
  z-index: 9999;
  pointer-events: auto;
}

.preroll[hidden] {
  display: none !important;
}

.preroll__media {
  /* width: min(90%, 720px); */
  /* aspect-ratio: 16 / 9; */
  width: auto;
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

.preroll__media img,
.preroll__media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.preroll__media a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.preroll__actions {
  margin-top: 16px;
  position: relative;
  z-index: 2;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.preroll__skip {
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  position: relative;
  z-index: 3;
}

.preroll__cta {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.preroll__cta:hover {
  background: rgba(255, 255, 255, 0.16);
}

.preroll__fallback {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  text-align: center;
  padding: 12px 16px;
}

.video-summary {
  display: grid;
  gap: 14px;
}

.video-summary__title {
  margin: 0;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  line-height: 1.3;
}

.video-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.video-summary__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
}

.video-summary__meta span::after {
  content: "•";
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.4);
}

.video-summary__meta span:last-child::after {
  content: "";
  margin: 0;
}

.video-summary__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.video-summary__actions .btn {
  padding: 7px 14px;
  font-size: 0.85rem;
}

.video-summary__channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: nowrap;
}

.channel-avatar img {
  border-radius: 999px;
  display: block;
  width: 48px;
  height: 48px;
  object-fit: cover;
}

.channel-meta {
  display: grid;
  gap: 4px;
}

.channel-name {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.channel-sub {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.video-summary__likes {
  margin-left: auto;
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  align-items: center;
}

.video-summary__likes .btn {
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.video-summary__likes .like-count {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.75rem;
  color: #fff;
}

.video-summary__description {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: grid;
  gap: 14px;
}

.video-summary__heading {
  margin: 0;
  font-size: 1rem;
  color: #fff;
}

.video-summary__description .term-block strong {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.video-summary__content {
  color: rgba(255, 255, 255, 0.9);
}

.video-jav-details {
  display: grid;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.video-jav-details__row {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.video-jav-details__label {
  min-width: 110px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.video-jav-details__value {
  flex: 1 1 320px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.96);
}

.video-jav-details__value a {
  color: #f5d27a;
  font-weight: 600;
}

.video-jav-details__value a:hover {
  color: #ffe5a7;
}

.video-jav-details__sep {
  color: rgba(255, 255, 255, 0.46);
}

.video-jav-details__empty {
  color: rgba(255, 255, 255, 0.55);
}

@media (min-width: 1180px) {
  .single-video--stacked {
    max-width: 100%;
    margin: 0;
  }

  .video-player iframe,
  .video-player video,
  .video-player embed,
  .video-player object,
  .video-player .wp-video video {
    max-height: 100% !important;
  }

  .preroll {
    border-radius: var(--radius);
  }
}

.term-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.term-chip {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  color: var(--color-text);
}

.load-more {
  margin: 24px auto 0;
  display: block;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text);
  cursor: pointer;
}

.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top, rgba(229, 9, 20, 0.12), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(184, 29, 36, 0.1), transparent 40%),
    rgba(9, 9, 12, 0.96);
  padding: 46px 0 28px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.footer-orb {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.35;
}

.footer-orb--one {
  left: -40px;
  bottom: -60px;
  background: var(--footer-orb-primary, #ff6a00);
}

.footer-orb--two {
  right: -60px;
  top: -80px;
  background: var(--footer-orb-secondary, #ff2d2d);
}

.footer-orb--three {
  right: 20%;
  bottom: -120px;
  background: var(--footer-orb-neutral, #ffffff);
  opacity: 0.18;
}

.site-footer .footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.footer-brand {
  display: grid;
  gap: 10px;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.footer-logo--image .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.footer-logo--image .custom-logo {
  max-height: 42px;
  width: auto;
  height: auto;
  display: block;
}

.footer-tagline {
  margin: 0;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.65);
}

.footer-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-links {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.site-footer nav ul {
  list-style: none;
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.site-footer nav a {
  color: rgba(255, 255, 255, 0.7);
}

.site-footer nav a:hover {
  color: #fff;
}

.footer-cta .btn {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
}

.footer-note {
  color: rgba(255, 255, 255, 0.55);
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background: #111;
  border-radius: 10px;
  box-shadow: var(--focus-ring);
  clip: auto !important;
  -webkit-clip-path: none;
  clip-path: none;
  color: #fff;
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  height: auto;
  left: 12px;
  line-height: normal;
  padding: 10px 14px;
  top: 12px;
  width: auto;
  z-index: 100000;
}

.skip-link {
  text-decoration: none;
}

.skip-link:focus {
  text-decoration: none;
}

.search-form button {
  min-height: 36px;
  min-width: 72px;
}

.theme-toggle:focus-visible,
.menu-toggle:focus-visible,
.search-toggle:focus-visible,
.btn:focus-visible,
.btn-cta:focus-visible {
  border-color: rgba(229, 9, 20, 0.7);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1100px) {
  .video-player {
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: none;
  }
}

@media (max-width: 720px) {
  .site-footer .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-items: stretch;
  }

  .footer-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 960px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand actions"
      "nav nav";
  }

  .brand {
    grid-area: brand;
  }

  .main-nav {
    grid-area: nav;
    display: none;
  }

  .header-actions {
    grid-area: actions;
  }

  .search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.menu-open .main-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    justify-content: flex-start;
  }

  body.search-open .main-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    justify-content: flex-start;
  }

  .main-nav ul {
    flex-direction: column;
    padding-top: 8px;
  }

  body.search-open .main-nav ul {
    display: none;
  }

  .main-nav__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .main-nav .search-form,
  .main-nav .search-form input[type="search"] {
    width: 100%;
  }

  .main-nav__actions .btn-cta {
    display: inline-flex;
    justify-content: center;
    width: 100%;
  }

  .video-grid {
    grid-template-columns: repeat(var(--grid-cols-tablet), minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .header-actions {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .theme-toggle {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 10px;
  }

  .search-toggle {
    padding: 6px 8px;
    border-radius: 10px;
    font-size: 0.78rem;
  }

  .theme-toggle__icon {
    font-size: 0.85rem;
  }

  .menu-toggle {
    padding: 6px 10px;
    font-size: 0.82rem;
    border-radius: 10px;
  }

  .hero {
    padding: 22px 20px;
    gap: 18px;
  }

  .hero__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero__eyebrow {
    font-size: 0.65rem;
    letter-spacing: 1.6px;
  }

  .hero h1 {
    font-size: clamp(1.45rem, 4.2vw, 2rem);
  }

  .hero__header p {
    max-width: 36ch;
  }

  .hero__actions {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero__actions .btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 7px 14px;
    font-size: 0.85rem;
  }

  .hero__actions::-webkit-scrollbar {
    height: 4px;
  }

  .hero__actions::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
  }

  .hero__carousels {
    gap: 16px;
  }

  .hero-carousel {
    padding: 14px;
  }

  .hero-carousel__header {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  .hero-carousel__controls {
    margin-left: auto;
  }

  .carousel-btn {
    width: 30px;
    height: 30px;
  }

  .hero-carousel__item {
    flex: 0 0 min(68vw, 280px);
  }

  .search-form input[type="search"] {
    width: 180px;
  }

  .video-grid {
    grid-template-columns: repeat(var(--grid-cols-mobile), minmax(0, 1fr));
  }

  .video-player iframe,
  .video-player video,
  .video-player embed,
  .video-player object,
  .video-player .wp-video video {
    height: 100% !important;
    max-height: 100%;
  }

  .video-player {
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: none;
  }
}

@media (max-width: 540px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand actions"
      "nav nav";
  }

  .header-actions {
    width: auto;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
  }

  .brand .tagline {
    display: none;
  }

  .hero {
    padding: 18px 16px;
    border-radius: calc(var(--radius) + 2px);
  }

  .hero h1 {
    font-size: clamp(1.35rem, 5vw, 1.85rem);
  }

  .hero__header p {
    font-size: 0.95rem;
  }

  .hero__actions {
    gap: 8px;
  }

  .hero__actions .btn {
    padding: 6px 12px;
    font-size: 0.82rem;
  }

  .hero-carousel {
    padding: 10px;
  }

  .hero-carousel__item {
    flex: 0 0 min(72vw, 260px);
  }

  .search-form {
    width: 100%;
  }

  .search-form input[type="search"] {
    width: 100%;
  }

  .video-summary__row {
    align-items: flex-start;
  }

  .video-summary__actions .btn {
    padding: 6px 12px;
    font-size: 0.82rem;
  }

  .single-video {
    gap: 18px;
  }

  .single-video__info {
    gap: 12px;
    padding: 12px 0;
  }

  .video-summary__channel {
    flex-wrap: wrap;
  }

  .video-summary__likes {
    margin-left: 0;
    width: 100%;
  }

  .video-summary__likes .btn {
    width: 100%;
  }

  .video-summary__title {
    font-size: 1.25rem;
  }

  .video-summary__description {
    padding: 12px;
  }

  .video-jav-details__label {
    min-width: 92px;
  }

  .video-jav-details__value {
    flex-basis: 100%;
  }
}

/* Home streaming layout */
.home .site-main.container {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--main-max-width));
  max-width: var(--main-max-width);
}

.home-stream {
  display: grid;
  gap: 28px;
}

.home-stream__hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: clamp(440px, 56vw, 680px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #050508;
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.55);
  isolation: isolate;
  animation: home-stream-rise 0.6s ease-out both;
}

.home-stream__hero-wall {
  position: absolute;
  inset: -8% -14%;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-auto-rows: clamp(88px, 9vw, 132px);
  gap: 2px;
  transform: rotate(-10deg) scale(1.12);
  transform-origin: center;
  pointer-events: none;
}

.home-stream__hero-tile {
  display: block;
  overflow: hidden;
  background: linear-gradient(140deg, #1a1a24, #260712 66%, #470f1f);
}

.home-stream__hero-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5) contrast(1.05) saturate(0.94);
  transform: scale(1.04);
  transition: transform 0.6s ease;
}

.home-stream__hero-tile--fallback {
  background: linear-gradient(
    135deg,
    rgba(95, 20, 47, 0.6),
    rgba(16, 14, 26, 0.9)
  );
}

.home-stream__hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(3, 3, 7, 0.95) 4%,
      rgba(5, 5, 10, 0.75) 46%,
      rgba(5, 5, 10, 0.2) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.12) 38%,
      rgba(0, 0, 0, 0.92) 100%
    ),
    radial-gradient(circle at 18% 25%, rgba(196, 21, 68, 0.34), transparent 44%);
  z-index: 1;
}

.home-stream__hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: clamp(20px, 3.6vw, 38px);
  display: grid;
  align-content: space-between;
  gap: 34px;
}

.home-stream__hero-top {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.home-stream__hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.home-stream__hero-brand::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.8);
}

.home-stream__hero-menu {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  gap: 8px;
  flex-wrap: wrap;
}

.home-stream__hero-menu a {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.86rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 7px 12px;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.home-stream__hero-menu a:hover,
.home-stream__hero-menu a.is-active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.home-stream__signin {
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.42);
}

.home-stream__signin:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.home-stream__copy {
  max-width: min(640px, 100%);
  display: grid;
  gap: 14px;
}

.home-stream__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.72);
}

.home-stream__copy h1 {
  margin: 0;
  font-size: clamp(2.05rem, 4.8vw, 3.7rem);
  line-height: 1.08;
  text-wrap: pretty;
}

.home-stream__summary {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  max-width: 54ch;
}

.home-stream__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
}

.home-stream__meta span::after {
  content: "•";
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.4);
}

.home-stream__meta span:last-child::after {
  content: "";
  margin: 0;
}

.home-stream__subscribe {
  width: min(100%, 590px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  overflow: hidden;
  margin-top: 6px;
}

.home-stream__prefix {
  min-width: 72px;
  text-align: center;
  color: #1a1a1a;
  font-size: 0.86rem;
  border-right: 1px solid rgba(10, 10, 10, 0.12);
  padding: 13px 10px;
}

.home-stream__subscribe input[type="search"] {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111;
  padding: 13px 14px;
  font-size: 0.9rem;
}

.home-stream__subscribe input[type="search"]::placeholder {
  color: rgba(0, 0, 0, 0.45);
}

.home-stream__subscribe button {
  border: 0;
  border-radius: 0;
  padding: 0 24px;
  height: 100%;
  min-height: 46px;
  font-size: 0.88rem;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(140deg, #f01241, #d6082f);
}

.home-stream__subscribe button:hover {
  background: linear-gradient(140deg, #ff2f5a, #e20c3b);
}

.home-stream__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.home-stream__actions .btn {
  min-height: 42px;
  padding: 8px 18px;
  font-size: 0.88rem;
}

.home-stream__section {
  position: relative;
  border-radius: 20px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(19, 18, 30, 0.88), rgba(8, 8, 12, 0.95)),
    radial-gradient(circle at 95% -20%, rgba(229, 9, 20, 0.16), transparent 50%);
  opacity: 0;
  animation: home-stream-rise 0.6s ease-out forwards;
}

.home-stream__section:nth-of-type(2) {
  animation-delay: 0.12s;
}

.home-stream__section:nth-of-type(3) {
  animation-delay: 0.22s;
}

.home-stream__section:nth-of-type(4) {
  animation-delay: 0.32s;
}

.home-stream__section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.home-stream__section-head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.home-stream__section-head p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
}

.home-stream__see-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 0.86rem;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}

.home-stream__see-all span {
  color: var(--color-primary);
}

.home-stream__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 238px);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 8px;
  padding-bottom: 8px;
}

.home-stream__track::-webkit-scrollbar {
  height: 6px;
}

.home-stream__track::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.home-stream__item {
  scroll-snap-align: start;
}

.home-stream .video-card {
  height: 100%;
  border-radius: 14px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(18, 18, 24, 0.94);
  box-shadow: none;
}

.home-stream .video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.36);
}

.home-stream .video-card__thumb {
  aspect-ratio: 16 / 10;
}

.home-stream .video-card__body {
  padding: 10px 11px 12px;
  gap: 5px;
}

.home-stream .video-card__title {
  font-size: 0.9rem;
}

.home-stream .video-card__title a {
  color: #f6f6fb;
}

.home-stream .video-card__meta {
  font-size: 0.76rem;
}

.home-stream__empty {
  margin: 0;
  border-radius: 14px;
  padding: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.03);
}

@keyframes home-stream-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .home-stream__hero-wall {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    transform: rotate(-8deg) scale(1.08);
  }

  .home-stream__hero-menu {
    order: 3;
    flex: 1 0 100%;
  }
}

@media (max-width: 860px) {
  .home-stream {
    gap: 22px;
  }

  .home-stream__hero {
    min-height: clamp(420px, 94vw, 560px);
    border-radius: 18px;
  }

  .home-stream__hero-content {
    gap: 24px;
    padding: 18px;
  }

  .home-stream__copy h1 {
    font-size: clamp(1.75rem, 7.2vw, 2.55rem);
  }

  .home-stream__summary {
    font-size: 0.94rem;
  }

  .home-stream__section {
    border-radius: 16px;
    padding: 16px;
  }

  .home-stream__track {
    grid-auto-columns: minmax(180px, 56vw);
  }
}

@media (max-width: 680px) {
  .home-stream__hero-wall {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 94px;
    transform: rotate(-6deg) scale(1.04);
  }

  .home-stream__hero-shade {
    background:
      linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.78) 0%,
        rgba(0, 0, 0, 0.14) 36%,
        rgba(0, 0, 0, 0.94) 100%
      ),
      linear-gradient(
        90deg,
        rgba(5, 5, 8, 0.9) 0%,
        rgba(8, 8, 12, 0.42) 68%,
        rgba(8, 8, 12, 0.2) 100%
      );
  }

  .home-stream__hero-top {
    gap: 10px;
  }

  .home-stream__hero-menu a {
    font-size: 0.8rem;
    padding: 6px 10px;
  }

  .home-stream__signin {
    margin-left: auto;
  }

  .home-stream__subscribe {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }

  .home-stream__prefix {
    display: none;
  }

  .home-stream__subscribe input[type="search"] {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
  }

  .home-stream__subscribe button {
    border-radius: 12px;
    min-height: 44px;
  }

  .home-stream__section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-stream__see-all {
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  .home-stream__hero-brand {
    font-size: 1.05rem;
  }

  .home-stream__copy h1 {
    font-size: clamp(1.45rem, 8vw, 2.05rem);
  }

  .home-stream__actions {
    width: 100%;
  }

  .home-stream__actions .btn {
    width: 100%;
  }

  .home-stream__track {
    grid-auto-columns: minmax(170px, 72vw);
  }
}

/* ═══════════════════════════════════════════════════════════
   STREAMIT-STYLE FRONT PAGE
   ═══════════════════════════════════════════════════════════ */

/* Override site-content/site-main padding for front page */
.home .site-content {
  padding: 0;
}

.home .site-main.container {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

/* ── Header icon buttons ─────────────────────────────────── */
.header-icon-btn {
  background: none;
  border: none;
  color: var(--color-text);
  padding: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 40px;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.header-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.header-user-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  transition: background 0.2s ease;
}

.header-user-btn:hover {
  background: var(--color-primary-hover, #ff1a1a);
  color: #fff;
}

/* Header search bar (expanded) */
.header-search-bar {
  grid-column: 1 / -1;
  padding: 0 0 10px;
}

.header-search-bar .search-form {
  width: 100%;
  max-width: 600px;
}

.header-search-bar .search-form input[type="search"] {
  width: 100%;
}

/* Search toggle: show as icon, not text */
.search-toggle {
  display: inline-flex !important;
  background: none;
  border: none;
  min-height: 40px;
  min-width: 40px;
  padding: 8px;
  border-radius: 50%;
}

/* ── STREAMIT PAGE wrapper ──────────────────────────────── */
.streamit-page {
  background: var(--color-bg);
}

/* ── HERO SLIDER ────────────────────────────────────────── */
.streamit-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.streamit-hero__slide {
  position: absolute;
  inset: 0;
  background-image: var(--slide-bg);
  background-size: cover;
  background-position: center top;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  display: flex;
  align-items: flex-end;
}

.streamit-hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Gradient overlay */
.streamit-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0.08) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.35) 0%,
      transparent 30%,
      transparent 55%,
      rgba(0, 0, 0, 0.75) 100%
    );
  z-index: 1;
}

/* Body: content row */
.streamit-hero__body {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: clamp(24px, 4vw, 60px) clamp(24px, 5vw, 72px);
  padding-bottom: clamp(40px, 6vw, 80px);
  gap: 24px;
}

/* ── Left content ── */
.streamit-hero__left {
  display: grid;
  gap: 14px;
  max-width: 560px;
}

/* Brand badge */
.streamit-hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  padding: 5px 12px;
  border-radius: 4px;
  width: fit-content;
}

.streamit-hero__brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}

.streamit-hero__brand-name {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Movie title */
.streamit-hero__title {
  margin: 0;
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.05;
  text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.7);

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Ratings row */
.streamit-hero__ratings {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.streamit-hero__stars {
  display: flex;
  gap: 1px;
}

.sh-star {
  font-size: 1rem;
  line-height: 1;
}

.sh-star--full,
.sh-star--half {
  color: #f5a623;
}

.sh-star--empty {
  color: rgba(255, 255, 255, 0.3);
}

.streamit-hero__imdb-score {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
  font-weight: 500;
}

.streamit-hero__age-badge {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.streamit-hero__duration {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
}

/* Description */
.streamit-hero__excerpt {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 50ch;
}

/* Meta rows: Starring / Genres / Tags */
.streamit-hero__meta-rows {
  display: grid;
  gap: 5px;
}

.streamit-hero__meta-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.streamit-hero__meta-label {
  color: var(--color-primary);
  font-weight: 700;
  min-width: 72px;
  flex-shrink: 0;
}

.streamit-hero__meta-value {
  color: rgba(255, 255, 255, 0.88);
}

/* Play Now CTA */
.streamit-hero__actions {
  margin-top: 4px;
}

.streamit-hero__play-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-primary);
  color: #fff;
  padding: 13px 28px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}

.streamit-hero__play-btn:hover {
  background: var(--color-primary-hover, #ff1a1a);
  color: #fff;
  transform: translateY(-1px);
}

/* ── Right: Watch Trailer ── */
.streamit-hero__right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-bottom: 8px;
}

.streamit-hero__trailer-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.streamit-hero__trailer-btn:hover {
  opacity: 0.85;
  color: #fff;
}

.streamit-hero__trailer-circle {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  display: grid;
  place-items: center;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
  padding-left: 5px; /* optical centering for play icon */
}

.streamit-hero__trailer-btn:hover .streamit-hero__trailer-circle {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

/* ── Slider arrows ── */
.streamit-hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.streamit-hero__arrow:hover {
  background: rgba(255, 255, 255, 0.2);
}

.streamit-hero__arrow--prev {
  left: 18px;
}

.streamit-hero__arrow--next {
  right: 18px;
}

/* ── LATEST MOVIES ROW ──────────────────────────────────── */
.streamit-row {
  padding: 36px clamp(16px, 4vw, 60px) 48px;
  background: var(--color-bg);
}

.streamit-row__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.streamit-row__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

.streamit-row__view-all {
  color: var(--color-primary);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.streamit-row__view-all:hover {
  opacity: 0.8;
  color: var(--color-primary);
}

.streamit-row__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(185px, 240px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}

.streamit-row__track::-webkit-scrollbar {
  height: 5px;
}

.streamit-row__track::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.streamit-row__item {
  scroll-snap-align: start;
}

/* Streamit row card overrides */
.streamit-row .video-card {
  border-radius: 10px;
  height: 100%;
}

/* AV row: show as grid, no horizontal scroll */
#av-movies .streamit-row__track {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  grid-auto-flow: row;
  grid-auto-columns: unset;
  overflow: visible;
  scroll-snap-type: none;
  padding-bottom: 0;
}

#av-movies .streamit-row__item {
  scroll-snap-align: unset;
}

.streamit-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.streamit-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 700;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.streamit-pagination a.page-numbers:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
  transform: translateY(-1px);
}

.streamit-pagination .page-numbers.current {
  background: linear-gradient(
    120deg,
    var(--color-primary),
    var(--color-accent)
  );
  border-color: transparent;
  color: #fff;
}

.streamit-pagination .page-numbers.dots {
  min-width: auto;
  padding: 0 4px;
  border: 0;
  background: transparent;
  pointer-events: none;
}

.home-article {
	padding-bottom: 2em;
}

.home-article__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(15px, 1vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
}

.home-article__head {
  margin-bottom: 18px;
}

.home-article__title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.2;
}

.home-article__widgets,
.home-article__content {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
}

.home-article__widgets > :first-child,
.home-article__content > :first-child {
  margin-top: 0;
}

.home-article__widgets > :last-child,
.home-article__content > :last-child {
  margin-bottom: 0;
}

.home-article__widgets h1,
.home-article__widgets h2,
.home-article__widgets h3,
.home-article__widgets h4,
.home-article__widgets h5,
.home-article__widgets h6,
.home-article__content h1,
.home-article__content h2,
.home-article__content h3,
.home-article__content h4,
.home-article__content h5,
.home-article__content h6 {
  color: #fff;
  line-height: 1.25;
}

.home-article__widgets a,
.home-article__content a {
  color: var(--color-primary);
}

.home-article__widgets a:hover,
.home-article__content a:hover {
  color: var(--color-primary-hover, var(--color-primary));
}

.home-article__widgets ul,
.home-article__widgets ol,
.home-article__content ul,
.home-article__content ol {
  padding-left: 1.4rem;
}

.home-article__widgets blockquote,
.home-article__content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--color-primary);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.home-article__widgets img,
.home-article__content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

.home-article__widgets table,
.home-article__content table {
  width: 100%;
  border-collapse: collapse;
}

.home-article__widgets th,
.home-article__widgets td,
.home-article__content th,
.home-article__content td {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.home-article__widgets .widget {
  margin: 0;
}

.home-article__widgets .widget + .widget {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.home-article__widgets .widget-title {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.2;
}

.home-article__widgets .widget > :last-child {
  margin-bottom: 0;
}

/* ── Responsive: streamit ────────────────────────────────── */
@media (max-width: 860px) {
  .streamit-hero {
    height: calc(100svh - 64px);
    height: 420px;
  }

  .streamit-hero__title {
    font-size: clamp(1.8rem, 7vw, 3rem);
    letter-spacing: 1px;
  }

  .streamit-hero__right {
    display: none; /* hide trailer on tablet/mobile */
  }

  .streamit-hero__body {
    padding: 20px 20px 48px;
  }

  .streamit-hero__left {
    max-width: 100%;
    gap: 10px;
  }
}

@media (max-width: 540px) {
  .streamit-hero {
    height: auto;
    height: 380px;
  }

  .streamit-hero__title {
    font-size: clamp(1.5rem, 9vw, 2.4rem);
    letter-spacing: 0;
  }

  .streamit-hero__excerpt {
    display: none;
  }

  .streamit-hero__arrow {
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
  }

  .streamit-hero__arrow--prev {
    left: 8px;
  }
  .streamit-hero__arrow--next {
    right: 8px;
  }

  .streamit-row {
    padding: 24px 16px 36px;
  }

  .streamit-row__track {
    grid-auto-columns: minmax(160px, 72vw);
  }

  .streamit-pagination {
    gap: 8px;
  }

  .streamit-pagination .page-numbers {
    min-width: 40px;
    min-height: 40px;
    padding: 0 14px;
  }

  .home-article {
    padding: 0 16px 56px;
  }

  .home-article__inner {
    padding: 22px 18px;
    border-radius: 20px;
  }
}
