:root {
  --brand-color: #f55c01;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #000;
  font-family: "Montserrat", sans-serif;
  cursor: none;
}

.player-header {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 10000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.header-logo img {
  height: 35px;
  max-width: 150px;
  object-fit: contain;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-time {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  font-family: "Montserrat", sans-serif;
}

.fullscreen-icon {
  cursor: pointer;
  background: transparent;
  padding: 5px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullscreen-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.player-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: block !important;
}

.creative {
  position: absolute;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-position: center;
}
.creative.active {
  display: flex;
}

.creative video,
.creative img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

#yt-player-container,
#yt-player-container iframe {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 100% !important;
  height: 100% !important;
  transform: translate(-50%, -50%) !important;
  object-fit: cover !important;
}

.creative .qr-code-img {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  min-width: auto !important;
  min-height: auto !important;
  transform: none !important;
  object-fit: contain !important;
  width: 150px !important;
  height: 150px !important;
  margin-right: 16px;
}

@media (max-width: 768px) {
  .header-time {
    font-size: 1.2rem;
  }
  
  .header-logo img {
    height: 28px;
  }
  
  .player-header {
    height: 50px;
    padding: 0 16px;
  }
  
  #player-stage {
    top: 50px;
    height: calc(100vh - 50px);
  }
  
  body.orientation-portrait #player-stage {
    height: calc(100vw - 50px);
    top: 50px;
  }
}

@media (max-width: 1280px) {
  .news-overlay h1,
  .text-overlay h1 {
    font-size: 3.2rem;
  }
  .news-overlay p,
  .text-overlay p {
    font-size: 1.7rem;
  }
}
@media (max-width: 768px) {
  .news-overlay h1,
  .text-overlay h1 {
    font-size: 2.5rem;
  }
  .news-overlay p,
  .text-overlay p {
    font-size: 1.5rem;
  }
}

.pin-container {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #000;
  color: #fff;
  text-align: center;
  font-family: "Montserrat", sans-serif;
}
.pin-container h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.pin-container p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}
.pin-display {
  font-size: 3rem;
  font-weight: bold;
  background: #fff;
  color: #000;
  padding: 1rem 2rem;
  border-radius: 10px;
  display: inline-block;
}

#news-container {
  position: absolute;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
}

.news-fullscreen {
  position: absolute;
  inset: 0;
  background: #000;
  overflow: hidden;
}

.news-fullscreen .news-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(18px) brightness(0.6);
  transform: scale(1.1);
}

.news-fullscreen .news-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.news-fullscreen .news-content {
  position: absolute;
  left: clamp(16px, 4vw, 80px);
  right: clamp(16px, 4vw, 80px);
  bottom: clamp(80px, 10vh, 140px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 2;
  color: #fff;
}

.news-fullscreen .news-source {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1rem, 1.4vw, 1.4rem);
  font-weight: 500;
  opacity: 0.85;
}

.news-fullscreen .news-source img {
  width: clamp(28px, 3vw, 42px);
  height: clamp(28px, 3vw, 42px);
  object-fit: contain;
}

.news-fullscreen .news-title {
  font-size: clamp(1.8rem, 3.2vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  max-width: 100%;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.9);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
