/*
Theme Name: Custom Watch Stream Theme
Author: Custom Dev
Description: Exact oceanic teal-blue 6-column boxed card streaming WordPress theme matching reference UI.
Version: 5.0.0
Text Domain: custom-watch
*/

:root {
  --bg-main: #0d4661;
  --bg-header: #082e40;
  --bg-sidebar: #083145;
  --bg-card: #082d3f;
  --bg-card-hover: #0a384e;
  --accent-active: #1a83ab;
  --accent-pill: #208cb5;
  --text-white: #ffffff;
  --text-light: #d7eef8;
  --text-muted: #98c7dc;
  --border-card: #155875;
  --border-dark: #062230;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 13.5px;
  line-height: 1.4;
}

a {
  color: inherit;
  text-decoration: none;
  transition: 0.15s ease;
}

/* Header */
.site-header {
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--border-dark);
  height: 52px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #ffffff;
}

.logo-bars {
  display: inline-flex;
  gap: 2px;
  height: 18px;
  align-items: center;
}

.logo-bars span {
  width: 4.5px;
  height: 100%;
  border-radius: 1px;
}

.logo-bars span:nth-child(1) { background: #38bdf8; }
.logo-bars span:nth-child(2) { background: #facc15; }
.logo-bars span:nth-child(3) { background: #4ade80; }
.logo-bars span:nth-child(4) { background: #60a5fa; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-search-toggle {
  background: none;
  border: none;
  color: #cbe7f5;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
}

.header-search-toggle:hover {
  color: #ffffff;
}

.header-nav a {
  color: #e2f2fa;
  font-size: 13.5px;
  font-weight: 500;
}

.header-nav a:hover {
  color: #67e8f9;
}

.header-nav a.nav-home-btn {
  background-color: #090d11;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 3px;
  font-weight: 600;
}

.header-nav a.nav-home-btn:hover {
  background-color: var(--accent-active);
}

/* Search Bar Dropdown */
.header-search-bar {
  display: none;
  background: #062331;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border-dark);
}

.header-search-bar.active {
  display: block;
}

.header-search-bar form {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
}

.header-search-bar input {
  flex: 1;
  background: #0b394f;
  border: 1px solid var(--border-card);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 3px;
  outline: none;
}

.header-search-bar button {
  background: var(--accent-active);
  border: none;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 600;
}

/* Main Layout Wrapper */
.site-wrapper {
  display: flex;
  min-height: calc(100vh - 52px);
}

/* Left Sidebar */
.left-sidebar {
  width: 215px;
  flex-shrink: 0;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-dark);
}

.sidebar-menu {
  list-style: none;
}

.sidebar-menu li a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: #e0f2fe;
  border-bottom: 1px solid #062535;
}

.sidebar-menu li a:hover {
  background-color: #0d4560;
  color: #ffffff;
}

.sidebar-menu li a.active {
  background-color: var(--accent-active);
  color: #ffffff;
  font-weight: 600;
}

.sidebar-heading {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  padding: 14px 16px 10px;
  background-color: #072a3b;
  border-bottom: 1px solid #062535;
}

/* Main Content Area */
.main-content {
  flex: 1;
  padding: 12px 14px 28px;
  min-width: 0;
  background-color: var(--bg-main);
}

.archive-header {
  margin-bottom: 12px;
  padding: 8px 12px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 3px;
}

.archive-header h1 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

/* 6-Column Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

@media (max-width: 1440px) {
  .video-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1024px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .site-wrapper { flex-direction: column; }
  .left-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-dark);
    padding: 8px;
  }
  .sidebar-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .sidebar-menu li a {
    padding: 6px 10px;
    background: #0b3c54;
    border-radius: 3px;
    border-bottom: none;
  }
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* Single Unified Boxed Video Card */
.video-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.video-card:hover {
  background-color: var(--bg-card-hover);
  border-color: #2788b0;
}

.video-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: #051e2b;
  overflow: hidden;
  display: block;
}

.video-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.video-card:hover .video-thumb-wrap img {
  transform: scale(1.03);
}

.thumb-watermark {
  position: absolute;
  top: 5px;
  left: 6px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  letter-spacing: 0.3px;
}

.video-card-body {
  padding: 8px 8px 9px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.video-title {
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 32px;
}

.video-card:hover .video-title {
  color: #7dd3fc;
}

.video-meta-row {
  margin-top: 8px;
  padding: 0;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.meta-stat {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.meta-duration {
  background-color: var(--accent-pill);
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 10.5px;
}

/* Single Location Bottom Pagination */
.bottom-pagination {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--border-card);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.bottom-pagination .page-numbers {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: #e0f2fe;
  padding: 6px 12px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
}

.bottom-pagination .page-numbers:hover,
.bottom-pagination .page-numbers.current {
  background: var(--accent-active);
  border-color: var(--accent-active);
  color: #ffffff;
}

/* Single Watch Page */
.watch-container {
  max-width: 1200px;
}

.player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  border: 1px solid var(--border-card);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}

.player-wrapper iframe,
.player-wrapper video {
  width: 100%;
  height: 100%;
  border: 0;
}

.watch-info-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 14px 16px;
  border-radius: 3px;
}

.watch-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.watch-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--text-muted);
  padding-bottom: 10px;
  border-bottom: 1px solid #114760;
}

.watch-content {
  margin-top: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #114760;
  font-size: 14px;
  line-height: 1.65;
  color: #e2f2fa;
}

.watch-content p {
  margin-bottom: 10px;
}

.watch-content p:last-child {
  margin-bottom: 0;
}

.watch-content a {
  color: #38bdf8;
  text-decoration: underline;
}

.watch-content iframe,
.watch-content video,
.watch-content img {
  max-width: 100%;
  height: auto;
  border-radius: 3px;
  margin: 8px 0;
}

.watch-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.watch-tags a {
  background: #0c3d54;
  border: 1px solid var(--border-card);
  color: #bae6fd;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 12px;
}

.watch-tags a:hover {
  background: var(--accent-active);
  color: #ffffff;
}

.related-heading {
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 10px;
  color: #ffffff;
}
