* {
  -webkit-tap-highlight-color: transparent;
}

/* ===== GEOMETRIC TOKENS (ZERO COLOR IN :ROOT) ===== */
:root {
  --sha-radius-sm: 4px;
  --sha-radius-md: 8px;
  --sha-radius-lg: 12px;
  --sha-radius-diagonal: 8px 0px 8px 0px;
  --sha-container-max: 1480px;
  --fv-thumb-aspect-ratio: 16/9;
}

/* ===== RESET & BASE STYLES ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  font-family: "Source Serif 4", serif;
  background-color: var(--sha-bg);
  color: var(--sha-text);
}

body {
  margin: 0;
  background-color: var(--sha-bg);
  color: var(--sha-text);
  font-family: "Source Serif 4", serif;
  font-size: 0.95rem;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

ul, ol {
  list-style: none;
}

.sha-container {
  width: 100%;
  max-width: 1560px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.visually-hidden, .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== TOP BAR HEADER ===== */
.sha-top-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--sha-bg-alpha-95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--sha-border);
}

.sha-top-topbar__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 68px;
}

.sha-top-topbar__brand {
  flex-shrink: 0;
}

.sha-top-topbar__logo {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--sha-text-primary);
}

.sha-top-topbar__logo .sha-logo-workspace {
  color: var(--sha-text-primary);
}

.sha-top-topbar__logo .sha-logo-ext {
  color: var(--sha-primary-bright);
  background: linear-gradient(135deg, var(--sha-primary-bright), var(--sha-accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sha-top-topbar__logo-img {
  max-height: 42px;
  width: auto;
  object-fit: contain;
}

/* Search Bar in Header */
.sha-top-topbar__search {
  flex: 1;
  max-width: 580px;
  margin: 0 auto;
}

.sha-topbar-search-form {
  position: relative;
  width: 100%;
}

.sha-search-input-container {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--sha-bg-surface);
  border: 1px solid var(--sha-border);
  border-radius: var(--sha-radius-md);
  padding: 2px 4px 2px 12px;
  transition: all 0.2s ease;
}

.sha-search-input-container:focus-within {
  border-color: var(--sha-primary-bright);
  box-shadow: 0 0 0 3px var(--sha-primary-alpha-25);
  background: var(--sha-bg-card-alt);
}

.sha-search-icon {
  color: var(--sha-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 8px;
}

.sha-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--sha-text);
  font-size: 0.9rem;
  padding: 8px 4px;
}

.sha-search-input::placeholder {
  color: var(--sha-text-dim);
}

input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  margin: 0 2px 0 6px;
  background:
    linear-gradient(45deg, transparent 42%, var(--sha-primary-bright) 42%, var(--sha-primary-bright) 58%, transparent 58%),
    linear-gradient(-45deg, transparent 42%, var(--sha-primary-bright) 42%, var(--sha-primary-bright) 58%, transparent 58%);
  opacity: 0.9;
  cursor: pointer;
}

.sha-search-submit-cta {
  background: var(--sha-primary);
  color: var(--sha-text-on-primary);
  border-radius: var(--sha-radius-sm);
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.sha-search-submit-cta:hover {
  background: var(--sha-primary-bright);
  box-shadow: 0 2px 8px var(--sha-primary-glow);
}

/* Autocomplete Dropdown */
.sha-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--sha-bg-surface);
  border: 1px solid var(--sha-border);
  border-radius: var(--sha-radius-md);
  box-shadow: var(--sha-shadow-modal);
  z-index: 120;
  display: none;
  overflow: hidden;
}

.sha-autocomplete-dropdown a {
  display: block;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--sha-text);
  border-bottom: 1px solid var(--sha-text-alpha-05);
  transition: background 0.15s ease, color 0.15s ease;
}

.sha-autocomplete-dropdown a:last-child {
  border-bottom: none;
}

.sha-autocomplete-dropdown a:hover {
  background: var(--sha-primary-alpha-20);
  color: var(--sha-primary-bright);
  padding-left: 18px;
}

/* Header Mobile Actions */
.sha-top-topbar__actions {
  display: none;
  align-items: center;
  gap: 8px;
}

.sha-topbar-cta-cta {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sha-bg-surface);
  border: 1px solid var(--sha-border);
  border-radius: var(--sha-radius-md);
  color: var(--sha-text);
  transition: all 0.2s ease;
}

.sha-topbar-cta-cta:hover {
  border-color: var(--sha-primary-bright);
  color: var(--sha-primary-bright);
}

.sha-hamburger-cta {
  flex-direction: column;
  gap: 4px;
}

.sha-hamburger-line {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* Mobile Collapsible Search Drawer */
.sha-mobile-search-drawer {
  display: none;
  width: 100%;
  background: var(--sha-bg-surface);
  border-top: 1px solid var(--sha-border);
  padding: 10px 0;
}

.sha-mobile-search-drawer--active {
  display: block;
}

.sha-mobile-search-form {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--sha-bg);
  border: 1px solid var(--sha-border);
  border-radius: var(--sha-radius-md);
  padding: 2px 6px 2px 12px;
}

.sha-mobile-search-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--sha-text-primary);
  padding: 8px 0;
  font-size: 0.9rem;
}

.sha-mobile-search-form button {
  color: var(--sha-primary-bright);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== MOBILE ASIDE DRAWER (LEFT DRAWER FULL TEXT) ===== */
.sha-mobile-drawer-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 290px;
  max-width: 85vw;
  background: var(--sha-bg-surface);
  border-right: 1px solid var(--sha-border);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--sha-shadow-drawer);
}

.sha-mobile-drawer-drawer--active {
  transform: translateX(0);
}

.sha-mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: var(--sha-backdrop);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 190;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sha-mobile-drawer-backdrop--active {
  opacity: 1;
  visibility: visible;
}

.sha-mobile-drawer-drawer__topbar {
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--sha-border);
  background: var(--sha-bg-alpha-50);
}

.sha-drawer-banner-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sha-text-primary);
  letter-spacing: -0.3px;
}

.sha-drawer-close-cta {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sha-text-muted);
  border-radius: var(--sha-radius-sm);
  background: var(--sha-text-alpha-05);
  transition: all 0.2s ease;
}

.sha-drawer-close-cta:hover {
  color: var(--sha-text-primary);
  background: var(--sha-text-alpha-10);
}

.sha-mobile-drawer-drawer__workspace {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.sha-mobile-guide-deck {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sha-mobile-guide-piece {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--sha-radius-md);
  color: var(--sha-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.sha-mobile-guide-piece .sha-guide-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sha-text-dim);
}

.sha-mobile-guide-piece:hover {
  background: var(--sha-primary-alpha-10);
  color: var(--sha-text-primary);
}

.sha-mobile-guide-piece:hover .sha-guide-icon {
  color: var(--sha-primary-bright);
}

.sha-mobile-guide-piece.active {
  position: relative;
  background: var(--sha-primary-alpha-20);
  color: var(--sha-primary-bright);
  font-weight: 600;
  border-left: 0;
}

.sha-mobile-guide-piece.active::before,
.sha-guide-deck__piece--active::before {
  content: '';
  position: absolute;
  inset: 2px;
  border: 1px solid var(--sha-primary-bright);
  border-radius: inherit;
  box-shadow: inset 0 0 14px var(--sha-primary-glow);
  opacity: 0.7;
  pointer-events: none;
}

.sha-mobile-guide-piece.active .sha-guide-icon {
  color: var(--sha-primary-bright);
}

/* ===== STUDIO APP SHELL LAYOUT ===== */
.sha-studio-showcase {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  flex: 1;
}

/* Left Vertical Nav Deck (Desktop) */
.sha-left-guide-deck {
  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: 86px;
  max-height: calc(100vh - 100px);
  background: var(--sha-bg-surface);
  border: 1px solid var(--sha-border-glow);
  border-radius: 0px;
  overflow-y: auto;
  box-shadow: 0 4px 20px var(--sha-backdrop), 0 0 24px var(--sha-primary-glow);
}

.sha-left-guide-deck::-webkit-scrollbar {
  width: 4px;
}

.sha-left-guide-deck::-webkit-scrollbar-thumb {
  background: var(--sha-border);
  border-radius: 4px;
}

.sha-left-guide-deck__inner {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sha-guide-deck__region-banner-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--sha-text-dim);
  padding: 0 6px;
}

.sha-guide-deck__region-banner-title--sm {
  font-size: 0.7rem;
  margin-bottom: 6px;
}

.sha-guide-deck__guide {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sha-guide-deck__piece {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 0px;
  color: var(--sha-text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s ease;
  overflow: hidden;
}

.sha-guide-deck__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sha-text-dim);
  transition: color 0.2s ease;
}

.sha-guide-deck__pill {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sha-guide-deck__piece:hover {
  background: var(--sha-primary-alpha-10);
  color: var(--sha-text-primary);
}

.sha-guide-deck__piece:hover .sha-guide-deck__icon {
  color: var(--sha-primary-bright);
}

.sha-guide-deck__piece--active {
  background: var(--sha-primary-alpha-18);
  color: var(--sha-primary-bright);
  font-weight: 600;
  border-left: 0;
  box-shadow: inset 0 0 12px var(--sha-primary-glow-subtle);
}

.sha-guide-deck__piece--active .sha-guide-deck__icon {
  color: var(--sha-primary-bright);
}

/* Nav Deck Backlinks */
.sha-guide-deck__backlinks {
  border-top: 1px solid var(--sha-border);
  padding-top: 0.85rem;
  margin-top: 0.5rem;
}

.sha-guide-deck__backlinks-deck {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sha-guide-deck__backlink-piece {
  font-size: 0.8rem;
  color: var(--sha-text-dim);
  padding: 4px 6px;
  border-radius: var(--sha-radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sha-guide-deck__backlink-piece:hover {
  color: var(--sha-primary-bright);
  background: var(--sha-primary-alpha-10);
}

/* Main Media Canvas */
.sha-workspace-container {
  flex: 1;
  min-width: 0;
}

.sha-container-region {
  width: 100%;
}

/* ===== HEADINGS ===== */
.sha-banner-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--sha-border);
}

.sha-banner-title__banner-title-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sha-banner-title__pill {
  width: 4px;
  height: 18px;
  background: linear-gradient(to bottom, var(--sha-primary-bright), var(--sha-primary));
  border-radius: 2px;
  box-shadow: 0 0 8px var(--sha-primary-glow);
}

.sha-banner-title__banner-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sha-text-primary);
  letter-spacing: -0.3px;
}

/* ===== VIDEO GRID & CARDS (DIAGONAL RADIUS SPEC) ===== */
.sha-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.sha-piece {
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sha-piece:hover {
  transform: translateY(-3px);
}

.sha-piece__thumbnail {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--fv-thumb-aspect-ratio, 16/9);
  overflow: hidden;
  background-color: var(--sha-bg-surface);
  border-radius: var(--sha-radius-diagonal);
  border: 1px solid var(--sha-border-glow);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sha-piece__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.sha-piece:hover .sha-piece__thumbnail {
  border-color: var(--sha-primary-bright);
  box-shadow: 0 6px 20px var(--sha-primary-glow);
}

.sha-piece:hover .sha-piece__thumbnail img {
  transform: scale(1.06);
}

.sha-piece__labels {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
}

.sha-pill-ribbon {
  display: inline-block;
  background: var(--sha-primary);
  color: var(--sha-text-on-primary);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 10px;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.sha-piece__subtext {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: var(--sha-bg-alpha-85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--sha-text-secondary);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.sha-piece__banner-title {
  margin-top: 0.6rem;
}

.sha-piece__banner-title h4 {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--sha-text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2lh;
  transition: color 0.2s ease;
}

.sha-piece:hover .sha-piece__banner-title h4 {
  color: var(--sha-primary-bright);
}

/* ===== PAGINATION ===== */
.sha-paginator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.sha-paginator__piece a,
.sha-paginator__piece span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  background: var(--sha-bg-surface);
  border: 1px solid var(--sha-border);
  border-radius: var(--sha-radius-md);
  color: var(--sha-text);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.sha-paginator__piece a:hover {
  background: var(--sha-primary-alpha-20);
  border-color: var(--sha-primary-bright);
  color: var(--sha-primary-bright);
}

.sha-paginator__piece--active a,
.sha-paginator__piece--active span {
  background: var(--sha-primary);
  border-color: var(--sha-primary-bright);
  color: var(--sha-text-on-primary);
  box-shadow: 0 0 12px var(--sha-primary-glow);
}

/* ===== BREADCRUMBS ===== */
.sha-breadcrumbs-area {
  margin-bottom: 0.75rem;
}

.sha-breadcrumbs-area .sha-container {
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--sha-text-dim);
}

.sha-breadcrumbs-area a {
  color: var(--sha-text-muted);
}

.sha-breadcrumbs-area a:hover {
  color: var(--sha-primary-bright);
}

.sha-breadcrumbs-area .sha-current {
  color: var(--sha-primary-bright);
  font-weight: 500;
}

/* ===== TIME FILTERS ===== */
.sha-time-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.sha-time-search-cta {
  padding: 5px 14px;
  background: var(--sha-bg-surface);
  border: 1px solid var(--sha-border);
  border-radius: 20px;
  color: var(--sha-text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.sha-time-search-cta:hover {
  border-color: var(--sha-primary-bright);
  color: var(--sha-text-primary);
}

.sha-time-search-cta.active {
  background: var(--sha-primary);
  border-color: var(--sha-primary-bright);
  color: var(--sha-text-on-primary);
  box-shadow: 0 0 10px var(--sha-primary-glow);
}

/* ===== SINGLE VIDEO PAGE STYLES ===== */
.sha-single-video-page {
  width: 100%;
}

.sha-single-video-top-guide {
  margin-bottom: 1rem;
}

.sha-single-video-topbar {
  margin-top: 0.5rem;
}

.sha-single-video-banner-title {
  font-family: "Cinzel", serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--sha-text-primary);
  line-height: 1.15;
  letter-spacing: 0.02em;
}

/* Player Canvas 16:9 Full Width */
.sha-single-player-container {
  width: 100%;
  margin-bottom: 1.25rem;
}

.sha-player-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--sha-radius-lg);
  overflow: hidden;
  border: 1px solid var(--sha-border);
  box-shadow: 0 8px 30px var(--sha-backdrop);
}

.sha-player-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.sha-player-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile Quick Toolbar (< 768px) */
.sha-mobile-quick-guide {
  display: none;
  margin-bottom: 1rem;
}

.sha-quick-guide-pill {
  background: var(--sha-bg-surface);
  border: 1px solid var(--sha-border);
  border-radius: 30px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-shadow: 0 4px 16px var(--sha-backdrop);
}

.sha-quick-servers {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sha-quick-server-cta {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--sha-bg-card);
  border: 1px solid var(--sha-border);
  color: var(--sha-text-muted);
  transition: all 0.2s ease;
}

.sha-quick-server-cta.sha-player__cdn--active {
  background: var(--sha-primary);
  color: var(--sha-text-on-primary);
  border-color: var(--sha-primary-bright);
}

.sha-quick-subtext-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sha-quick-stat-piece {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sha-text-muted);
}

.sha-quick-like-cta {
  background: var(--sha-primary-alpha-15);
  border: 1px solid var(--sha-primary-alpha-25);
  padding: 4px 8px;
  border-radius: 16px;
  color: var(--sha-primary-bright);
}

/* Below Player Split 70% / 30% (Desktop) */
.sha-single-video-subtext {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.sha-single-subtext-left {
  flex: 7;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sha-single-subtext-right {
  flex: 3;
  min-width: 0;
}

/* Server Switch Deck */
.sha-server-switch-deck {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--sha-bg-surface);
  border: 1px solid var(--sha-border);
  border-radius: var(--sha-radius-md);
  padding: 10px 14px;
  flex-wrap: wrap;
}

.sha-server-deck-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sha-text-muted);
}

.sha-server-pills-deck {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sha-sapphire-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--sha-bg-card);
  border: 1px solid var(--sha-border);
  border-radius: 20px;
  color: var(--sha-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.sha-sapphire-pill .sha-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sha-text-dim);
}

.sha-sapphire-pill:hover {
  border-color: var(--sha-primary-bright);
  color: var(--sha-text-primary);
}

.sha-sapphire-pill.sha-player__cdn--active {
  background: linear-gradient(135deg, var(--sha-primary), var(--sha-primary-dark));
  border-color: var(--sha-primary-bright);
  color: var(--sha-text-on-primary);
  box-shadow: 0 0 14px var(--sha-primary-glow);
}

.sha-sapphire-pill.sha-player__cdn--active .sha-pill-dot {
  background: var(--sha-primary-bright);
  box-shadow: 0 0 6px var(--sha-primary-bright);
}

/* Description Card */
.sha-single-description-block {
  background: var(--sha-bg-surface);
  border: 1px solid var(--sha-border);
  border-radius: var(--sha-radius-md);
  padding: 1.25rem;
}

.sha-block-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--sha-text-dim);
  margin-bottom: 0.75rem;
}

.sha-block-workspace {
  color: var(--sha-text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* Video Tags & Categories */
.sha-single-tags-deck {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sha-single-tax-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sha-tax-group-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sha-tax-group-pill {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--sha-text-dim);
}

.sha-video__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sha-pill-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--sha-bg-surface);
  border: 1px solid var(--sha-border);
  border-radius: var(--sha-radius-md);
  color: var(--sha-text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.sha-pill-pill:hover {
  border-color: var(--sha-primary-bright);
  color: var(--sha-primary-bright);
  background: var(--sha-primary-alpha-10);
}

.sha-pill-pill--cat {
  border-color: var(--sha-cyan-alpha-30);
  color: var(--sha-accent-cyan);
}

.sha-pill-pill--cat:hover {
  border-color: var(--sha-accent-cyan);
  background: var(--sha-cyan-alpha-15);
}

/* Right Block (30% Interaction Card) */
.sha-single-interaction-block {
  background: var(--sha-bg-surface);
  border: 1px solid var(--sha-border);
  border-radius: var(--sha-radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 4px 20px var(--sha-backdrop);
}

.sha-subtext-topbar {
  border-bottom: 1px solid var(--sha-border);
  padding-bottom: 0.5rem;
}

.sha-subtext-pill {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--sha-text-dim);
}

.sha-subtext-metrics {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sha-metric-piece {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--sha-bg-card);
  border: 1px solid var(--sha-border);
  border-radius: var(--sha-radius-md);
  padding: 10px 14px;
}

.sha-metric-icon {
  color: var(--sha-primary-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sha-metric-data {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  flex-wrap: nowrap;
  overflow: hidden;
}

.sha-metric-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sha-text-primary);
  line-height: 1;
}

.sha-metric-banner-title {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--sha-text-dim);
  text-transform: lowercase;
  line-height: 1;
}

/* Big Like Button */
.sha-big-like-cta {
  width: 100%;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--sha-border), var(--sha-bg-surface));
  border: 1px solid var(--sha-border-light);
  border-radius: var(--sha-radius-md);
  color: var(--sha-text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.sha-big-like-cta .sha-like-pill {
  background: var(--sha-primary-alpha-25);
  border: 1px solid var(--sha-border-glow-active);
  color: var(--sha-primary-bright);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
}

.sha-big-like-cta:hover,
.sha-big-like-cta.liked {
  background: linear-gradient(135deg, var(--sha-primary), var(--sha-primary-dark));
  border-color: var(--sha-primary-bright);
  box-shadow: 0 4px 16px var(--sha-primary-glow);
  transform: translateY(-1px);
}

.sha-big-like-cta:hover .sha-like-pill,
.sha-big-like-cta.liked .sha-like-pill {
  background: var(--sha-text-primary);
  color: var(--sha-primary);
  border-color: var(--sha-text-primary);
}

/* Action Buttons Group */
.sha-cta-buttons-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sha-cta-cta-share {
  width: 100%;
  padding: 10px 14px;
  background: var(--sha-bg-card);
  border: 1px solid var(--sha-border);
  border-radius: var(--sha-radius-md);
  color: var(--sha-text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.sha-cta-cta-share:hover {
  border-color: var(--sha-primary-bright);
  color: var(--sha-text-primary);
  background: var(--sha-primary-alpha-10);
}

/* Related Videos Section */
.sha-single-related-region {
  margin-top: 2rem;
}

.sha-load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.sha-cta--load-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--sha-bg-surface);
  border: 1px solid var(--sha-border);
  border-radius: var(--sha-radius-md);
  color: var(--sha-text);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.sha-cta--load-more:hover {
  background: var(--sha-primary);
  border-color: var(--sha-primary-bright);
  color: var(--sha-text-on-primary);
  box-shadow: 0 4px 16px var(--sha-primary-glow);
}

.sha-piece--skeleton { pointer-events: none; }
.sha-piece--skeleton:hover { transform: none; }
.sha-piece--skeleton .sha-piece__thumbnail,
.sha-piece--skeleton .sha-piece__banner-title h4 {
  background: linear-gradient(90deg, var(--sha-bg-surface) 25%, color-mix(in srgb, var(--sha-primary-bright) 16%, var(--sha-bg-surface)) 50%, var(--sha-bg-surface) 75%);
  background-size: 200% 100%;
  animation: sha-skeleton-shimmer 1.4s ease-in-out infinite;
}
.sha-piece--skeleton .sha-piece__banner-title h4 { width: 78%; min-height: 2lh; color: transparent; border-radius: 4px; }
@keyframes sha-skeleton-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .sha-piece--skeleton .sha-piece__thumbnail, .sha-piece--skeleton .sha-piece__banner-title h4 { animation: none; } }

/* ===== BANNER ADS ===== */
.fv-header-banner,
.fv-footer-banner {
  margin: 1.5rem auto;
  text-align: center;
  overflow: hidden;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.fv-header-banner > *,
.fv-footer-banner > * {
  margin-left: auto;
  margin-right: auto;
}

/* ===== FOOTER ===== */
.sha-site-base-panel {
  background: var(--sha-bg-deep);
  border-top: 1px solid var(--sha-border);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}

.sha-base-panel__guide {
  margin-bottom: 1.5rem;
}

.sha-base-panel__tags-banner-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--sha-text-dim);
  margin-bottom: 0.75rem;
}

.sha-base-panel__tags-deck {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sha-base-panel__pill-piece {
  display: inline-block;
  padding: 4px 10px;
  background: var(--sha-bg-surface);
  border: 1px solid var(--sha-border);
  border-radius: var(--sha-radius-sm);
  color: var(--sha-text-muted);
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.sha-base-panel__pill-piece:hover {
  border-color: var(--sha-primary-bright);
  color: var(--sha-primary-bright);
  background: var(--sha-primary-alpha-10);
}

.sha-base-panel__pill-piece--partner {
  border-color: var(--sha-cyan-alpha-25);
  color: var(--sha-text-muted);
}

.sha-base-panel__pill-piece--partner:hover {
  border-color: var(--sha-accent-cyan);
  color: var(--sha-accent-cyan);
}

.sha-base-panel__backlinks {
  margin-bottom: 1.5rem;
}

.sha-base-panel__text {
  border-top: 1px solid var(--sha-text-alpha-05);
  padding-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.sha-base-panel__site-desc {
  font-size: 0.88rem;
  color: var(--sha-text-muted);
  margin-bottom: 0.75rem;
}

.sha-base-panel__seo-text {
  font-size: 0.82rem;
  color: var(--sha-text-dim);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.sha-policy-guide {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0.75rem;
}

.sha-policy-guide a {
  font-size: 0.82rem;
  color: var(--sha-text-dim);
  transition: color 0.2s ease;
}

.sha-policy-guide a:hover {
  color: var(--sha-primary-bright);
}

.sha-base-panel__bottom {
  border-top: 1px solid var(--sha-text-alpha-05);
  padding-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.sha-base-panel__copyright {
  font-size: 0.82rem;
  color: var(--sha-text-dim);
}

.sha-dmca-pill img {
  height: 20px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.sha-dmca-pill:hover img {
  opacity: 1;
}

/* ===== POLICY & STATIC PAGES ===== */
.sha-policy {
  width: 100%;
}

.sha-policy-page {
  background: var(--sha-bg-surface);
  border: 1px solid var(--sha-border);
  border-radius: var(--sha-radius-lg);
  padding: 2rem;
}

.sha-policy-kicker {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sha-text-primary);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--sha-border);
  padding-bottom: 0.75rem;
}

.sha-policy-block {
  color: var(--sha-text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.sha-policy-block h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--sha-text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.sha-policy-block p {
  margin-bottom: 1rem;
}

.sha-policy-block a {
  color: var(--sha-primary-bright);
  text-decoration: underline;
}

.sha-policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.sha-policy-table th,
.sha-policy-table td {
  padding: 10px 14px;
  border: 1px solid var(--sha-border);
  text-align: left;
  font-size: 0.9rem;
}

.sha-policy-table thead {
  background: var(--sha-bg-card);
  color: var(--sha-text-primary);
}

.sha-policy-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.sha-policy-form label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sha-text-primary);
}

.sha-policy-form input,
.sha-policy-form select,
.sha-policy-form textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--sha-bg);
  border: 1px solid var(--sha-border);
  border-radius: var(--sha-radius-md);
  color: var(--sha-text-primary);
}

.sha-policy-form input:focus,
.sha-policy-form select:focus,
.sha-policy-form textarea:focus {
  outline: none;
  border-color: var(--sha-primary-bright);
}

.sha-policy-cta {
  display: inline-block;
  padding: 10px 20px;
  background: var(--sha-primary);
  color: var(--sha-text-on-primary);
  font-weight: 600;
  border-radius: var(--sha-radius-md);
  transition: all 0.2s ease;
}

.sha-policy-cta:hover {
  background: var(--sha-primary-bright);
}

/* 404 Error Page */
.sha-error-404-block {
  background: var(--sha-bg-surface);
  border: 1px solid var(--sha-border);
  border-radius: var(--sha-radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
}

.sha-error-404-code {
  font-size: 5rem;
  font-weight: 900;
  color: var(--sha-primary-bright);
  line-height: 1;
  margin-bottom: 1rem;
}

.sha-error-404-banner-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sha-text-primary);
  margin-bottom: 0.5rem;
}

.sha-error-404-desc {
  font-size: 0.95rem;
  color: var(--sha-text-muted);
  margin-bottom: 1.5rem;
}

.sha-cta--primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--sha-primary);
  color: var(--sha-text-on-primary);
  font-weight: 600;
  border-radius: var(--sha-radius-md);
  transition: all 0.2s ease;
}

.sha-cta--primary:hover {
  background: var(--sha-primary-bright);
  box-shadow: 0 4px 16px var(--sha-primary-glow);
}

/* Empty notices */
.sha-empty-notice {
  text-align: center;
  color: var(--sha-text-muted);
  font-size: 1rem;
  padding: 2rem;
}

.sha-empty-search-notice {
  text-align: center;
  padding: 2rem;
}

.sha-empty-hint {
  color: var(--sha-text-dim);
  font-size: 0.88rem;
  margin-top: 0.5rem;
}

/* ===== TOAST NOTIFICATION ===== */
.sha-sapphire-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--sha-bg-card);
  border: 1px solid var(--sha-primary-bright);
  color: var(--sha-text-primary);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 8px 24px var(--sha-backdrop), 0 0 12px var(--sha-primary-glow);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sha-sapphire-toast--visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ===== BACK TO TOP BUTTON ===== */
.sha-back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--sha-bg-surface);
  border: 1px solid var(--sha-border);
  border-radius: var(--sha-radius-md);
  color: var(--sha-text);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px var(--sha-backdrop);
}

.sha-back-to-top:hover {
  background: var(--sha-primary);
  border-color: var(--sha-primary-bright);
  color: var(--sha-text-on-primary);
  box-shadow: 0 0 16px var(--sha-primary-glow);
}

.sha-back-to-top.sha-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sha-mt-4 { margin-top: 1rem; }
.sha-mt-5 { margin-top: 1.5rem; }
.sha-text-center { text-align: center; }

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Tablet (768px – 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .sha-left-guide-deck {
    display: none;
  }

  .sha-top-topbar__search {
    max-width: 380px;
  }

  .sha-top-topbar__actions {
    display: flex;
  }

  .sha-mobile-search-toggle {
    display: none;
  }

  .sha-items {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .sha-single-video-subtext {
    flex-direction: column;
  }

  .sha-single-subtext-left,
  .sha-single-subtext-right {
    width: 100%;
    flex: none;
  }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  .sha-left-guide-deck {
    display: none;
  }

  .sha-top-topbar__container {
    height: 60px;
  }

  .sha-top-topbar__search {
    display: none;
  }

  .sha-top-topbar__actions {
    display: flex;
  }

  .sha-studio-showcase {
    padding-top: 1rem;
    padding-bottom: 1.5rem;
  }

  .sha-items {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 10px;
  }

  .sha-piece__banner-title h4 {
    font-size: 0.82rem;
  }

  /* Single Video Mobile Edge-to-Edge */
  .sha-single-video-top-guide {
    margin-bottom: 0.75rem;
  }

  .sha-single-video-banner-title {
    font-size: 1.15rem;
  }

  .sha-single-player-container {
    margin-left: -1rem;
    margin-right: -1rem;
    width: calc(100% + 2rem);
    border-radius: 0;
  }

  .sha-player-container {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .sha-mobile-quick-guide {
    display: block;
  }

  .sha-server-switch-deck {
    display: none;
  }

  .sha-single-video-subtext {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .sha-single-subtext-left,
  .sha-single-subtext-right {
    width: 100%;
    flex: none;
  }

  .sha-base-panel__bottom {
    flex-direction: column;
    text-align: center;
  }
}
