/* ═══════════════════════════════════
   StolenFilms — Overlay customization
   Hides unwanted features, rebrands UI
   ═══════════════════════════════════ */

/* ── Replace welcome/splash screen logo ── */
.welcome {
  background: #1d1f20 !important;
}
.welcome::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #1d1f20;
  z-index: 1;
}
.welcome::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -65%);
  width: 14em; height: 2.5em;
  z-index: 2;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 280 50'%3E%3Ctext x='50%25' y='38' text-anchor='middle' fill='white' font-family='Inter,system-ui,sans-serif' font-size='40' font-weight='700' letter-spacing='-0.5'%3EStolen%3Ctspan fill='%23e53935'%3EFilms%3C/tspan%3E%3C/text%3E%3C/svg%3E") no-repeat center/contain;
}

/* Also replace lang screen logo with text */
.lang__logo {
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.lang__logo img {
  display: none !important;
}
.lang__logo::after {
  content: '';
  display: block;
  width: 12em; height: 2.2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 280 50'%3E%3Ctext x='50%25' y='38' text-anchor='middle' fill='white' font-family='Inter,system-ui,sans-serif' font-size='40' font-weight='700' letter-spacing='-0.5'%3EStolen%3Ctspan fill='%23e53935'%3EFilms%3C/tspan%3E%3C/text%3E%3C/svg%3E") no-repeat center/contain;
}

/* ── Hide menu items by data-action ── */
.menu__item[data-action="feed"],
.menu__item[data-action="persona"],
.menu__item[data-action="relise"],
.menu__item[data-action="subscribes"],
.menu__item[data-action="timetable"],
.menu__item[data-action="torrents"],
.menu__item[data-action="mytorrents"],
.menu__item[data-action="sport"],
.menu__item[data-action="console"],
.menu__item[data-action="about"] {
  display: none !important;
}

/* ── Hide "Edit" button in menu ── */
.menu__item[data-action="settings_menu_sort"] {
  display: none !important;
}

/* ── Hide torrent-related UI throughout ── */
.full-start__button[data-type="torrent"],
.full-start__button[data-type="mytorrent"],
.full-start-new__button[data-type="torrent"],
.full-start-new__button[data-type="mytorrent"] {
  display: none !important;
}

/* ── Hide CUB / Account features ── */
.head__action[data-action="account"],
.head__action[data-action="notice"] {
  display: none !important;
}

/* ── Hide settings sections we don't need ── */
.settings-folder[data-component="parser"],
.settings-folder[data-component="server"],
.settings-folder[data-component="torrserver"],
.settings-folder[data-component="account"] {
  display: none !important;
}

/* ── Hide error toast about plugins ── */
.notice--error {
  display: none !important;
}

/* ── Accent color override — from yellow to red ── */
:root {
  --stolen-accent: #e53935;
  --stolen-accent-light: #ff6f60;
}

/* Keep original white rating color */

/* ── StolenFilms logo in header ── */
.head__logo-icon {
  width: 2.2em !important;
  height: 2.2em !important;
}
.head__logo-stolen {
  font-size: 1.15em;
  font-weight: 700;
  letter-spacing: -0.3px;
  white-space: nowrap;
  margin-left: 0.4em;
  margin-right: 1em;
}

/* Move menu icon away from logo text */
.head__menu-icon {
  margin-left: 0.5em;
}
.head__logo-stolen span {
  color: var(--stolen-accent);
}

/* ── Hide unwanted header buttons ── */
.open--broadcast,
.open--profile,
.notice--icon {
  display: none !important;
}

/* ── Hide Lampa head title "- TMDB" suffix ── */
.head__title {
  font-size: 0 !important;
  overflow: hidden;
}

/* ═══════════════════════════════════
   VIBIX PLAYER OVERLAY
   ═══════════════════════════════════ */
#sf-player-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: #000;
  display: none;
  flex-direction: column;
}
#sf-player-overlay.open {
  display: flex;
}

.sf-player__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8em 1.5em;
  background: rgba(0,0,0,0.9);
  flex-shrink: 0;
  z-index: 1;
}

.sf-player__title {
  font-size: 1.2em;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sf-player__close {
  font-size: 1.5em;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  padding: 0.2em 0.5em;
  border-radius: 0.3em;
  transition: all 0.2s;
  flex-shrink: 0;
}
.sf-player__close:hover,
.sf-player__close.focus {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.sf-player__body {
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* Make Vibix iframe fill the container */
.sf-player__body iframe {
  width: 100% !important;
  height: 100% !important;
  border: none;
}

/* Style the "Смотреть онлайн" button — accent */
.view--vibix {
  color: var(--stolen-accent, #e53935) !important;
}
.view--vibix svg,
.view--vibix-sync svg {
  margin-right: 0.3em;
}

/* ── Header actions layout ── */
.sf-player__actions {
  display: flex;
  align-items: center;
  gap: 0.3em;
}

/* ── Invite button (sync mode) ── */
.sf-player__invite {
  cursor: pointer;
  color: #fff;
  padding: 0.35em 0.9em;
  border-radius: 0.4em;
  font-size: 0.85em;
  background: var(--stolen-accent, #e53935);
  transition: opacity 0.2s;
}
.sf-player__invite:hover {
  opacity: 0.8;
}

.view--vibix-sync svg {
  margin-right: 0.3em;
}

/* Ensure iframe is interactive */
#sf-player-overlay iframe {
  pointer-events: auto !important;
}
