/*
	We Are Hunted 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.
   Sits inside .top-bar at the top; .top-bar's height is bumped so the
   chart/genre/etc. pages (which size themselves off $('.top-bar').height())
   leave room without any JS changes.
   ------------------------------------------------------------------ */
.top-bar { height: 73px !important; padding-top: 40px; box-sizing: border-box; }

#wah-tabs {
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 40px;
	display: flex;
	justify-content: center;
	background: #0a0a0a;
	border-bottom: 1px solid #2a2a2a;
}

#wah-tabs a {
	display: inline-block;
	padding: 12px 22px 10px;
	font-family: 'PT Sans Narrow', Helvetica, Arial, sans-serif;
	font-size: 12px;
	font-weight: bold;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #777;
	text-decoration: none;
	border-bottom: 3px solid transparent;
	transition: color 120ms ease, border-color 120ms ease;
	line-height: 18px;
}

#wah-tabs a:hover  { color: #ddd; text-decoration: none; }
#wah-tabs a.active { color: #fff; border-bottom-color: #f00; }

/* ------------------------------------------------------------------
   Spotify-SDK class stubs so any lingering references don't break.
   Most of the original sp://import/css/* concerned the player chrome
   and list views the desktop client used to embed.
   ------------------------------------------------------------------ */
.sp-player {
	display: block;
	background-color: #111;
	background-size: cover;
	background-position: center;
	cursor: pointer;
}

.sp-player .sp-image {
	display: block;
	width: 100%;
	height: 100%;
	background-color: #1a1a1a;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.sp-player .sp-player-button {
	position: absolute;
	bottom: 8px; right: 8px;
	width: 36px; height: 36px;
	border: 0;
	border-radius: 50%;
	background: rgba(255,255,255,0.9);
	cursor: pointer;
	z-index: 2;
	transition: background 120ms ease, transform 120ms ease;
}

.sp-player .sp-player-button::before {
	content: '';
	display: block;
	width: 0; height: 0;
	margin: 11px 0 0 13px;
	border-style: solid;
	border-width: 7px 0 7px 12px;
	border-color: transparent transparent transparent #000;
}

.sp-player:hover .sp-player-button { background: #fff; transform: scale(1.08); }

.sp-player-playing .sp-player-button::before {
	border-color: transparent;
	width: 10px; height: 10px;
	margin: 13px 0 0 13px;
	border: 0;
	background:
		linear-gradient(#000, #000) left  / 3px 100% no-repeat,
		linear-gradient(#000, #000) right / 3px 100% no-repeat;
}

.sp-button {
	display: inline-block;
	padding: 6px 14px;
	background: #f00;
	color: #fff;
	border-radius: 3px;
	font-size: 12px;
	text-decoration: none;
	cursor: pointer;
}
.sp-button:hover { background: #c00; color: #fff; }

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

/* The splash screen renders a 24x24 throbber by default — give it
   somewhere sensible to live. */
#splash .throbber { margin: 50px auto; width: 24px; }

/* ------------------------------------------------------------------
   Visibility tweaks: hide UI elements that require Spotify-client APIs
   we can't shim usefully (Facebook auth, library scanning, etc.).
   ------------------------------------------------------------------ */
#personal .option .pImage.facebook ~ .pDesc .generate { display: none; }
