/* MySpace mode: only applies while <html> has the "myspace" class. */

html:not(.myspace) .ms-only {
	display: none !important;
}

/* Theme toggle (visible in both themes once unlocked) */
.theme-toggle {
	position: fixed;
	top: 12px;
	right: 12px;
	z-index: 200;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid #f1c4d4;
	background: #fffafc;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(166, 30, 77, 0.2);
}

.theme-toggle[hidden] {
	display: none;
}

.theme-toggle:focus-visible {
	outline: 2px solid #d6336c;
	outline-offset: 2px;
}

html.myspace {
	--ms-black: #0b0b0d;
	--ms-panel: rgba(18, 18, 22, 0.92);
	--ms-pink: #ff2a8a;
	--ms-pink-soft: #ff69b4;
	--ms-lime: #b6ff00;
	--ms-cyan: #00e5ff;
	--ms-text: #f5e9f0;
	--ms-line: #3a1a2b;
}

html.myspace .ms-only {
	display: block;
}

html.myspace .ms-counter {
	display: list-item;
}

html.myspace,
html.myspace body {
	color: var(--ms-text);
	background-color: var(--ms-black);
	/* Hot pink zebra print */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='%23ff2a8a' opacity='.16'%3E%3Cpath d='M0 14c22-12 38 10 62 2s40-18 60-6 26 8 38 4v12c-14 6-24-2-38-6s-34 12-60 10-38-14-62-4z'/%3E%3Cpath d='M0 58c18 8 30-10 52-8s34 18 58 12 34-14 50-6v10c-16-4-28 10-50 12s-36-14-58-12-34 14-52 4z'/%3E%3Cpath d='M0 104c26-10 40 12 64 4s36-16 58-8 26 10 38 6v12c-12 2-22-8-38-6s-34 16-58 12-38-16-64-8z'/%3E%3Cpath d='M20 140c16-6 30 6 46 2s28-10 44-4v8c-14-2-28 8-44 6s-30-8-46-4z'/%3E%3C/g%3E%3C/svg%3E");
	font-family: Verdana, Tahoma, Geneva, sans-serif;
}

html.myspace ::selection {
	background: var(--ms-pink);
	color: #fff;
}

html.myspace a,
html.myspace a:link,
html.myspace a:visited,
html.myspace .homepage #rightbar h5 {
	color: var(--ms-pink-soft);
}

html.myspace a:hover,
html.myspace .homepage a:hover {
	color: var(--ms-lime);
	text-decoration: underline;
}

/* Logo */
html.myspace #logo a {
	font-family: Verdana, Tahoma, sans-serif;
	font-style: normal;
	font-weight: bold;
	letter-spacing: -0.02em;
	color: #fff;
	text-shadow: 2px 2px 0 var(--ms-pink), -1px -1px 0 var(--ms-cyan);
}

html.myspace #logo a::after {
	content: " \2665";
	color: var(--ms-pink);
	text-shadow: none;
}

html.myspace #logo sup a::after {
	content: none;
}

/* Bars and headers */
html.myspace .ban,
html.myspace #topban,
html.myspace .homepage footer {
	background: #000;
	border-color: var(--ms-pink);
}

html.myspace #topban h2,
html.myspace .ban a {
	font-family: Verdana, Tahoma, sans-serif;
	font-style: normal;
	font-weight: bold;
	text-transform: lowercase;
	color: var(--ms-pink);
	text-shadow: 0 0 6px rgba(255, 42, 138, 0.8);
}

html.myspace #topban h2 {
	color: #fff;
}

html.myspace .homepage .ban a:hover,
html.myspace .homepage .col ul li a:hover,
html.myspace .homepage #rightbar h5:hover,
html.myspace .homepage #rightbar h5.active {
	background: #1d0d16;
}

html.myspace .homepage .col ul li a:hover {
	border-bottom-color: var(--ms-pink);
}

html.myspace #leftbar,
html.myspace .homepage #rightbar {
	background: var(--ms-panel);
	border-color: var(--ms-line);
}

html.myspace .homepage #postlks #post {
	background: var(--ms-pink);
	color: #fff;
}

/* Form controls */
html.myspace .flatinput,
html.myspace #inputForm,
html.myspace #catAbb,
html.myspace .searchbtn {
	background-color: #000;
	border-color: var(--ms-pink);
	color: #fff;
}

html.myspace #inputForm::placeholder {
	color: #b0607f;
}

html.myspace .fallButton:focus-visible,
html.myspace #inputForm:focus-visible,
html.myspace .searchbtn:focus-visible,
html.myspace .theme-toggle:focus-visible {
	outline-color: var(--ms-lime);
}

html.myspace .searchbtn .icon-search {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='6.5' cy='6.5' r='4.75' fill='none' stroke='%23ff2a8a' stroke-width='2'/%3E%3Cpath d='M10 10l4.5 4.5' stroke='%23ff2a8a' stroke-width='2.25' stroke-linecap='round'/%3E%3C/svg%3E");
}

html.myspace .theme-toggle {
	background: #000;
	border-color: var(--ms-pink);
	box-shadow: 0 0 10px rgba(255, 42, 138, 0.6);
}

/* Calendar */
html.myspace #calban a {
	color: var(--ms-lime);
}

html.myspace .cal {
	background: var(--ms-line);
}

html.myspace .cal tr.days th {
	background: #000;
	color: var(--ms-pink);
	border-color: var(--ms-line);
}

html.myspace .cal td {
	background: #141418;
	border-color: var(--ms-line);
	color: #8d7c86;
}

html.myspace .cal td:hover {
	background: #1d0d16;
}

html.myspace .cal td.today {
	background-color: var(--ms-pink);
	background-image: none;
}

html.myspace .cal td.today a {
	color: #fff;
}

/* Now playing */
.ms-player {
	margin: 0 6px 16px;
	padding: 6px 8px;
	border: 1px solid var(--ms-pink);
	background: #000;
	font-size: 11px;
	text-align: left;
	box-shadow: 0 0 8px rgba(255, 42, 138, 0.35);
}

html.myspace .ms-player {
	display: flex;
	align-items: center;
	gap: 6px;
}

.ms-player-label {
	flex: none;
	color: var(--ms-lime);
	font-weight: bold;
	text-transform: uppercase;
	font-size: 9px;
	letter-spacing: 0.05em;
}

.ms-player-track {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
}

.ms-player-song {
	display: inline-block;
	padding-left: 100%;
	color: #fff;
	animation: ms-marquee 12s linear infinite;
}

.ms-player-next {
	flex: none;
	border: 0;
	background: transparent;
	color: var(--ms-pink);
	font-size: 14px;
	cursor: pointer;
	padding: 0 2px;
}

@keyframes ms-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-100%); }
}

/* Top 8 */
.ms-top8 {
	margin: 18px 6px 0;
	padding: 8px;
	border: 1px solid var(--ms-line);
	background: #000;
	text-align: left;
}

.ms-top8-title {
	margin: 0;
	padding: 4px 6px;
	background: var(--ms-pink);
	color: #fff;
	font-size: 12px;
	font-weight: bold;
}

.ms-top8-count {
	margin: 6px 0;
	font-size: 11px;
	color: var(--ms-text);
}

.ms-top8-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

html.myspace .ms-friend {
	display: block;
	text-align: center;
	font-size: 10px;
	color: var(--ms-cyan);
	text-decoration: none;
}

.ms-friend-pic {
	width: 100%;
	box-sizing: border-box;
	aspect-ratio: 1;
	margin-bottom: 2px;
	border: 1px solid var(--ms-line);
	background: #1a1a1f;
	font-size: 22px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

html.myspace .ms-friend:hover .ms-friend-pic {
	border-color: var(--ms-pink);
}

.ms-friend-name {
	display: block;
	font-size: 9px;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

/* Mood and visitor counter */
.ms-mood {
	margin: 2px 0 0;
	font-size: 12px;
	text-align: center;
}

.ms-mood-label {
	color: var(--ms-lime);
	font-weight: bold;
}

.ms-counter {
	font-family: "Courier New", monospace;
	color: var(--ms-lime);
	letter-spacing: 0.1em;
}

@media (prefers-reduced-motion: reduce) {
	.ms-player-song {
		animation: none;
		padding-left: 0;
	}
}

/* Phone search dock */
html.myspace .dock {
	background: linear-gradient(to top, rgba(11, 11, 13, 0.97) 60%, rgba(11, 11, 13, 0));
}

html.myspace .dock input {
	background: #000;
	border-color: var(--ms-pink);
	color: #fff;
	font-family: Verdana, Tahoma, sans-serif;
	box-shadow: 0 0 12px rgba(255, 42, 138, 0.45);
}

html.myspace .dock input::placeholder {
	color: #b0607f;
}

html.myspace .dock input:focus {
	box-shadow: 0 0 0 3px var(--ms-lime);
}

/* On phones the toggle sits in the search dock, next to the input. */
.dock .theme-toggle {
	position: static;
	flex: none;
	width: 48px;
	height: 48px;
	font-size: 22px;
	border-width: 1px;
}
