/*
Theme Name: StreamHub
Theme URI: https://streagalgotiya.lovable.app
Author: StreamHub
Author URI: https://streagalgotiya.lovable.app
Description: Dark neumorphic streaming/movie theme with neon accents, custom widgets, and TMDB integration.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: streamhub
Tags: dark, entertainment, movies, streaming, neumorphism, one-column, custom-menu, custom-logo, featured-images, theme-options

StreamHub — A dark neumorphic movie/streaming WordPress theme.
*/

/* ===== CSS VARIABLES ===== */
:root {
  --sh-bg: #1a1d2e;
  --sh-bg-alt: #1e2237;
  --sh-bg-deep: #161928;
  --sh-fg: #e8e8ec;
  --sh-fg-muted: #9ca3af;
  --sh-primary-h: 38;
  --sh-primary-s: 100%;
  --sh-primary-l: 55%;
  --sh-primary: hsl(var(--sh-primary-h), var(--sh-primary-s), var(--sh-primary-l));
  --sh-accent: hsl(350, 85%, 58%);
  --sh-border: rgba(255,255,255,0.06);
  --sh-shadow-dark: #0c0e1d;
  --sh-shadow-light: #272c44;
  --sh-radius: 12px;
  --sh-radius-sm: 8px;
  --sh-font-display: 'Inter', 'Segoe UI', sans-serif;
  --sh-font-body: 'Inter', 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--sh-font-body);
  background-color: var(--sh-bg);
  color: var(--sh-fg);
  line-height: 1.6;
  font-size: 15px;
}

a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--sh-primary); }

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sh-font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--sh-fg);
}

/* ===== NEU FLAT & PRESSED ===== */
.neu-flat {
  background: linear-gradient(145deg, var(--sh-bg-alt), var(--sh-bg));
  border-radius: var(--sh-radius);
  box-shadow: 6px 6px 14px var(--sh-shadow-dark), -4px -4px 10px var(--sh-shadow-light);
}

.neu-pressed {
  background: var(--sh-bg);
  border-radius: var(--sh-radius);
  box-shadow: inset 4px 4px 10px var(--sh-shadow-dark), inset -3px -3px 8px var(--sh-shadow-light);
}

.neu-btn {
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: var(--sh-radius);
}
.neu-btn:hover {
  box-shadow: inset 4px 4px 10px var(--sh-shadow-dark), inset -3px -3px 8px var(--sh-shadow-light);
  transform: scale(0.97);
}
.neu-btn:active {
  box-shadow: inset 6px 6px 14px var(--sh-shadow-dark), inset -4px -4px 10px var(--sh-shadow-light);
  transform: scale(0.94);
}

/* ===== LAYOUT ===== */
.sh-container {
  max-width: 1280px;
  margin: 10px auto;
  padding: 0 16px;
}

@media (min-width: 1024px) {
  .sh-container { padding: 0 48px; }
}

.sh-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  padding-top: 32px;
  padding-bottom: 64px;
}

@media (min-width: 768px) {
  .sh-main-grid {
    grid-template-columns: 1fr 300px;
  }
}

/* ===== HEADER ===== */
.sh-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(26,29,46,0.98) 0%, rgba(26,29,46,0) 100%);
  transition: background 0.3s, box-shadow 0.3s, transform 0.32s ease;
}

.sh-header.scrolled {
  background: linear-gradient(180deg, #1e2237 0%, #1a1d2e 100%);
  box-shadow: 0 4px 20px var(--sh-shadow-dark), 0 -2px 8px var(--sh-shadow-light);
position:relative;}

@media (min-width: 1024px) {
  .sh-header { padding: 14px 48px; }
}

.sh-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sh-logo-icon {
  width: 32px;
  height: 32px;
  background: var(--sh-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.sh-logo:hover .sh-logo-icon { transform: scale(1.1); }

.sh-logo-icon svg { width: 16px; height: 16px; color: #1a1d2e; }

.sh-logo-text {
  font-family: var(--sh-font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: var(--sh-fg);
}
.sh-logo-text span { color: var(--sh-primary); }

/* Desktop nav */
.sh-nav {
  display: none;
  align-items: center;
  gap: 24px;
  margin-left: 32px;
}

@media (min-width: 768px) {
  .sh-nav { display: flex; }
}

.sh-nav a {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sh-fg-muted);
  transition: color 0.2s;
}
.sh-nav a:hover, .sh-nav a.active { color: var(--sh-primary); }

/* Mobile menu toggle */
.sh-menu-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--sh-fg);
  padding: 8px;
  cursor: pointer;
}

@media (min-width: 768px) {
  .sh-menu-toggle { display: none; }
}

/* Mobile menu overlay */
.sh-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.7);
}
.sh-mobile-overlay.open { display: block; }

.sh-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 201;
  width: 67%;
  background: linear-gradient(135deg, #1e2237 0%, #1a1d2e 100%);
  box-shadow: -8px 0 32px var(--sh-shadow-dark);
  padding: 20px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.sh-mobile-menu.open { transform: translateX(0); }

.sh-mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.sh-mobile-menu-header h3 {
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.sh-mobile-menu nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sh-fg-muted);
  border-radius: var(--sh-radius);
  transition: all 0.2s;
}
.sh-mobile-menu nav a:hover { color: var(--sh-fg); }
.sh-mobile-menu nav a.active {
  color: var(--sh-primary);
  box-shadow: inset 4px 4px 10px var(--sh-shadow-dark), inset -3px -3px 8px var(--sh-shadow-light);
}

/* ===== BOTTOM NAV (Mobile) ===== */
.sh-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-top: 1px solid var(--sh-border);
  background: linear-gradient(180deg, #1e2237 0%, #1a1d2e 100%);
  box-shadow: 0 -4px 20px var(--sh-shadow-dark), 0 2px 8px var(--sh-shadow-light);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 6px 0;
}

@media (min-width: 768px) {
  .sh-bottom-nav { display: none; }
}

.sh-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  min-width: 48px;
  color: var(--sh-fg-muted);
  transition: color 0.2s;
}
.sh-bottom-nav a.active { color: var(--sh-primary); }
.sh-bottom-nav a svg { width: 20px; height: 20px; }
.sh-bottom-nav a span { font-size: 10px; font-weight: 500; }

/* ===== HERO / FEATURED SLIDER ===== */
.sh-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 280px;
  max-height: 75vh;
  overflow: hidden;
}

.sh-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  pointer-events: none;
  z-index: 0;
}

.sh-hero-slide.sh-hero-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.sh-hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.sh-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--sh-bg) 0%, transparent 50%, rgba(26,29,46,0.4) 100%);
}

.sh-hero-content {
  position: absolute;
  bottom: 48px;
  left: 16px;
  right: 16px;
  z-index: 2;
}

@media (min-width: 1024px) {
  .sh-hero-content { left: 48px; right: 48px; }
}

.sh-hero-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.sh-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--sh-fg-muted);
  margin-bottom: 16px;
}

.sh-hero-badge {
  background: var(--sh-primary);
  color: var(--sh-bg);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.625rem;
  text-transform: uppercase;
}

.sh-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--sh-primary);
  color: var(--sh-bg);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--sh-radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.sh-hero-btn:hover {
  filter: brightness(1.15);
  color: var(--sh-bg);
}

/* ===== CONTENT ROW ===== */
.sh-content-row {
  padding: 16px 0; margin-bottom:2rem;
}

.sh-content-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  margin-bottom: 12px;
}

@media (max-width: 767px) {
  .sh-content-row-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .sh-view-all {
    margin-top: 2px;
  }
}

@media (min-width: 1024px) {
  .sh-content-row-header { padding: 0 48px; }
}

.sh-content-row-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.sh-content-row-title::after {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--sh-primary);
  margin-top: 4px;
}

.sh-view-all {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: var(--sh-fg-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.sh-view-all:hover { color: var(--sh-primary); }

.sh-content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 0;
}

@media (min-width: 640px) { .sh-content-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; } }
@media (min-width: 768px) { .sh-content-grid { grid-template-columns: repeat(5, 1fr); gap: 12px; } }
@media (min-width: 1024px) { .sh-content-grid { grid-template-columns: repeat(6, 1fr); gap: 12px; padding: 0 48px; } }
@media (min-width: 1280px) { .sh-content-grid { grid-template-columns: repeat(7, 1fr); } }

/* ===== MOVIE CARD ===== */
.sh-movie-card {
  position: relative;
  border-radius: var(--sh-radius-sm);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}
.sh-movie-card:hover {
  transform: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.sh-movie-card img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
}

.sh-movie-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.sh-movie-card-title {
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sh-movie-card-rating {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0,0,0,0.7);
  color: var(--sh-primary);
  font-size: 0.625rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ===== SINGLE POST / PLAYER PAGE ===== */
.sh-single-header {
  position: relative;
  height: 50vh;
  min-height: 300px;
  background-size: cover;
  background-position: center top;
}

.sh-single-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--sh-bg) 0%, transparent 60%);
}

.sh-single-content {
  position: relative;
  z-index: 2;
  margin-top: -80px;
  padding: 0 16px;
}

@media (min-width: 1024px) {
  .sh-single-content { padding: 0 48px; }
}

.sh-single-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.sh-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--sh-fg-muted);
  margin-bottom: 20px;
}

.sh-single-body {
  max-width: 800px;
  color: rgba(232,232,236,0.8);
  font-size: 0.9375rem;
  line-height: 1.8;
}

.sh-single-body p { margin-bottom: 1em; }
.sh-single-body h2 { font-size: 1.25rem; margin: 1.5em 0 0.5em; }
.sh-single-body h3 { font-size: 1.1rem; margin: 1.25em 0 0.5em; }
.sh-single-body a { color: var(--sh-primary); }
.sh-single-body blockquote {
  border-left: 3px solid var(--sh-primary);
  padding-left: 16px;
  margin: 1em 0;
  color: var(--sh-fg-muted);
  font-style: italic;
}
.sh-single-body ul, .sh-single-body ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}

/* ===== CAST ROW ===== */
.sh-cast-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.sh-cast-grid::-webkit-scrollbar { display: none; }

.sh-cast-card {
  flex-shrink: 0;
  width: 80px;
  text-align: center;
}

.sh-cast-card img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 6px;
  border: 2px solid var(--sh-border);
}

.sh-cast-card-name {
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
}
.sh-cast-card-role {
  font-size: 0.625rem;
  color: var(--sh-fg-muted);
}

/* ===== SIDEBAR / WIDGETS ===== */
.sh-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sh-widget {
  border: 1px solid var(--sh-border);
}

.sh-widget-title {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--sh-primary);
}

.sh-widget ul {
    list-style: none;
    display: flex;
    gap: 8px;
  padding: 0;
	
    flex-wrap: wrap;
}

.sh-widget ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--sh-radius-sm);
  font-size: 0.8125rem;
  color: var(--sh-fg-muted);
  transition: all 0.2s;
}
.sh-widget ul li a:hover {
  color: var(--sh-primary);
  background: rgba(255,255,255,0.03);
}

/* ===== COMMENTS ===== */
.sh-comments { margin-top: 40px; }

.sh-comment {
  padding: 16px;
  border: 1px solid var(--sh-border);
  margin-bottom: 12px;
}

.sh-comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.sh-comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sh-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--sh-bg);
}

.sh-comment-author {
  font-weight: 600;
  font-size: 0.875rem;
}

.sh-comment-date {
  font-size: 0.6875rem;
  color: var(--sh-fg-muted);
}

.sh-comment-body {
  font-size: 0.8125rem;
  color: rgba(232,232,236,0.8);
  line-height: 1.6;
}

.sh-comment-form textarea {
  width: 100%;
  background: var(--sh-bg);
  border: 1px solid var(--sh-border);
  border-radius: var(--sh-radius);
  padding: 12px;
  color: var(--sh-fg);
  font-family: var(--sh-font-body);
  font-size: 0.875rem;
  resize: vertical;
  min-height: 100px;
  box-shadow: inset 4px 4px 10px var(--sh-shadow-dark), inset -3px -3px 8px var(--sh-shadow-light);
}
.sh-comment-form textarea:focus {
  outline: none;
  border-color: var(--sh-primary);
}

.sh-comment-form .sh-btn {
  margin-top: 8px;
}

/* ===== REACTIONS ===== */
.sh-reactions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.sh-reaction-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  background: linear-gradient(145deg, var(--sh-bg-alt), var(--sh-bg));
  border: 1px solid var(--sh-border);
  box-shadow: 6px 6px 14px var(--sh-shadow-dark), -4px -4px 10px var(--sh-shadow-light);
  border-radius: var(--sh-radius);
  cursor: pointer;
  transition: all 0.2s;
}
.sh-reaction-btn:hover {
  box-shadow: inset 4px 4px 10px var(--sh-shadow-dark), inset -3px -3px 8px var(--sh-shadow-light);
  transform: scale(0.97);
  color: white;
}
.sh-reaction-btn:active {
  box-shadow: inset 6px 6px 14px var(--sh-shadow-dark), inset -4px -4px 10px var(--sh-shadow-light);
  transform: scale(0.94);
}

.sh-reaction-count {
  font-size: 0.75rem;
  font-weight: 600;
}

/* ===== BUTTONS ===== */
.sh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--sh-radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.sh-btn-primary {
  background: var(--sh-primary);
  color: var(--sh-bg);
}
.sh-btn-primary:hover {
  filter: brightness(1.15);
  color: var(--sh-bg);
}

.sh-btn-outline {
  background: transparent;
  color: var(--sh-fg);
  border: 1px solid var(--sh-border);
}
.sh-btn-outline:hover {
  border-color: var(--sh-primary);
  color: var(--sh-primary);
}

/* ===== ARCHIVE / CATEGORY ===== */
.sh-archive-header {
  padding: 24px 20px;
  margin: 10px 0 14px;
  text-align: center;
}

.sh-archive-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 10px 0 12px;
}
.sh-archive-title span { color: var(--sh-primary); }

.sh-archive-desc {
  color: var(--sh-fg-muted);
  margin-top: 8px;
  font-size: 0.875rem;
}

/* ===== POST CARD (Archive style) ===== */
.sh-post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--sh-border);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.sh-post-card:hover {
  transform: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.sh-post-card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.sh-post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.sh-post-card:hover .sh-post-card-thumb img { transform: scale(1.05); }

.sh-post-card-body { padding: 16px; }

.sh-post-card-category {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sh-primary);
  font-weight: 700;
  margin-bottom: 6px;
}

.sh-post-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sh-post-card-excerpt {
  font-size: 0.8125rem;
  color: var(--sh-fg-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.sh-post-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.6875rem;
  color: var(--sh-fg-muted);
}

/* ===== PAGINATION ===== */
.sh-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin: 40px 0;
}

.sh-pagination a, .sh-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--sh-radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sh-fg-muted);
  transition: all 0.2s;
}
.sh-pagination a:hover { color: var(--sh-primary); }
.sh-pagination .current {
  color: var(--sh-primary);
  box-shadow: inset 4px 4px 10px var(--sh-shadow-dark), inset -3px -3px 8px var(--sh-shadow-light);
}

/* ===== FOOTER ===== */
.sh-footer {
  margin-top: 64px;
padding:1rem;
  border-top: 1px solid var(--sh-border);
  text-align: center;
  background: linear-gradient(180deg, var(--sh-bg) 0%, var(--sh-bg-deep) 100%);
  box-shadow: 0 -4px 20px var(--sh-shadow-dark);
  color: var(--sh-fg-muted);
  font-size: 0.75rem;
}

@media (min-width: 768px) {
  .sh-footer { padding-bottom: 32px; }
}

.sh-footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.sh-footer-links a:hover { color: var(--sh-primary); }

.sh-footer-copy { opacity: 0.6; margin-top: 4px; }

/* ===== SEARCH PAGE ===== */
.sh-search-form {
  display: flex;
  gap: 8px;
  max-width: 600px;
  margin: 0 auto;
}

.sh-search-input {
  flex: 1;
  background: var(--sh-bg);
  border: 1px solid var(--sh-border);
  border-radius: var(--sh-radius);
  padding: 12px 16px;
  color: var(--sh-fg);
  font-size: 0.875rem;
  box-shadow: inset 4px 4px 10px var(--sh-shadow-dark), inset -3px -3px 8px var(--sh-shadow-light);
}
.sh-search-input:focus {
  outline: none;
  border-color: var(--sh-primary);
}

/* ===== 404 PAGE ===== */
.sh-404 {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 16px;
}

.sh-404-card {
  width: min(680px, 100%);
  padding: 30px 24px;
  border: 1px solid var(--sh-border);
}

.sh-404-code {
  font-size: clamp(4rem, 15vw, 8rem);
  font-weight: 900;
  color: var(--sh-primary);
  line-height: 1;
  text-shadow: 0 0 40px hsla(var(--sh-primary-h), var(--sh-primary-s), var(--sh-primary-l), 0.3);
}

.sh-404-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 10px 0 8px;
}

.sh-404-text {
  color: var(--sh-fg-muted);
  margin: 0 auto 20px;
  max-width: 520px;
}

.sh-404-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ===== UTILITY ===== */
.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;
}

/* ============================================================
 * StreamHub Premium Player Styles
 * ============================================================ */
.sh-single-page {
    padding:15px;
    max-width: 1200px;
    margin: auto;
}

/* ---- Player wrap ---- */
.sh-player-wrap {
  background: var(--sh-bg-deep);
  border-radius: var(--sh-radius);
  overflow: hidden;
  margin-bottom: 8px;
}

.sh-player-title-bar {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background: rgba(0,0,0,0.4);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sh-fg);
  gap: 8px;
}

.sh-player-ep-label {
  background: var(--sh-primary);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 7px;
  margin-left: 6px;
}

.sh-player-container { width: 100%; }

.sh-player-ratio {
  position: relative;
  padding-top: 56.25%;
  background: #000;
}

.sh-player-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ---- Controls bar ---- */
.sh-player-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(0,0,0,0.35);
  flex-wrap: wrap;
}

.sh-server-select-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 6px 12px;
  flex: 1;
  min-width: 160px;
  position: relative;
}

.sh-server-icon { color: var(--sh-primary) !important; font-size: 16px; }

.sh-server-select {
  background: transparent;
  border: none;
  color: var(--sh-fg);
  font-size: 0.84rem;
  font-weight: 500;
  width: 100%;
  outline: none;
  cursor: pointer;
  appearance: none;
}

.sh-select-arrow { color: var(--sh-fg-muted); font-size: 11px; pointer-events: none; }

.sh-btn-control {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: var(--sh-fg);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.sh-btn-control:hover { background: rgba(255,255,255,0.12); }
.sh-btn-control .dashicons { font-size: 15px; width: 15px; height: 15px; line-height: 15px; }

.sh-trailer-btn { color: var(--sh-primary); border-color: rgba(230,168,23,0.3); }
.sh-watchlisted { color: var(--sh-primary) !important; }

/* ---- Episodes section ---- */
.sh-episodes-section {
  background: var(--sh-bg-alt);
  border-radius: var(--sh-radius);
  padding: 18px;
  margin-bottom: 8px;
}

.sh-episodes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.sh-episodes-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sh-fg);
}

.sh-season-selector-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sh-season-selector {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: var(--sh-fg);
  padding: 6px 12px;
  font-size: 0.82rem;
  cursor: pointer;
  outline: none;
}

.sh-season-panel { display: flex; flex-direction: column; gap: 8px; }

.sh-episode-card {
  display: flex;
  gap: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  align-items: flex-start;
}

.sh-episode-card:hover {
  border-color: var(--sh-primary);
  background: rgba(230,168,23,0.05);
}

.sh-ep-active {
  border-color: var(--sh-primary) !important;
  background: rgba(230,168,23,0.08) !important;
}

.sh-ep-thumb-wrap {
  position: relative;
  width: 120px;
  min-width: 120px;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0,0,0,0.4);
  flex-shrink: 0;
}

.sh-ep-thumb { width: 100%; height: 100%; object-fit: cover; }
.sh-ep-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.sh-ep-thumb-placeholder .dashicons { font-size: 24px; color: rgba(255,255,255,0.2); }

.sh-ep-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 0.2s;
}
.sh-episode-card:hover .sh-ep-play-icon,
.sh-ep-active .sh-ep-play-icon { opacity: 1; }
.sh-ep-play-icon .dashicons { font-size: 28px; color: #fff; }

.sh-ep-meta { flex: 1; min-width: 0; }

.sh-ep-num-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--sh-primary);
  background: rgba(230,168,23,0.12);
  border-radius: 4px;
  padding: 1px 6px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.sh-ep-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sh-fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sh-ep-time {
  font-size: 0.72rem;
  color: var(--sh-fg-muted);
  margin-top: 2px;
}

.sh-ep-overview {
  font-size: 0.75rem;
  color: var(--sh-fg-muted);
  margin-top: 3px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sh-ep-dl-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.sh-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 5px;
  color: var(--sh-fg-muted);
  font-size: 0.72rem;
  text-decoration: none;
  transition: color 0.2s;
}
.sh-dl-btn:hover { color: var(--sh-primary); border-color: var(--sh-primary); }
.sh-dl-btn .dashicons { font-size: 12px; width: 12px; height: 12px; line-height: 12px; }

/* ---- Downloads section ---- */
.sh-downloads-section {
  background: var(--sh-bg-alt);
  border-radius: var(--sh-radius);
  padding: 18px;
  margin-bottom: 8px;
}

.sh-downloads-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sh-fg-muted);
  margin-bottom: 12px;
}

.sh-downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.sh-dl-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  text-decoration: none;
  color: var(--sh-fg);
  transition: border-color 0.2s, background 0.2s;
}

.sh-dl-card:hover { border-color: var(--sh-primary); background: rgba(230,168,23,0.05); }

.sh-dl-card-icon {
  font-size: 20px;
  color: var(--sh-primary);
  width: 32px;
  height: 32px;
  background: rgba(230,168,23,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sh-dl-card > div { flex: 1; min-width: 0; }
.sh-dl-card strong { display: block; font-size: 0.84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-dl-card-sub { display: block; font-size: 0.72rem; color: var(--sh-fg-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-dl-ext-icon { color: var(--sh-fg-muted); font-size: 14px; }

/* ---- Media info section ---- */
.sh-media-info-section {
  background: var(--sh-bg-alt);
  border-radius: var(--sh-radius);
  margin-bottom: 8px;
  overflow: hidden;
}

.sh-media-info-hero {
  position: relative;
  min-height: 200px;
  background-size: cover;
  background-position: center;
  padding: 24px;
}

.sh-media-info-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26,29,46,0.5) 0%, rgba(26,29,46,0.92) 100%);
}

.sh-media-info-content { position: relative; z-index: 1; }

.sh-media-info-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.sh-media-info-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.sh-meta-year, .sh-meta-status {
  font-size: 0.82rem;
  color: var(--sh-fg-muted);
}

.sh-meta-rating {
  font-size: 0.82rem;
  color: #fdcb6e;
  font-weight: 700;
}

.sh-meta-type-badge {
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 5px;
  padding: 2px 8px;
  text-transform: uppercase;
}

.sh-media-info-excerpt {
  font-size: 0.9rem;
  color: var(--sh-fg);
  line-height: 1.6;
  margin-bottom: 12px;
  max-width: 640px;
}

.sh-media-genre-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.sh-genre-tag {
  background: rgba(255,255,255,0.08);
  color: var(--sh-fg-muted);
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 0.78rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.sh-genre-tag:hover { background: rgba(230,168,23,0.15); color: var(--sh-primary); }

/* Stats row */
.sh-stats-row {
  display: flex;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.sh-stat-pill {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 8px;
  border-right: 1px solid rgba(255,255,255,0.07);
  text-align: center;
}
.sh-stat-pill:last-child { border-right: none; }

.sh-stat-pill-icon { font-size: 1.2rem; margin-bottom: 4px; }
.sh-stat-pill-val { font-size: 1.1rem; font-weight: 700; color: #fff; line-height: 1; }
.sh-stat-pill-lbl { font-size: 0.68rem; color: var(--sh-fg-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 3px; }

/* Details grid */
.sh-details-grid {
  padding: 14px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sh-detail-row {
  display: flex;
  gap: 12px;
  font-size: 0.83rem;
  color: var(--sh-fg);
}

.sh-detail-label {
  color: var(--sh-fg-muted);
  min-width: 90px;
  flex-shrink: 0;
}

.sh-detail-row a { color: var(--sh-primary); text-decoration: none; }

/* ---- Cast section ---- */
.sh-cast-section {
  background: var(--sh-bg-alt);
  border-radius: var(--sh-radius);
  padding: 20px;
  margin-bottom: 8px;
}

.sh-cast-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sh-fg-muted);
  margin-bottom: 14px;
}
.sh-cast-list {
    display: flex;
    gap: 1rem 2.3rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}
.sh-cast-member {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sh-cast-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.sh-cast-info { display: flex; flex-direction: column; }
.sh-cast-name { font-size: 0.88rem; font-weight: 600; color: var(--sh-fg); }
.sh-cast-role { font-size: 0.76rem; color: var(--sh-fg-muted); }

/* ---- Backdrop gallery ---- */
.sh-backdrop-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.sh-backdrop-item {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--sh-border);
  background: rgba(0,0,0,0.35);
  padding: 0;
  cursor: pointer;
}

.sh-backdrop-item img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.sh-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(8,10,18,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.sh-image-lightbox[hidden] {
  display: none;
}

.sh-image-lightbox img {
  max-width: min(95vw, 1400px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 22px 70px rgba(0,0,0,0.6);
}

.sh-image-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

body.sh-lightbox-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .sh-ep-thumb-wrap { width: 80px; min-width: 80px; height: 54px; }
  .sh-media-info-title { font-size: 1.2rem; }
  .sh-player-controls { gap: 6px; }
  .sh-btn-control { padding: 6px 10px; font-size: 0.78rem; }
}

/* ===== HERO DOTS ===== */
.sh-hero-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 6px;
}

.sh-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  padding: 0;
}

.sh-hero-dot.active, .sh-hero-dot:hover {
  background: var(--sh-primary);
  transform: scale(1.3);
  box-shadow: 0 0 6px var(--sh-primary);
}

/* ===== HERO BUTTON MOBILE ===== */
@media (max-width: 480px) {
  .sh-hero-btn {
    padding: 8px 16px;
    font-size: 0.75rem;
    gap: 6px;
  }
  .sh-hero-title { font-size: clamp(1.1rem, 5vw, 1.6rem); }
  .sh-hero-content { bottom: 36px; }
}

/* ===== GENRE FILTER BAR ===== */
.sh-genre-filter-bar {
  background: linear-gradient(180deg, var(--sh-bg-deep) 0%, var(--sh-bg) 100%);
  border-bottom: 1px solid var(--sh-border);
  padding: 10px 0;
}

.sh-genre-filter-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.sh-genre-filter-scroll::-webkit-scrollbar { display: none; }

.sh-genre-chip {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sh-fg-muted);
  background: linear-gradient(145deg, var(--sh-bg-alt), var(--sh-bg));
  box-shadow: 3px 3px 8px var(--sh-shadow-dark), -2px -2px 6px var(--sh-shadow-light);
  transition: all 0.2s;
}

.sh-genre-chip:hover,
.sh-genre-chip.sh-genre-chip-active {
  color: var(--sh-bg);
  background: linear-gradient(135deg, var(--sh-primary), var(--sh-accent));
  box-shadow: 0 0 10px rgba(230,168,23,0.4);
}

/* ===== NAV MODERN NEON DOT STYLE ===== */
.sh-nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-left: 32px;
}

.sh-nav a {
  position: relative;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sh-fg-muted);
  transition: color 0.2s;
  border-radius: 6px;
}

.sh-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--sh-primary);
  box-shadow: 0 0 6px var(--sh-primary);
  border-radius: 2px;
  transition: width 0.25s;
}

.sh-nav a:hover::after, .sh-nav a.active::after {
  width: 70%;
}

.sh-nav a:hover, .sh-nav a.active {
  color: var(--sh-fg);
}

/* Neon dot indicator on active nav item */
.sh-nav a.active::before {
  content: '';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 5px;
  height: 5px;
  background: var(--sh-primary);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--sh-primary);
}

/* ===== SMALL BUTTON ===== */
.sh-btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: linear-gradient(145deg, var(--sh-bg-alt), var(--sh-bg));
  box-shadow: 4px 4px 10px var(--sh-shadow-dark), -3px -3px 8px var(--sh-shadow-light);
  border: none;
  border-radius: var(--sh-radius-sm);
  color: var(--sh-fg);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.sh-btn-sm:hover {
  color: var(--sh-primary);
  box-shadow: 0 0 8px rgba(230,168,23,0.2);
}
/*
.sh-widget {
    padding: 15px;
    position: sticky;
    top: 1px;
    z-index: 11;
}*/

/* ===== SELECT MINI (widget filters) ===== */
.sh-select-mini {
  background: var(--sh-bg-alt);
  border: 1px solid var(--sh-border);
  border-radius: var(--sh-radius-sm);
  color: var(--sh-fg);
  padding: 5px 10px;
  font-size: 0.78rem;
  cursor: pointer;
}

/* ===== WIDGET: POPULAR POSTS GRID ===== */
.sh-widget-popular-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.sh-widget-popular-item {
  position: relative;
  display: block;
  border-radius: var(--sh-radius-sm);
  overflow: hidden;
  aspect-ratio: 2/3;
}

.sh-widget-popular-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.sh-widget-popular-item:hover img { transform: scale(1.05); }

.sh-widget-popular-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 6px 5px;
  font-size: 0.65rem;
  font-weight: 600;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, transparent 100%);
  color: #fff;
  line-height: 1.3;
}

.sh-widget-rating {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0,0,0,0.7);
  color: #fdcb6e;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
}

/* ===== WIDGET: LATEST POSTS LIST ===== */
.sh-widget-latest-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sh-widget-latest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: var(--sh-radius-sm);
  background: rgba(255,255,255,0.03);
  transition: background 0.2s;
}

.sh-widget-latest-item:hover { background: rgba(255,255,255,0.07); }

.sh-widget-latest-thumb {
  width: 48px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.sh-widget-latest-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sh-fg);
  line-height: 1.3;
  margin-bottom: 2px;
}

.sh-widget-latest-sub {
  font-size: 0.7rem;
  color: var(--sh-fg-muted);
}

/* ===== WIDGET: GENRES LIST ===== */
.sh-widget-genres-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sh-widget-genre-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--sh-fg-muted);
  border-radius: var(--sh-radius-sm);
  transition: all 0.2s;
}

.sh-widget-genre-link:hover {
  color: var(--sh-primary);
  background: rgba(230,168,23,0.08);
  padding-left: 14px;
}

.sh-widget-genre-link i { color: var(--sh-primary); font-size: 0.6rem; }

.sh-widget-genre-count {
  margin-left: auto;
  background: rgba(255,255,255,0.07);
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 0.68rem;
  color: var(--sh-fg-muted);
}

/* ===== LABEL POSTS WIDGET FILTERS ===== */
.sh-label-posts-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.sh-label-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.sh-label-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.sh-label-widget-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sh-fg);
}

.sh-label-widget-header-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.sh-label-widget-count {
  min-width: 24px;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--sh-primary);
  background: rgba(230,168,23,0.12);
  border: 1px solid rgba(230,168,23,0.24);
  border-radius: 999px;
  padding: 2px 7px;
}

.sh-label-widget-show-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sh-fg-muted);
}

.sh-label-widget-show-more:hover {
  color: var(--sh-primary);
}

@media (max-width: 767px) {
  .sh-widget-popular-grid,
  .sh-label-posts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ===== RELATED POSTS ===== */
.sh-related-row {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--sh-border);
}

/* ===== HEADER ICON BUTTON ===== */
.sh-header-icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(232,232,236,0.7);
  transition: color 0.2s;
}

.sh-header-icon-btn:hover {
  color: var(--sh-primary);
}

@media (max-width: 767px) {
  .sh-header-icon-btn {
    width: 32px;
    height: 32px;
  }
}

/* ===== SEASON NAV BUTTONS (on single TV show page) ===== */
.sh-tv-seasons-nav {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0 8px;
  padding: 14px;
  border: 1px solid var(--sh-border);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
}

.sh-tv-seasons-nav-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sh-fg-muted);
  margin: 0;
}

.sh-tv-season-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: 0;
  width: 100%;
}

@media (max-width: 767px) {
  .sh-tv-seasons-nav {
    align-items: flex-start;
  }

  .sh-tv-season-btns {
    margin-left: 0;
    width: 100%;
  }
}

.sh-tv-season-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255,255,255,0.04);
  color: var(--sh-fg);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sh-tv-season-btn:hover {
  background: rgba(230,168,23,0.1);
  border-color: rgba(230,168,23,0.45);
  color: var(--sh-primary);
}

.sh-tv-info-panel {
  padding: 18px;
  margin-bottom: 16px;
  border: 1px solid var(--sh-border);
}

.sh-tv-info-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sh-tv-info-title {
  margin: 0;
  font-size: clamp(1.3rem, 3.2vw, 2rem);
  letter-spacing: 0.01em;
}

.sh-tv-info-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sh-tv-info-overview {
  margin: 10px 0 0;
  color: var(--sh-fg-muted);
  max-width: 900px;
}

.sh-tv-seasons-nav-static {
  margin-top: 14px;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* ===== TV SINGLE: STICKY EPISODES SIDEBAR ===== */
.sh-tv-single-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.sh-tv-single-main {
  min-width: 0;
}

.sh-tv-episodes-sidebar {
  padding: 14px;
}

.sh-tv-episodes-sidebar-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sh-fg-muted);
  margin: 0 0 10px;
}

.sh-tv-episodes-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sh-tv-season-accordion-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--sh-border);
  border-radius: 10px;
  overflow: hidden;
}

.sh-tv-season-accordion-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.sh-tv-season-accordion-summary::-webkit-details-marker {
  display: none;
}

.sh-tv-season-accordion-count {
  min-width: 28px;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--sh-primary);
  background: rgba(230,168,23,0.12);
  border: 1px solid rgba(230,168,23,0.24);
  border-radius: 999px;
  padding: 2px 8px;
}

.sh-tv-season-accordion-panel {
  padding: 0 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sh-tv-ep-jump {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  color: var(--sh-fg);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.sh-tv-ep-jump:hover,
.sh-tv-ep-jump-active {
  border-color: var(--sh-primary);
  background: rgba(230,168,23,0.08);
}

.sh-tv-ep-jump-badge {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--sh-primary);
  background: rgba(230,168,23,0.12);
  border-radius: 6px;
  padding: 3px 6px;
}

.sh-tv-ep-jump-title {
  font-size: 0.76rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sh-tv-season-accordion-empty {
  padding: 8px;
  font-size: 0.75rem;
  color: var(--sh-fg-muted);
}

@media (min-width: 1024px) {
  .sh-tv-single-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 16px;
    align-items: start;
  }

  .sh-tv-episodes-sidebar {
    position: sticky;
    top: 84px;
    max-height: calc(100vh - 96px);
    overflow: auto;
  }
}

/* ===== SEASON PAGE STYLES ===== */
.sh-season-page {
  padding-top: 16px;
  max-width: 1320px;
}

.sh-season-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--sh-fg-muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.sh-season-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sh-primary);
  font-weight: 600;
  transition: color 0.2s;
}
.sh-season-back-link:hover { color: var(--sh-accent); }

.sh-season-breadcrumb-sep { color: var(--sh-border); }
.sh-season-breadcrumb-current { font-weight: 600; color: var(--sh-fg); }

.sh-season-hero {
  position: relative;
  border-radius: var(--sh-radius);
  overflow: hidden;
  background: linear-gradient(120deg, #0f1628 0%, #1f2d52 60%, #18243f 100%);
  background-size: cover;
  background-position: center;
  min-height: 240px;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-end;
  border: 1px solid rgba(255,255,255,0.08);
}

.sh-season-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(9,13,24,0.96) 0%, rgba(9,13,24,0.52) 58%, rgba(9,13,24,0.2) 100%);
}

.sh-season-hero-content {
  position: relative;
  z-index: 1;
  padding: 20px 20px 24px;
  width: 100%;
}

.sh-season-show-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #9bb7ff;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  margin-bottom: 4px;
}

.sh-season-title {
  font-size: clamp(1.25rem, 4vw, 2.2rem);
  font-weight: 800;
  margin: 0 0 8px;
}

.sh-season-meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.sh-season-overview {
  font-size: 0.85rem;
  color: rgba(232,232,236,0.84);
  line-height: 1.5;
  max-width: 760px;
  margin: 0;
}

/* Episode grid on season page */
.sh-season-ep-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 8px;
}

.sh-season-ep-accordion {
  background: linear-gradient(160deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.015) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
}

.sh-season-ep-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  cursor: pointer;
  list-style: none;
}

.sh-season-ep-summary::-webkit-details-marker {
  display: none;
}

.sh-season-ep-body {
  padding: 0 12px 12px 142px;
}

.sh-season-ep-expand {
  margin-left: auto;
  color: var(--sh-fg-muted);
  transition: transform 0.2s ease;
}

.sh-season-ep-accordion[open] .sh-season-ep-expand {
  transform: rotate(180deg);
}

.sh-season-ep-accordion .sh-ep-overview {
  margin-top: 2px;
  color: rgba(232,232,236,0.78);
}

.sh-season-ep-accordion .sh-ep-dl-links {
  margin-top: 10px;
}

@media (max-width: 767px) {
  .sh-season-ep-body {
    padding: 0 10px 10px;
  }

  .sh-season-ep-summary {
    align-items: flex-start;
  }

  .sh-season-ep-summary .sh-ep-thumb-wrap {
    width: 96px;
    min-width: 96px;
    height: 58px;
  }
}

/* Season navigation within season page */
.sh-season-nav-section {
  margin: 24px 0 16px;
  padding-top: 20px;
  border-top: 1px solid var(--sh-border);
}

.sh-season-nav-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sh-fg-muted);
  margin: 0 0 12px;
}

.sh-season-nav-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sh-season-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: var(--sh-radius);
  font-size: 0.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(230,168,23,0.15), rgba(232,54,79,0.1));
  color: var(--sh-fg);
  border: 1px solid rgba(230,168,23,0.25);
  transition: all 0.25s;
}

.sh-season-nav-btn:hover,
.sh-season-nav-btn.sh-season-nav-active {
  background: linear-gradient(135deg, var(--sh-primary), var(--sh-accent));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(230,168,23,0.35);
}

/* Season download servers section */
.sh-season-dl-servers-section {
  margin: 16px 0;
  padding: 16px;
  background: var(--sh-bg-alt);
  border-radius: var(--sh-radius);
  border: 1px solid var(--sh-border);
}

.sh-dl-server-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--sh-card);
  border-radius: var(--sh-radius-sm);
  border: 1px solid var(--sh-border);
  cursor: pointer;
  transition: all 0.2s;
}
.sh-dl-server-btn:hover {
  border-color: var(--sh-primary);
  background: rgba(230,168,23,0.07);
}

/* Back section */
.sh-season-back-section {
  margin: 24px 0;
}

/* Outline button */
.sh-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--sh-radius);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--sh-border);
  color: var(--sh-fg-muted);
  background: transparent;
  transition: all 0.2s;
}
.sh-btn-outline:hover {
  border-color: var(--sh-primary);
  color: var(--sh-primary);
}

/* ===== GENRE CHIPS – button-like with flex center ===== */
.sh-genre-filter-scroll {
  justify-content: flex-start; /* keep scrollable on mobile */
}

@media (min-width: 900px) {
  .sh-genre-filter-scroll {
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

.sh-genre-chip {
  cursor: pointer;
}

/* ===== WIDGET POPULAR GRID – match content-grid sizing ===== */
@media (min-width: 768px) {
  .sh-widget-popular-grid,
  .sh-label-posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}


/* ===== META BADGE (used in season page meta) ===== */
.sh-meta-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255,255,255,0.1);
  color: var(--sh-fg-muted);
  border: 1px solid var(--sh-border);
}
.nav-links{display:flex;gap:12px;}
.nav-links a{border:1px solid #ccc; border-radius:11px;}.sh-single-page{margin:2rem auto;}
/* MENU FLEX LAYOUT */
.menu{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:12px;
  padding:0;
  margin:0;
  list-style:none;
}

/* MENU ITEMS FILL */
.menu li{
  flex:1 1 auto;
  min-width:120px;
  text-align:center;
}


.menu li a{
  display:block;
  padding:10px 14px;
  text-decoration:none;
  font-weight:600;
  color:#fff;
  border-radius:12px;
  position:relative;
  background:#0b0b0b;
  border:2px dotted #00f7ff;
  overflow:hidden;
  transition:.3s;
}

/* NEON GLOW */
.menu li a::before{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius:12px);;
  opacity:.5;
  filter:blur(6px);
  z-index:-1;
  animation:neonMove 3s linear infinite;
}

/* HOVER EFFECT */
.menu li a:hover{
  background:#111;
  border-color:#ff00c8;
  box-shadow:
    0 0 10px #00f7ff,
    0 0 20px #ff00c8;
  transform:translateY(-2px);
}

/* ANIMATION */
@keyframes neonMove{
  0%{background-position:0%}
  100%{background-position:200%}
}
.cat-item {
    display: inline-flex;
    align-items: center;}
.sh-footer li,nav li{list-style:none;}
footer .menu{display:flex;gap:10px;justify-content:center;}
form input{background:unset;border:1px solid #555;border-radius:4px;
  padding:5px;margin:7px auto; }
.wp-block-search__inside-wrapper{
  align-items: center;}

.wp-block-search__button {
    padding: 10px 15px;
    margin-left: 10px;
    word-break: normal;
}
.wp-block-group h2,.widget_block label{font-size:1.2rem;}

/*
 * Hide accidentally duplicated player and episodes sections on the season
 * page.  In rare cases some plugins or caching layers may cause the
 * player or episode list to be rendered multiple times.  These rules
 * ensure only the first instance of each wrapper is visible. The
 * sibling-combinator selector hides only subsequent .sh-player-wrap
 * and .sh-episodes-section elements beyond the first one.
 * This prevents confusing duplicates for visitors.
 */
.sh-season-page .sh-player-wrap ~ .sh-player-wrap,
.sh-season-page .sh-episodes-section ~ .sh-episodes-section {
    display: none;
}