:root { --primary-color: #ff0000; --secondary-color: #333; --text-color: #fff; --background-color: #000; --modal-bg-color: rgba(0, 0, 0, 0.9); }
.video-container { contain: layout style; }
img { content-visibility: auto; contain: layout style paint; }
.control-buttons-container { position: fixed; right: 0px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 15px; z-index: 100; }
.episode-list-btn { width: 40px; height: 40px; background-color: rgba(0, 0, 0, 0.6); border: 2px solid rgba(255, 255, 255, 0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.3s; color: rgb(255, 255, 255); }
.episode-list-btn:hover { background-color: rgba(0, 0, 0, 0.8); border-color: rgba(255, 255, 255, 0.5); transform: scale(1.1); }
.episode-list-btn.clicked { animation: 0.3s ease-out 0s 1 normal none running pulse; }
@keyframes pulse { 
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
@media (max-width: 768px) {
  .control-buttons-container { right: 15px; }
  .episode-list-btn { width: 35px; height: 35px; }
  .plyr__volume input[type="range"] { display: none !important; }
}
@supports (-webkit-touch-callout: none) {
  html, body { padding: 0px !important; margin: 0px !important; width: 100% !important; height: 100% !important; position: fixed !important; overflow: hidden !important; inset: 0px !important; }
}
.video-container { position: fixed; width: 100vw; height: 100svh; background-color: var(--background-color); overflow: hidden; display: flex; align-items: center; justify-content: center; margin: 0px; padding: 0px; inset: 0px; }
@supports (-webkit-touch-callout: none) {
  .video-container { width: 100% !important; height: 100% !important; position: absolute !important; margin: 0px !important; padding: 0px !important; inset: 0px !important; }
}
.video-js { object-fit: contain; background-color: transparent; margin: 0px; padding: 0px; position: absolute; inset: 0px; width: 100% !important; height: 100% !important; }
@supports (-webkit-touch-callout: none) {
  .plyr video { width: 100% !important; height: 100% !important; object-fit: contain !important; margin: 0px !important; padding: 0px !important; inset: 0px !important; transform: translate3d(0px, 0px, 0px) !important; backface-visibility: hidden !important; }
  video { width: 100% !important; height: 100% !important; object-fit: contain !important; margin: 0px !important; padding: 0px !important; inset: 0px !important; }
}
.plyr__controls { padding: 15px !important; }
.plyr__control--pressed { background-color: var(--primary-color) !important; }
.plyr__control:hover { background-color: var(--primary-color) !important; }
.plyr--full-ui input[type="range"] { color: var(--primary-color) !important; }
.plyr__control.disabled { pointer-events: none; opacity: 0.5; }
#episodeModal { position: fixed; top: 0px; left: 0px; width: 100%; height: 100%; background-color: var(--modal-bg-color); z-index: 2000; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: 0.3s; overflow: hidden; }
#episodeModal.active { opacity: 1; visibility: visible; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.modal-title-group { display: flex; flex-direction: column; gap: 2px; min-width: 0px; margin-right: 12px; }
.modal-eyebrow { color: rgba(255, 255, 255, 0.5); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.modal-title { color: var(--text-color); font-size: 1.15rem; font-weight: bold; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.close-modal { background: none; border-width: medium; border-style: none; border-color: currentcolor; border-image: none; color: var(--text-color); font-size: 1.5rem; cursor: pointer; flex-shrink: 0; }
.modal-body { flex: 1 1 0%; overflow-y: auto; padding: 10px; }
#episodeList { padding: 10px; }
.range-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.range-tabs::-webkit-scrollbar { display: none; }
.range-tab { flex-shrink: 0; background: transparent; border: 1px solid rgb(58, 58, 74); color: rgb(204, 204, 204); padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; cursor: pointer; transition: 0.2s; white-space: nowrap; }
.range-tab:hover { border-color: var(--primary-color); color: rgb(255, 255, 255); }
.range-tab.active { background: var(--primary-color); border-color: var(--primary-color); color: rgb(255, 255, 255); }
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; }
.ep-tile { aspect-ratio: 1 / 1; background: rgb(42, 42, 58); border: 1px solid rgb(58, 58, 74); border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; color: rgb(204, 204, 204); position: relative; font-size: 18px; font-weight: 700; user-select: none; }
.ep-tile:hover { background: rgb(58, 58, 74); border-color: var(--primary-color); color: rgb(255, 255, 255); }
.ep-tile.active { background: var(--primary-color); border-color: var(--primary-color); color: rgb(255, 255, 255); box-shadow: rgba(255, 0, 0, 0.3) 0px 0px 0px 2px; }
.ep-tile .live-dot { position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; background: rgb(255, 255, 255); border-radius: 50%; box-shadow: rgba(255, 255, 255, 0.7) 0px 0px 6px; animation: 1.5s ease 0s infinite normal none running liveDot; }
@keyframes liveDot { 
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}
#episodeInfo { font-size: 14px; font-weight: 600; background-color: rgb(239, 68, 68); color: white; padding: 6px 10px; border-radius: 9999px; box-shadow: rgba(0, 0, 0, 0.25) 0px 2px 4px; backdrop-filter: blur(4px); transition: 0.3s; z-index: 1500; position: fixed; top: 20px; right: 20px; }
#loadingMessage { position: fixed; top: 0px; left: 0px; width: 100%; height: 100%; background-color: var(--background-color); display: flex; justify-content: center; align-items: center; z-index: 2000; color: var(--text-color); font-size: 1.2rem; }
.loading-spinner { width: 50px; height: 50px; border-width: 5px; border-style: solid; border-right-color: rgba(255, 255, 255, 0.3); border-bottom-color: rgba(255, 255, 255, 0.3); border-left-color: rgba(255, 255, 255, 0.3); border-image: none; border-radius: 50%; border-top-color: var(--primary-color); animation: 1s ease-in-out 0s infinite normal none running spin; margin-right: 15px; }
@keyframes spin { 
  100% { transform: rotate(360deg); }
}
.end-of-series-message { position: absolute; inset: 0px; z-index: 10; display: flex; align-items: center; justify-content: center; padding: 16px; animation: 0.3s ease-out 0s 1 normal none running eos-fade; }
.eos-backdrop { position: absolute; inset: 0px; background: radial-gradient(at 30% 20%, rgba(239, 68, 68, 0.18), transparent 55%), radial-gradient(at 70% 80%, rgba(255, 64, 129, 0.18), transparent 55%), rgba(15, 10, 25, 0.88); backdrop-filter: blur(8px); }
.eos-card { position: relative; z-index: 1; max-width: 440px; width: 100%; padding: 36px 28px 32px; text-align: center; background: linear-gradient(160deg, rgba(38, 28, 58, 0.95), rgba(20, 14, 32, 0.95)); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 20px; box-shadow: rgba(0, 0, 0, 0.55) 0px 24px 60px, rgba(239, 68, 68, 0.08) 0px 0px 0px 1px, rgba(255, 255, 255, 0.05) 0px 1px 0px inset; color: rgb(243, 234, 245); animation: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0s 1 normal none running eos-pop; }
.eos-badge { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin: 0px auto 18px; border-radius: 50%; background: linear-gradient(135deg, rgb(239, 68, 68), rgb(255, 64, 129)); color: rgb(255, 255, 255); box-shadow: rgba(239, 68, 68, 0.45) 0px 10px 30px, rgba(239, 68, 68, 0.12) 0px 0px 0px 6px; animation: 2.4s ease-in-out 0s infinite normal none running eos-glow; }
.eos-title { font-size: 1.6rem; font-weight: 700; margin: 0px 0px 8px; background: linear-gradient(135deg, rgb(255, 255, 255), rgb(255, 214, 226)) text; -webkit-text-fill-color: transparent; letter-spacing: 0.5px; }
.eos-subtitle { font-size: 0.95rem; line-height: 1.55; color: rgb(181, 167, 194); margin: 0px 0px 24px; }
.eos-actions { display: flex; flex-direction: column; gap: 10px; }
.eos-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; font-size: 0.95rem; font-weight: 600; border-radius: 12px; cursor: pointer; text-decoration: none; border: 1px solid transparent; transition: transform 0.18s, box-shadow 0.18s, background 0.18s; font-family: inherit; }
.eos-btn-primary { background: linear-gradient(135deg, rgb(239, 68, 68), rgb(255, 64, 129)); color: rgb(255, 255, 255); box-shadow: rgba(239, 68, 68, 0.35) 0px 8px 22px; }
.eos-btn-primary:hover { transform: translateY(-2px); box-shadow: rgba(239, 68, 68, 0.5) 0px 12px 28px; }
.eos-btn-ghost { background: rgba(255, 255, 255, 0.04); color: rgb(243, 234, 245); border-color: rgba(255, 255, 255, 0.1); }
.eos-btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); transform: translateY(-1px); }
@keyframes eos-fade { 
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes eos-pop { 
  0% { transform: translateY(12px) scale(0.96); opacity: 0; }
  100% { transform: translateY(0px) scale(1); opacity: 1; }
}
@keyframes eos-glow { 
  0%, 100% { box-shadow: rgba(239, 68, 68, 0.45) 0px 10px 30px, rgba(239, 68, 68, 0.12) 0px 0px 0px 6px; }
  50% { box-shadow: rgba(239, 68, 68, 0.6) 0px 14px 36px, rgba(239, 68, 68, 0.18) 0px 0px 0px 10px; }
}
@media (max-width: 480px) {
  .eos-card { padding: 28px 20px 24px; border-radius: 16px; }
  .eos-title { font-size: 1.35rem; }
  .eos-subtitle { font-size: 0.88rem; }
  .eos-badge { width: 60px; height: 60px; margin-bottom: 14px; }
}
@supports (-webkit-touch-callout: none) {
  .video-container { height: 100%; width: 100%; margin: 0px; padding: 0px; inset: 0px; position: absolute; }
  .plyr video { width: 100% !important; height: 100% !important; object-fit: contain !important; position: absolute !important; inset: 0px !important; transform: translate3d(0px, 0px, 0px) !important; backface-visibility: hidden !important; }
  .plyr--video { width: 100% !important; height: 100% !important; position: absolute !important; inset: 0px !important; transform: translate3d(0px, 0px, 0px) !important; backface-visibility: hidden !important; }
}
.plyr { width: 100%; height: 100%; display: flex; flex-direction: column; margin: 0px; padding: 0px; position: absolute; inset: 0px; background: transparent !important; }
.plyr video { object-fit: contain; width: 100%; height: 100%; margin: 0px; padding: 0px; background: transparent !important; }
.plyr--video { background: transparent !important; }
.plyr__video-wrapper { background: transparent !important; width: 100% !important; height: 100% !important; margin: 0px !important; padding: 0px !important; position: absolute !important; inset: 0px !important; }
.play-start-overlay { position: fixed; inset: 0px; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(2px); cursor: pointer; }
.play-start-btn { width: 88px; height: 88px; border-width: medium; border-style: none; border-color: currentcolor; border-image: none; border-radius: 9999px; display: flex; align-items: center; justify-content: center; color: rgb(255, 255, 255); background: linear-gradient(135deg, rgb(239, 68, 68) 0%, rgb(220, 38, 38) 100%); box-shadow: rgba(239, 68, 68, 0.5) 0px 8px 24px; cursor: pointer; transition: transform 0.15s; animation: 2s ease 0s infinite normal none running playStartPulse; }
.play-start-btn:active { transform: scale(0.94); }
.play-start-btn svg { transform: translateX(1px); }
.play-start-text { color: rgb(255, 255, 255); font-size: 1.05rem; font-weight: 600; letter-spacing: 0.02em; text-shadow: rgba(0, 0, 0, 0.6) 0px 1px 4px; }
@keyframes playStartPulse { 
  0%, 100% { box-shadow: rgba(239, 68, 68, 0.5) 0px 8px 24px; }
  50% { box-shadow: rgba(239, 68, 68, 0.85) 0px 8px 36px; }
}
@media (max-width: 768px) {
  .play-start-btn { width: 76px; height: 76px; }
  .play-start-text { font-size: 0.95rem; }
}