/*
	Ticketmaster Spotify App — Web Compatibility Shim CSS
	Stands in for sp://import/css/{adam,api}.css which used to be
	served by the Spotify desktop client.
*/

/* ------------------------------------------------------------------
   Tab bar — replaces the chrome the Spotify desktop client provided.
   Declared in index.html, populated from manifest.json's DefaultTabs.
   Active class managed by ticketmaster.shim.js.
   ------------------------------------------------------------------ */
#tm-tabs {
	display: flex;
	justify-content: center;
	gap: 0;
	padding: 6px 0 0 0;
	border-bottom: 1px solid #1a1a1a;
	background: #000;
}

#tm-tabs a {
	display: inline-block;
	padding: 10px 22px 8px;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 11px;
	font-weight: bold;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #888;
	text-decoration: none;
	border-bottom: 3px solid transparent;
	transition: color 120ms ease, border-color 120ms ease;
}

#tm-tabs a:hover  { color: #ddd; }
#tm-tabs a.active { color: #fff; border-bottom-color: #ee2c4e; }

/* ------------------------------------------------------------------
   Player / tile placeholders used by v.Player and v.Image. The original
   Spotify SDK delivered iframes; here we render a static tile that can
   open the underlying entity on open.spotify.com when clicked.
   ------------------------------------------------------------------ */
.shim-tile {
	background-color: #1a1a1a;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.shim-player {
	position: relative;
	display: inline-block;
	width: 100%;
	height: 100%;
	min-width: 60px;
	min-height: 60px;
}

.shim-player .sp-player-image {
	width: 100%;
	height: 100%;
}

.shim-player-linked      { cursor: pointer; }
.shim-player-linked::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0);
	transition: background 120ms ease;
}
.shim-player-linked:hover::after { background: rgba(238,44,78,0.15); }

/* ------------------------------------------------------------------
   Stand-in tracklist (v.List). The full track list lives on Spotify.
   ------------------------------------------------------------------ */
.shim-tracklist {
	padding: 14px 16px;
	color: #888;
	font-style: italic;
	font-size: 12px;
	background: #fafafa;
	border: 1px solid #e0e0e0;
	border-radius: 3px;
}
.shim-tracklist-msg { display: inline-block; }

/* ------------------------------------------------------------------
   Spotify-SDK class stubs so any lingering references don't break.
   ------------------------------------------------------------------ */
.sp-player        { display: inline-block; }
.sp-player-image  { display: block; }
.sp-image         { display: block; width: 100%; height: 100%; }
.sp-button        {
	display: inline-block;
	padding: 6px 14px;
	background: #ee2c4e;
	color: #fff;
	border-radius: 3px;
	font-size: 12px;
	text-decoration: none;
	cursor: pointer;
}
.sp-button:hover  { background: #c41f3f; color: #fff; }
.sp-list          { display: block; }
.sp-list-item-playing,
.sp-list-item-paused { background: rgba(238,44,78,0.08); }

/* Spotify throbber stand-in. */
.sp-throbber {
	display: inline-block;
	width: 24px;
	height: 24px;
	border: 3px solid rgba(255,255,255,0.1);
	border-top-color: #ee2c4e;
	border-radius: 50%;
	animation: shim-spin 0.8s linear infinite;
}
@keyframes shim-spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------
   Visibility tweaks: the "Scan my library" action requires Spotify
   client APIs we can't shim usefully in a browser, so hide that block.
   ------------------------------------------------------------------ */
#favorite div.noFavs a.startSearch { display: none; }
