/*
Theme Name: Player Theme
Theme URI: https://zrena.online/
Author: Saif Ullah
Description: High Performance Mobile Video Player Theme for WordPress.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: player-theme
*/

:root {
  --primary-red: #e50914;
  --accent-green: #00ff66;
  --phone-border: #181c2e;
  --glass-bg: rgba(18, 18, 22, 0.9);
  --glass-border: rgba(255, 255, 255, 0.14);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #000000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#wpadminbar {
  display: none !important;
}

html {
  margin-top: 0 !important;
}

.phone-viewport-container {
  position: relative;
  width: 94%;
  max-width: 410px;
  height: 90vh;
  max-height: 850px;
  min-height: 580px;
  background: #000000;
  border: 7px solid var(--phone-border);
  border-radius: 36px;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.95), 0 0 0 2px rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  margin: auto;
}

.player-backdrop-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: blur(10px) brightness(0.65);
  transform: scale(1.1);
  z-index: 1;
  user-select: none;
  pointer-events: none;
}

.player-vignette-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.7) 100%), linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.8) 100%);
  z-index: 2;
  pointer-events: none;
}

.top-header-pill-bar {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 18px 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.live-badge-pill {
  background: var(--primary-red);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 9px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(229, 9, 20, 0.5);
}

.live-indicator-dot {
  width: 7px;
  height: 7px;
  background-color: #ffffff;
  border-radius: 50%;
  animation: dotPulseEffect 1.2s infinite ease-in-out;
}

@keyframes dotPulseEffect {
  0%, 100% {
    transform: scale(0.85);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.35);
    opacity: 1;
  }
}

.quality-badge-pill {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(0, 255, 102, 0.3);
  color: var(--accent-green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 4px 8px;
  border-radius: 4px;
}

@keyframes playButtonFlashPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.75), 0 0 30px rgba(255, 255, 255, 0.4);
    filter: brightness(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 0 0 20px rgba(255, 255, 255, 0), 0 0 50px rgba(229, 9, 20, 0.9);
    filter: brightness(1.2);
  }
}

.flashing-center-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none !important;
  animation: playButtonFlashPulse 1.35s infinite cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  border: none;
  z-index: 10;
}

.play-white-disc {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.play-white-disc svg {
  width: 32px;
  height: 32px;
  fill: #000000;
  margin-left: 4px;
}

.bottom-floating-control-card {
  position: relative;
  z-index: 10;
  width: calc(100% - 28px);
  margin-bottom: 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timeline-track-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  position: relative;
}

.timeline-fill-bar {
  width: 22%;
  height: 100%;
  background: var(--primary-red);
  border-radius: 2px;
  position: relative;
}

.timeline-scrubber-dot {
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 11px;
  height: 11px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.control-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.info-text-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}

.video-title-heading {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-duration-views {
  font-size: 0.75rem;
  font-weight: 500;
  color: #9499ad;
}

@keyframes watchButtonPulseEffect {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 16px rgba(229, 9, 20, 0.6);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 6px 26px rgba(229, 9, 20, 0.95);
    filter: brightness(1.2);
  }
}

.watch-full-action-btn {
  background: linear-gradient(135deg, #ff1a4b 0%, #e50914 100%);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.6);
  animation: watchButtonPulseEffect 1.5s infinite ease-in-out;
}

.watch-full-action-btn:hover {
  filter: brightness(1.15);
}

@media(max-width: 480px) {
  .phone-viewport-container {
    width: 92%;
    height: 92vh;
    border-radius: 32px;
    border-width: 6px;
  }
}
