/* Watch Section Styles — worldstelescope.com */

/* Category Grid */
.watch-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 48px 0;
}

.watch-category-tile {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: block;
  aspect-ratio: 16/10;
  border: 1px solid rgba(201,168,76,0.2);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.watch-category-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(201,168,76,0.2);
}

.watch-category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 !important;
  transition: transform 0.5s ease !important;
}

.watch-category-tile:hover img {
  transform: scale(1.08) !important;
}

.watch-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.3) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 18px;
}

.watch-tile-icon {
  width: 42px;
  height: 42px;
  background: rgba(201,168,76,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.watch-category-tile:hover .watch-tile-icon {
  transform: scale(1.15);
  background: #c9a84c;
}

.watch-tile-icon svg {
  width: 18px;
  height: 18px;
  fill: #0a0a0a;
  margin-left: 3px;
}

.watch-tile-label {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.watch-tile-count {
  font-family: 'Urbanist', sans-serif;
  font-size: 0.78rem;
  color: rgba(201,168,76,0.85);
  margin-top: 4px;
  letter-spacing: 0.04em;
}

/* Featured + Sidebar Layout */
.watch-featured-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  margin: 48px 0;
  align-items: start;
}

.watch-featured-player {
  position: relative;
  background: #0d0d0d;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(201,168,76,0.2);
}

.watch-featured-player .video-embed {
  position: relative;
  padding-top: 56.25%;
}

.watch-featured-player .video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
  border-radius: 0;
}

.watch-featured-meta {
  padding: 22px 24px;
}

.watch-featured-meta h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 10px;
}

.watch-featured-meta p {
  font-family: 'Urbanist', sans-serif;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  margin-bottom: 16px;
}

.watch-featured-badge {
  display: inline-block;
  background: linear-gradient(135deg, #c9a84c, #f0d080);
  color: #0a0a0a;
  font-family: 'Urbanist', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  display: block;
  width: fit-content;
}

/* Trending Sidebar */
.watch-sidebar {
  background: #111111;
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 16px;
  overflow: hidden;
}

.watch-sidebar-header {
  background: linear-gradient(135deg, #c9a84c, #b8960f);
  padding: 14px 20px;
}

.watch-sidebar-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: #0a0a0a;
  margin: 0;
}

.watch-sidebar-list {
  padding: 8px 0;
}

.watch-sidebar-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
  transition: background 0.2s ease;
}

.watch-sidebar-item:last-child {
  border-bottom: none;
}

.watch-sidebar-item:hover {
  background: rgba(201,168,76,0.08);
}

.watch-sidebar-thumb {
  width: 76px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px !important;
  flex-shrink: 0;
  transition: none !important;
}

.watch-sidebar-thumb:hover {
  transform: none !important;
}

.watch-sidebar-info {
  flex: 1;
}

.watch-sidebar-info h4 {
  font-family: 'Playfair Display', serif;
  font-size: 0.88rem;
  color: #ffffff;
  margin-bottom: 4px;
  line-height: 1.4;
}

.watch-sidebar-info span {
  font-family: 'Urbanist', sans-serif;
  font-size: 0.75rem;
  color: #c9a84c;
}

/* Video Card Grid (category pages) */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin: 48px 0;
}

.video-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 18px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(201,168,76,0.15);
  border-color: rgba(201,168,76,0.4);
}

.video-card-thumb {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.video-card-thumb img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 0 !important;
  display: block;
  transition: transform 0.45s ease !important;
}

.video-card:hover .video-card-thumb img {
  transform: scale(1.06) !important;
}

.video-card-thumb .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  background: rgba(201,168,76,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.video-card-thumb:hover .play-btn {
  opacity: 1;
}

.play-btn svg {
  width: 20px;
  height: 20px;
  fill: #0a0a0a;
  margin-left: 4px;
}

.video-embed-container {
  position: relative;
  padding-top: 56.25%;
  display: none;
}

.video-embed-container.active {
  display: block;
}

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

.video-card-body {
  padding: 20px 22px 22px;
}

.video-card-label {
  font-family: 'Urbanist', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 8px;
  display: block;
}

.video-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.4;
}

.video-card-desc {
  font-family: 'Urbanist', sans-serif;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin-bottom: 16px;
}

.video-card-affiliate {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.affiliate-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.3);
  color: #c9a84c;
  font-family: 'Urbanist', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.affiliate-link:hover {
  background: #c9a84c;
  color: #0a0a0a;
}

/* Social Share */
.social-share {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.share-label {
  font-family: 'Urbanist', sans-serif;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  margin-right: 2px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  font-family: 'Urbanist', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.share-btn:hover { opacity: 0.85; }

.share-fb { background: #1877F2; color: #fff; }
.share-tw { background: #1DA1F2; color: #fff; }
.share-pin { background: #E60023; color: #fff; }

/* Watch Hero Specific */
.watch-hero-subtitle {
  font-family: 'Urbanist', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 14px;
  display: block;
}

/* Responsive */
@media (max-width: 1100px) {
  .watch-category-grid { grid-template-columns: repeat(3, 1fr); }
  .watch-featured-layout { grid-template-columns: 1fr; }
  .watch-sidebar { max-width: 100%; }
}

@media (max-width: 768px) {
  .watch-category-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .video-grid { grid-template-columns: 1fr; }
  .watch-featured-layout { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .watch-category-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .watch-tile-label { font-size: 0.9rem; }
}
