/*
Theme Name: Urban Byte Streaming
Theme URI: https://example.com/
Author: WEG Media Group
Author URI: https://example.com/
Description: A Netflix-style WordPress video streaming theme powered by YouTube embeds.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: urban-byte-streaming
License: GNU General Public License v2 or later
*/

:root {
  --ubn-bg: #080808;
  --ubn-surface: #151515;
  --ubn-text: #ffffff;
  --ubn-muted: #b8b8b8;
  --ubn-accent: #e50914;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ubn-bg);
  color: var(--ubn-text);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
button, input { font: inherit; }
button { cursor: pointer; }

.ubn-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 4vw;
  background: linear-gradient(to bottom, rgba(0,0,0,.96), rgba(0,0,0,.35), transparent);
  transition: background .25s ease, box-shadow .25s ease;
}
.ubn-header.is-scrolled {
  background: rgba(8,8,8,.97);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.ubn-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  white-space: nowrap;
}
.ubn-brand-mark {
  color: var(--ubn-accent);
  font-weight: 900;
  font-size: 1.7rem;
  letter-spacing: -2px;
}
.ubn-brand-name {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 1.3px;
}
.ubn-nav { flex: 1; }
.ubn-nav ul {
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ubn-nav a {
  color: #e6e6e6;
  text-decoration: none;
  font-size: .87rem;
}
.ubn-nav a:hover { color: #fff; }

.ubn-search-toggle,
.ubn-profile {
  border: 0;
  color: #fff;
}
.ubn-search-toggle {
  background: transparent;
  font-size: 1.55rem;
}
.ubn-profile {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: linear-gradient(135deg,#6c2cff,#1677ff);
  font-size: .72rem;
  font-weight: 800;
}
.ubn-header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.ubn-search-panel {
  position: absolute;
  top: 62px;
  right: 4vw;
  width: min(420px, 88vw);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: .2s ease;
}
.ubn-search-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.ubn-search-panel input {
  width: 100%;
  padding: 14px 16px;
  color: #fff;
  background: rgba(0,0,0,.94);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 4px;
}

.ubn-hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  padding: 118px 5vw 120px;
  background-position: center;
  background-size: cover;
}
.ubn-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.96) 0%, rgba(0,0,0,.67) 42%, rgba(0,0,0,.08) 74%),
    linear-gradient(to top, var(--ubn-bg) 0%, transparent 30%);
}
.ubn-hero-content {
  position: relative;
  z-index: 2;
  width: min(690px, 92%);
}
.ubn-eyebrow {
  color: var(--ubn-accent);
  font-weight: 900;
  letter-spacing: 4px;
  margin-bottom: 12px;
}
.ubn-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.7rem, 6.5vw, 6rem);
  line-height: .98;
  letter-spacing: -3px;
}
.ubn-hero p {
  max-width: 610px;
  color: #f0f0f0;
  font-size: clamp(1rem, 1.5vw, 1.23rem);
  line-height: 1.65;
  text-shadow: 0 2px 10px rgba(0,0,0,.8);
}
.ubn-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 22px 0;
  color: #ddd;
  font-size: .88rem;
}
.ubn-rating {
  border: 1px solid rgba(255,255,255,.6);
  padding: 4px 8px;
}
.ubn-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.ubn-btn {
  border: 0;
  border-radius: 5px;
  padding: 14px 27px;
  font-weight: 800;
}
.ubn-btn-primary { background: #fff; color: #111; }
.ubn-btn-secondary { background: rgba(109,109,110,.75); color: #fff; }

.ubn-content {
  position: relative;
  z-index: 10;
  margin-top: -90px;
  padding-bottom: 80px;
}
.ubn-row { margin-bottom: 42px; }
.ubn-row-title {
  margin: 0 4vw 16px;
  font-size: clamp(1.15rem, 2vw, 1.65rem);
}
.ubn-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 22vw);
  gap: 10px;
  overflow-x: auto;
  padding: 16px 4vw 28px;
  scrollbar-width: none;
}
.ubn-track::-webkit-scrollbar { display: none; }
.ubn-card {
  border-radius: 6px;
  overflow: hidden;
  background: var(--ubn-surface);
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
  transition: transform .28s ease, box-shadow .28s ease;
}
.ubn-card:hover {
  transform: scale(1.065);
  z-index: 5;
  box-shadow: 0 18px 44px rgba(0,0,0,.65);
}
.ubn-thumb-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: #222;
}
.ubn-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ubn-thumb-overlay {
  position: absolute;
  inset: auto 0 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,.86), transparent);
}
.ubn-play-chip {
  position: absolute;
  left: 14px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(0,0,0,.56);
  color: #fff;
}
.ubn-card-copy { padding: 14px 15px 17px; }
.ubn-card-copy h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.ubn-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #9ee493;
  font-size: .72rem;
  font-weight: 700;
}
.ubn-card-copy p {
  color: var(--ubn-muted);
  font-size: .79rem;
  line-height: 1.45;
}

.ubn-empty {
  padding: 150px 5vw;
  text-align: center;
}
.ubn-footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 50px 5vw 70px;
  border-top: 1px solid rgba(255,255,255,.1);
  color: #a3a3a3;
}
.ubn-footer strong { color: #fff; }

.ubn-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.ubn-modal.is-open { display: flex; }
.ubn-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(8px);
}
.ubn-modal-dialog {
  position: relative;
  width: min(1050px, 96vw);
  max-height: 92vh;
  overflow: auto;
  border-radius: 9px;
  background: #181818;
  box-shadow: 0 30px 100px rgba(0,0,0,.8);
}
.ubn-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0,0,0,.75);
  font-size: 1.8rem;
}
.ubn-video-frame {
  aspect-ratio: 16/9;
  background: #000;
}
.ubn-video-frame iframe { width: 100%; height: 100%; border: 0; }
.ubn-modal-copy { padding: 24px 28px 34px; }
.ubn-modal-copy p { color: #c9c9c9; line-height: 1.7; }

@media (max-width: 900px) {
  .ubn-nav { display: none; }
  .ubn-brand-name { display: none; }
  .ubn-header { justify-content: space-between; }
  .ubn-hero {
    min-height: 74vh;
    align-items: flex-end;
    padding-bottom: 130px;
  }
  .ubn-track { grid-auto-columns: minmax(230px,58vw); }
  .ubn-footer { flex-direction: column; }
}
@media (max-width: 560px) {
  .ubn-hero {
    min-height: 680px;
    padding-left: 6vw;
    padding-right: 6vw;
  }
  .ubn-hero h1 { font-size: 3rem; letter-spacing: -1.5px; }
  .ubn-track {
    grid-auto-columns: 76vw;
    padding-left: 6vw;
    padding-right: 6vw;
  }
  .ubn-row-title { margin-left: 6vw; }
  .ubn-content { margin-top: -65px; }
  .ubn-btn { flex: 1; min-width: 130px; }
}
