/* TuServerMu - Top Sites (?action=topsites), 2026-12-02.
   Template: Themes/default/TopSites.template.php. Everything lives inside .tsmu-ts; classes start with ts-.
   Colours follow the forum: navy category bars (#334f7f), white cards, sky links, gold action buttons.
   Phase 7 put the Grok pictures in (see the Phase 7 block at the end; new file names whenever a picture changes). */

.tsmu-ts {
	--ts-navy: #23406e;
	--ts-bar: #334f7f;
	--ts-sky: #2563c9;
	--ts-gold-ink: #3a2500;
	--ts-ink: #1e293b;
	--ts-muted: #5b6b82;
	--ts-line: #dce5f0;
	--ts-card: #ffffff;
	display: grid;
	gap: 16px;
	margin: 0 0 20px;
	color: var(--ts-ink);
	font-size: 14px;
	line-height: 1.5;
}
.tsmu-ts *,
.tsmu-ts *::before,
.tsmu-ts *::after { box-sizing: border-box; min-width: 0; }
.tsmu-ts a { color: var(--ts-sky); }

/* Notes on top */
.ts-adminbar,
.ts-notice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 10px; font-size: 13px; }
.ts-adminbar { background: #fff7e6; border: 1px solid #f5c86b; color: #5c3a00; }
.ts-adminbar i { color: #b45309; margin-top: 3px; }
.ts-notice { background: #eef5ff; border: 1px solid #c7dbf7; color: #1e3a5f; }
.ts-notice i { color: var(--ts-sky); margin-top: 3px; }

/* Hero */
.ts-hero {
	position: relative;
	overflow: hidden;
	display: grid;
	gap: 18px;
	padding: 26px 26px 24px;
	border-radius: 14px;
	color: #fff;
	background-image: linear-gradient(90deg, rgba(9, 24, 48, .92) 0%, rgba(9, 24, 48, .62) 58%, rgba(9, 24, 48, .22) 100%), var(--ts-hero-img, linear-gradient(165deg, #3b6fb8 0%, #86b2e6 48%, #f0b563 100%));
	background-size: cover;
	background-position: center;
	box-shadow: 0 8px 26px rgba(20, 44, 82, .18);
}
.ts-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 88% 10%, rgba(255, 214, 120, .38), transparent 42%); }
.ts-hero > * { position: relative; z-index: 1; }
.ts-eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #ffd36b; }
.ts-title { margin: 6px 0 0; font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.08; letter-spacing: .02em; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.ts-lead { margin: 8px 0 0; max-width: 56ch; color: #e3edfb; font-size: 15px; }
.ts-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ts-stats { display: flex; flex-wrap: wrap; gap: 8px; align-content: end; }
.ts-stats div { min-width: 100px; padding: 9px 13px; border-radius: 11px; background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .2); font-size: 12.5px; line-height: 1.25; color: #e3edfb; }
.ts-stats b { display: block; font-size: 21px; color: #fff; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
	.ts-hero { grid-template-columns: minmax(0, 1fr) auto; align-items: end; padding: 34px 34px 30px; }
}

/* Buttons */
.ts-btn { display: inline-flex; align-items: center; gap: 7px; border-radius: 9px; padding: 9px 16px; font-weight: 800; font-size: 13.5px; line-height: 1.2; text-decoration: none !important; white-space: nowrap; transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease; }
.ts-btn:hover { transform: translateY(-1px); }
.ts-btn:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.ts-btn-gold { background: linear-gradient(180deg, #ffc94f, #f59e0b); color: var(--ts-gold-ink) !important; box-shadow: 0 2px 10px rgba(245, 158, 11, .35); }
.ts-btn-gold:hover { box-shadow: 0 4px 16px rgba(245, 158, 11, .5); }
.ts-btn-ghost { border: 1px solid rgba(255, 255, 255, .55); color: #fff !important; background: rgba(255, 255, 255, .06); }
.ts-btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.ts-btn-block { display: flex; justify-content: center; width: 100%; }

/* Layout */
.ts-layout { display: grid; gap: 16px; }
.ts-main { display: grid; gap: 14px; align-content: start; }
@media (min-width: 1000px) {
	.ts-layout { grid-template-columns: minmax(0, 1fr) 290px; align-items: start; }
}

/* Filters */
.ts-filters { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--ts-line); border-radius: 12px; background: var(--ts-card); }
.ts-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ts-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid #d6e0ec; border-radius: 8px; background: #fff; color: #334155 !important; font-weight: 700; font-size: 12.5px; text-decoration: none !important; white-space: nowrap; cursor: pointer; }
.ts-chip em { font-style: normal; background: #eef2f7; border-radius: 5px; padding: 0 5px; color: #475569; font-size: 11.5px; }
.ts-chip:hover { border-color: #9db6d8; }
.ts-chip.is-on { background: var(--ts-sky); border-color: var(--ts-sky); color: #fff !important; }
.ts-chip.is-on em { background: rgba(255, 255, 255, .25); color: #fff; }
.ts-chips-alt .ts-chip { background: #f8fafc; }
.ts-more { display: inline-block; }
.ts-more > summary { list-style: none; }
.ts-more > summary::-webkit-details-marker { display: none; }
.ts-more > summary i { font-size: 10px; transition: transform .15s ease; }
.ts-more[open] > summary i { transform: rotate(180deg); }
.ts-more[open] { flex-basis: 100%; }
.ts-more-list { margin-top: 6px; padding-top: 8px; border-top: 1px dashed var(--ts-line); }

/* Empty list */
.ts-empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 36px 20px; border: 1px dashed #c6d4e6; border-radius: 14px; background: linear-gradient(180deg, #f7faff, #fff); }
.ts-empty-art { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; color: #ffd36b; background: radial-gradient(circle at 30% 25%, #5b8ad1, #23406e 70%); box-shadow: 0 0 0 6px #e3ecf9, 0 10px 24px rgba(35, 64, 110, .25); }
.ts-empty h2 { margin: 6px 0 0; font-size: 19px; color: var(--ts-navy); }
.ts-empty p { margin: 0; max-width: 46ch; color: var(--ts-muted); }

/* Side boxes (same blue header as the forum widgets) */
.ts-side { display: grid; gap: 14px; align-content: start; }
.ts-box { border: 1px solid var(--ts-line); border-radius: 10px 10px 12px 12px; overflow: hidden; background: var(--ts-card); }
.ts-box h3 { display: flex; align-items: center; gap: 8px; margin: 0; padding: 9px 12px; background: var(--ts-bar); color: #fff; font-size: 14px; line-height: 1.3; }
.ts-box h3 i { color: #ffd36b; }
.ts-box-body { padding: 10px 12px 12px; }
.ts-box p { margin: 0 0 8px; font-size: 13px; }
.ts-box p.ts-muted { margin: 0; }
.ts-muted { color: var(--ts-muted); font-size: 13px; }
.ts-list { list-style: none; margin: 0; padding: 0; }
.ts-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #eef2f7; font-size: 13px; }
.ts-list li:last-child { border-bottom: 0; }
.ts-list b { color: var(--ts-ink); display: inline-flex; align-items: center; }
.ts-list span { color: var(--ts-muted); white-space: nowrap; }
.ts-checks { list-style: none; margin: 4px 0 12px; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.ts-checks li { position: relative; padding-left: 22px; }
.ts-checks li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 9px; height: 5px; border-left: 2.5px solid #16924a; border-bottom: 2.5px solid #16924a; transform: rotate(-45deg); }
.ts-medal { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; font-weight: 800; margin-right: 6px; }
.ts-medal.p1 { background: linear-gradient(160deg, #ffe28a, #f5a623); color: #3b2a00; }
.ts-medal.p2 { background: linear-gradient(160deg, #f4f7fb, #a9b6c8); color: #25313f; }
.ts-medal.p3 { background: linear-gradient(160deg, #f6c39b, #c26b2f); color: #3a1b05; }

/* Phones */
@media (max-width: 640px) {
	.ts-hero { padding: 20px 16px; }
	.ts-stats div { flex: 1 1 30%; min-width: 0; }
	.ts-stats b { font-size: 18px; }
	.ts-btn { padding: 8px 13px; }
	.ts-actions .ts-btn-gold { flex-basis: 100%; justify-content: center; }
}

/* ==========================================================================
   Phase 2 (2026-12-02): Add / Edit form, My servers, vote button
   ========================================================================== */

/* Messages */
.ts-flash { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 10px; font-size: 13.5px; }
.ts-flash > i { margin-top: 3px; }
.ts-flash.is-ok { background: #ecfdf3; border: 1px solid #a7e3bf; color: #14532d; }
.ts-flash.is-ok > i { color: #16924a; }
.ts-flash.is-error { background: #fff1f1; border: 1px solid #f4b4b4; color: #7f1d1d; }
.ts-flash.is-error > i { color: #dc2626; }
.ts-flash ul { margin: 4px 0 0; padding-left: 18px; }

/* Page head (form, My servers) */
.ts-pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 18px 22px; border-radius: 14px; color: #fff; background: radial-gradient(circle at 92% 0%, rgba(255, 214, 120, .35), transparent 40%), linear-gradient(120deg, #1d3761 0%, #2f5c9e 60%, #4f86cf 100%); box-shadow: 0 6px 20px rgba(20, 44, 82, .16); }
.ts-pagehead h1 { margin: 4px 0 2px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; color: #fff; }
.ts-pagehead p { margin: 0; max-width: 70ch; color: #dbe7f8; font-size: 13.5px; }
.ts-pagehead .ts-req { color: #ffd36b; }
.tsmu-ts .ts-back { color: #ffd36b; font-weight: 800; font-size: 12.5px; text-decoration: none; }
.tsmu-ts .ts-back:hover { text-decoration: underline; }
.ts-pagehead-note { display: inline-flex; gap: 7px; align-items: center; padding: 8px 12px; border-radius: 9px; background: rgba(255, 255, 255, .14); font-size: 13px; }

/* Form layout */
.ts-form-grid { display: grid; gap: 16px; }
.ts-form-main { display: grid; gap: 14px; align-content: start; }
.ts-form-side { display: grid; gap: 12px; align-content: start; }
.ts-sticky { display: grid; gap: 12px; }
@media (min-width: 1000px) {
	.ts-form-grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
	.ts-sticky { position: sticky; top: 12px; }
}
.ts-card { padding: 16px 18px 8px; border: 1px solid var(--ts-line); border-radius: 12px; background: var(--ts-card); }
.ts-card h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; font-size: 16px; color: var(--ts-navy); }
.ts-card-lead { margin: -6px 0 12px !important; }
.ts-step { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ts-bar); color: #ffd36b; font-size: 12.5px; font-weight: 800; }
.ts-row2 { display: grid; gap: 0 14px; }
@media (min-width: 640px) {
	.ts-row2 { grid-template-columns: 1fr 1fr; }
}

/* Fields */
.ts-field { display: grid; gap: 5px; margin-bottom: 14px; align-content: start; }
.ts-field > label { display: flex; align-items: baseline; gap: 6px; font-weight: 700; font-size: 13px; color: var(--ts-ink); }
.ts-field label em,
.ts-upload label em { font-style: normal; font-weight: 600; font-size: 11.5px; color: #8796ab; }
.ts-req { color: #dc2626; font-style: normal; font-weight: 800; }
.ts-count { margin-left: auto; font-weight: 600; font-size: 11.5px; color: #8796ab; font-variant-numeric: tabular-nums; }
.ts-count.is-low { color: #b45309; }
.ts-form input[type="text"],
.ts-form input[type="datetime-local"],
.ts-form select,
.ts-form textarea,
.ts-code textarea,
.ts-code input { width: 100%; max-width: none; margin: 0; padding: 8px 10px; border: 1px solid #cdd8e6; border-radius: 8px; background: #fff; color: var(--ts-ink); font: inherit; font-size: 14px; line-height: 1.4; box-shadow: none; }
.ts-form select { min-height: 38px; }
.ts-form textarea { min-height: 130px; resize: vertical; }
.ts-form input:focus,
.ts-form select:focus,
.ts-form textarea:focus,
.ts-code textarea:focus,
.ts-code input:focus { border-color: var(--ts-sky); box-shadow: 0 0 0 3px rgba(37, 99, 201, .15); outline: none; }
.ts-hint { margin: 0; color: var(--ts-muted); font-size: 12.5px; }
.ts-error { margin: 0; color: #b91c1c; font-size: 12.5px; font-weight: 600; }
.ts-field.has-error input,
.ts-field.has-error select,
.ts-field.has-error textarea,
.ts-field.has-error .ts-seg span { border-color: #ef4444; }

/* Choice buttons (radio) */
.ts-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.ts-seg label { position: relative; cursor: pointer; }
.ts-seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ts-seg span { display: inline-block; padding: 7px 12px; border: 1px solid #cdd8e6; border-radius: 8px; background: #f8fafc; color: #334155; font-weight: 700; font-size: 13px; line-height: 1.2; transition: background-color .12s ease, border-color .12s ease; }
.ts-seg label:hover span { border-color: #9db6d8; }
.ts-seg input:checked + span { background: var(--ts-sky); border-color: var(--ts-sky); color: #fff; }
.ts-seg input:focus-visible + span { outline: 3px solid #93c5fd; outline-offset: 1px; }

/* Pictures */
.ts-upload { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; padding: 12px; border: 1px dashed #c6d4e6; border-radius: 10px; background: #f8fbff; }
.ts-upload.has-error { border-color: #ef4444; background: #fff8f8; }
.ts-upload-preview { flex: 0 0 auto; display: grid; place-items: center; width: 88px; height: 88px; overflow: hidden; border-radius: 10px; background: #e9eff7; }
.ts-upload-preview img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.ts-upload-logo .ts-upload-preview { border-radius: 50%; }
.ts-upload-logo .ts-upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.ts-upload-banner,
.ts-upload-header { flex-direction: column; }
.ts-upload-banner .ts-upload-preview { width: 100%; max-width: 468px; height: auto; aspect-ratio: 468 / 60; border-radius: 6px; }
.ts-upload-banner .ts-upload-preview img,
.ts-upload-header .ts-upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.ts-upload-header .ts-upload-preview { width: 100%; height: auto; aspect-ratio: 4 / 1; }
.ts-upload-ph { font-size: 24px; color: #9fb2cc; }
.ts-upload-body { display: grid; gap: 6px; flex: 1 1 auto; width: 100%; }
.ts-upload-body > label { font-size: 13px; color: var(--ts-ink); }
.ts-upload input[type="file"] { max-width: 100%; font-size: 13px; }
.ts-upload-msg { display: grid; gap: 2px; margin: 0; font-size: 12.5px; }
.ts-upload-msg:empty { display: none; }
.ts-upload-msg .is-good { color: #15803d; }
.ts-upload-msg .is-bad { color: #b91c1c; font-weight: 600; }
.ts-check-inline { display: inline-flex; gap: 8px; align-items: flex-start; font-size: 13px; font-weight: 600; cursor: pointer; }
.ts-check-inline input { flex: 0 0 auto; margin: 3px 0 0; }
.ts-shots { display: flex; flex-wrap: wrap; gap: 8px; }
.ts-shots:empty { display: none; }
.ts-shot { display: grid; gap: 4px; font-size: 12px; cursor: pointer; }
.ts-shot span { display: inline-flex; gap: 5px; align-items: center; }
.ts-shots img { width: 160px; height: 90px; object-fit: cover; border: 1px solid var(--ts-line); border-radius: 8px; background: #e9eff7; }
@media (max-width: 520px) {
	.ts-upload { flex-direction: column; }
	.ts-shots img { width: calc(50vw - 40px); height: auto; aspect-ratio: 16 / 9; }
}

/* Preview card */
.ts-pv { position: relative; padding: 14px 12px 12px; border: 1px solid var(--ts-line); border-radius: 12px; background: #fff; box-shadow: 0 4px 16px rgba(20, 44, 82, .08); }
.ts-pv-label { position: absolute; top: -9px; left: 12px; padding: 1px 8px; border-radius: 6px; background: var(--ts-bar); color: #ffd36b; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ts-pv-banner { display: grid; place-items: center; aspect-ratio: 468 / 60; margin: 4px 0 10px; overflow: hidden; border-radius: 6px; background: repeating-linear-gradient(45deg, #eef3fa 0 10px, #e6edf7 10px 20px); color: #7b8ca5; font-size: 12px; font-weight: 700; }
.ts-pv-banner img { width: 100%; height: 100%; object-fit: cover; }
.ts-pv [hidden] { display: none !important; }
.ts-pv-row { display: flex; gap: 10px; align-items: center; }
.ts-logo { flex: 0 0 auto; display: grid; place-items: center; width: 48px; height: 48px; overflow: hidden; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #5b8ad1, #23406e 70%); color: #ffd36b; font-weight: 800; font-size: 16px; letter-spacing: .02em; box-shadow: 0 0 0 3px #e3ecf9; }
.ts-logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ts-pv-text b { display: block; font-size: 15px; color: var(--ts-ink); overflow-wrap: anywhere; }
.ts-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.ts-tags span { padding: 1px 7px; border-radius: 6px; background: #eef3fa; color: #36506f; font-size: 11.5px; font-weight: 700; }
.ts-pv-desc { margin: 10px 0 0; color: var(--ts-muted); font-size: 13px; overflow-wrap: anywhere; }

/* Cost box */
.ts-cost { padding: 12px 14px; border: 1px solid #f5c86b; border-radius: 12px; background: linear-gradient(180deg, #fffaf0, #fff3d6); color: #4a3000; font-size: 13px; }
.ts-cost.is-admin,
.ts-cost.is-free { border-color: #a7e3bf; background: #effcf4; color: #14532d; }
.ts-cost.is-blocked,
.ts-cost.is-full { border-color: #f4b4b4; background: #fff4f4; color: #7f1d1d; }
.ts-cost-head { font-size: 14px; }
.ts-cost-head i { margin-right: 3px; }
.ts-cost p { margin: 6px 0 0; }
.ts-cost-flow { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 24px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ts-cost-flow i { font-size: 14px; opacity: .55; }
.ts-cost-flow.is-debt span:last-child { color: #b45309; }
.ts-cost-note { font-size: 12.5px; opacity: .9; }
.ts-agree { margin: 0; }
.ts-agree span { font-size: 12.5px; font-weight: 600; color: var(--ts-ink); }
.ts-submit { padding: 12px 16px; font-size: 15px; border: 0; cursor: pointer; }
.ts-submit[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.tsmu-ts .ts-cancel { justify-self: center; color: var(--ts-muted); font-size: 13px; }

/* Buttons on white */
.ts-btn-line { border: 1px solid #cdd8e6; background: #fff; color: var(--ts-navy) !important; cursor: pointer; }
.ts-btn-line:hover { border-color: #9db6d8; background: #f5f9ff; }
.ts-btn-line.is-danger { color: #b91c1c !important; }
.ts-btn-red { border: 0; background: #dc2626; color: #fff !important; cursor: pointer; }
.ts-btn-red:hover { background: #b91c1c; }

/* My servers */
.ts-mycard { display: grid; gap: 12px; padding: 16px 18px; border: 1px solid var(--ts-line); border-radius: 14px; background: #fff; scroll-margin-top: 12px; }
.ts-mycard.is-focus { border-color: #9db6d8; box-shadow: 0 0 0 3px rgba(37, 99, 201, .12); }
.ts-mycard-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; }
.ts-mycard-head .ts-logo { width: 56px; height: 56px; font-size: 19px; }
.ts-mycard-title h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 18px; line-height: 1.25; color: var(--ts-navy); overflow-wrap: anywhere; }
.ts-meta { margin-top: 5px; color: var(--ts-muted); font-size: 12.5px; }
.ts-mycard-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
@media (min-width: 760px) {
	.ts-mycard-head { grid-template-columns: auto minmax(0, 1fr) auto; }
	.ts-mycard-actions { grid-column: auto; justify-content: flex-end; }
}
.ts-pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-family: inherit; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; }
.ts-pill.is-pending { background: #fff4d6; color: #8a5a00; }
.ts-pill.is-active { background: #dcfce7; color: #166534; }
.ts-pill.is-rejected { background: #fee2e2; color: #991b1b; }
.ts-pill.is-inactive { background: #e2e8f0; color: #475569; }
.ts-pill.is-hidden { background: #ede9fe; color: #5b21b6; }
.ts-mycard-banner img { display: block; max-width: 100%; height: auto; border-radius: 6px; }
.ts-state { margin: 0; padding: 9px 12px; border-radius: 9px; font-size: 13px; }
.ts-state.is-pending { border: 1px solid #fde3a7; background: #fffaeb; color: #7a4b00; }
.ts-state.is-rejected { border: 1px solid #f8c9c9; background: #fff4f4; color: #7f1d1d; }
.ts-state.is-inactive { border: 1px solid #e2e8f0; background: #f1f5f9; color: #334155; }
.ts-state.is-hidden { border: 1px solid #ddd6fe; background: #f5f3ff; color: #4c1d95; }
.ts-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.ts-tiles div { padding: 10px 12px; border: 1px solid #e6edf6; border-radius: 10px; background: #f5f8fc; }
.ts-tiles b { display: block; font-size: 20px; line-height: 1.2; color: var(--ts-navy); font-variant-numeric: tabular-nums; }
.ts-tiles span { font-size: 12px; color: var(--ts-muted); }
.ts-paid { margin: 0; color: var(--ts-muted); font-size: 12.5px; }

/* Remove (the confirm opens in a small panel, no browser dialog) */
.ts-danger { position: relative; }
.ts-danger > summary { list-style: none; cursor: pointer; }
.ts-danger > summary::-webkit-details-marker { display: none; }
.ts-danger-box { position: absolute; left: 0; top: calc(100% + 6px); z-index: 5; width: min(320px, 84vw); padding: 12px; border: 1px solid #f4b4b4; border-radius: 10px; background: #fff; box-shadow: 0 10px 30px rgba(15, 23, 42, .18); font-size: 13px; }
@media (min-width: 760px) {
	.ts-danger-box { left: auto; right: 0; }
}
.ts-danger-box p { margin: 0 0 8px; }
.ts-good { color: #15803d; }
.ts-warn { color: #b45309; }

/* Vote button panel */
.ts-votebtn { border: 1px solid var(--ts-line); border-radius: 10px; background: #fbfdff; }
.ts-votebtn > summary { display: flex; align-items: center; gap: 8px; padding: 10px 12px; list-style: none; cursor: pointer; font-weight: 800; color: var(--ts-navy); }
.ts-votebtn > summary::-webkit-details-marker { display: none; }
.ts-chev { margin-left: auto; font-size: 11px; transition: transform .15s ease; }
.ts-votebtn[open] .ts-chev { transform: rotate(180deg); }
.ts-votebtn-body { display: grid; gap: 14px; padding: 0 12px 14px; }
.ts-votebtn-body > p { margin: 0; font-size: 13px; }
.ts-vb { display: grid; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--ts-line); }
@media (min-width: 760px) {
	.ts-vb { grid-template-columns: 200px minmax(0, 1fr); align-items: start; }
}
.ts-vb-img { display: grid; gap: 4px; justify-items: start; color: var(--ts-muted); font-size: 12px; }
.ts-vb-img img { display: block; max-width: 100%; height: auto; }
.ts-vb-code,
.ts-vb-link { display: grid; gap: 5px; }
.ts-vb-code label,
.ts-vb-link label { color: #475569; font-size: 12px; font-weight: 700; }
.ts-code { display: flex; gap: 6px; align-items: stretch; }
.ts-code textarea,
.ts-code input { flex: 1 1 auto; min-height: 0; background: #f8fafc; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; resize: none; }
.ts-copy { flex: 0 0 auto; min-width: 70px; padding: 0 12px; border: 1px solid #cdd8e6; border-radius: 8px; background: #fff; color: var(--ts-navy); font-weight: 800; font-size: 12.5px; cursor: pointer; }
.ts-copy:hover { background: #f5f9ff; }
.ts-copy.is-done { border-color: #a7e3bf; background: #dcfce7; color: #166534; }

@media (max-width: 640px) {
	.ts-pagehead { padding: 16px; }
	.ts-card { padding: 14px 14px 4px; }
	.ts-mycard { padding: 14px; }
}

/* ==========================================================================
   Phase 3 (2026-12-02): the ranking (search, filters, server cards, page links)
   ========================================================================== */

/* Search */
.ts-search { position: relative; display: flex; gap: 8px; align-items: center; margin: 0; }
.ts-search > i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #8796ab; font-size: 13px; pointer-events: none; }
.ts-search input[type="search"] { flex: 1 1 auto; width: 100%; max-width: none; height: 38px; margin: 0; padding: 7px 10px 7px 34px; border: 1px solid #cdd8e6; border-radius: 9px; background: #f8fafc; color: var(--ts-ink); font: inherit; font-size: 14px; line-height: 1.4; box-shadow: none; }
.ts-search input[type="search"]:focus { border-color: var(--ts-sky); background: #fff; box-shadow: 0 0 0 3px rgba(37, 99, 201, .15); outline: none; }
.ts-search .ts-btn { flex: 0 0 auto; height: 38px; padding: 0 16px; }

/* Filter groups (a chip that is on takes the filter off again) */
.ts-chips-alt { gap: 6px 16px; }
.ts-chipgroup { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.ts-chips-alt .ts-chip.is-on { background: var(--ts-sky); border-color: var(--ts-sky); color: #fff !important; }
.ts-chip > i { font-size: 11px; }

/* List head */
.ts-listhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; padding: 2px 2px 0; }
.ts-listhead h2 { margin: 0; font-size: 17px; line-height: 1.3; color: var(--ts-navy); }
.ts-listhead span { color: var(--ts-muted); font-size: 12.5px; }
.ts-listhead a { font-weight: 700; }

/* Server cards */
.ts-ranking { display: grid; gap: 10px; }
.ts-srv {
	position: relative;
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr) 176px;
	grid-template-areas: "rank banner side" "rank head side" "rank info side";
	grid-template-rows: auto auto 1fr;
	gap: 9px 14px;
	padding: 14px 16px 14px 10px;
	border: 1px solid var(--ts-line);
	border-radius: 14px;
	background: var(--ts-card);
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
	scroll-margin-top: 12px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.ts-srv:hover { border-color: #b9cbe3; box-shadow: 0 8px 22px rgba(20, 44, 82, .1); }
.ts-srv.is-top::before { content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; }
.ts-srv.is-p1 { border-color: #f1d28a; background: linear-gradient(180deg, #fffbef 0%, #fff 55%); box-shadow: 0 6px 20px rgba(245, 166, 35, .14); }
.ts-srv.is-p1::before { background: linear-gradient(180deg, #ffd36b, #f59e0b); }
.ts-srv.is-p2::before { background: linear-gradient(180deg, #e2e8f0, #94a3b8); }
.ts-srv.is-p3::before { background: linear-gradient(180deg, #f6c39b, #c26b2f); }

/* Place */
.ts-srv-rank { grid-area: rank; position: relative; display: flex; flex-direction: column; align-items: center; padding-top: 4px; }
.ts-place { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 6px; border-radius: 10px; background: #eef3fa; color: var(--ts-navy); font-weight: 800; font-size: 16px; line-height: 1; font-variant-numeric: tabular-nums; }
.ts-srv.is-top .ts-place { width: 42px; min-width: 42px; height: 42px; padding: 0; border-radius: 50%; font-size: 18px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12), 0 3px 10px rgba(0, 0, 0, .14); }
.ts-srv.is-p1 .ts-place { background: linear-gradient(160deg, #ffe28a, #f5a623); color: #3b2a00; }
.ts-srv.is-p2 .ts-place { background: linear-gradient(160deg, #f4f7fb, #a9b6c8); color: #25313f; }
.ts-srv.is-p3 .ts-place { background: linear-gradient(160deg, #f6c39b, #c26b2f); color: #3a1b05; }
.ts-crown { position: absolute; top: -9px; left: 50%; transform: translateX(-50%) rotate(-8deg); color: #f5a623; font-size: 15px; text-shadow: 0 1px 0 #fff, 0 2px 6px rgba(245, 158, 11, .45); }

/* Banner (a made-up one when the server has none) */
.ts-srv-banner { grid-area: banner; display: block; justify-self: start; width: 100%; max-width: 468px; aspect-ratio: 468 / 60; overflow: hidden; border-radius: 7px; background: #e9eff7; text-decoration: none !important; }
.ts-srv-banner.is-728 { max-width: 728px; aspect-ratio: 728 / 90; }
.ts-srv-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tsmu-ts .ts-srv-banner.is-empty { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 1px; padding: 0 16px; color: #fff; }
.ts-srv-banner.is-empty::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 9px); }
.ts-srv-banner.is-empty b { position: relative; z-index: 1; overflow: hidden; font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.15; letter-spacing: .03em; white-space: nowrap; text-overflow: ellipsis; text-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
.ts-srv-banner.is-empty small { position: relative; z-index: 1; overflow: hidden; color: #ffd36b; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; }
.ts-bn-0 { background: radial-gradient(circle at 88% 15%, rgba(255, 211, 107, .5), transparent 42%), linear-gradient(110deg, #0f2347 0%, #2f5c9e 100%); }
.ts-bn-1 { background: radial-gradient(circle at 88% 15%, rgba(255, 190, 120, .45), transparent 42%), linear-gradient(110deg, #33060f 0%, #a3243b 100%); }
.ts-bn-2 { background: radial-gradient(circle at 88% 15%, rgba(214, 170, 255, .45), transparent 42%), linear-gradient(110deg, #1d0f3d 0%, #6a3fb5 100%); }
.ts-bn-3 { background: radial-gradient(circle at 88% 15%, rgba(140, 240, 230, .4), transparent 42%), linear-gradient(110deg, #052a30 0%, #13808a 100%); }
.ts-bn-4 { background: radial-gradient(circle at 88% 15%, rgba(190, 240, 150, .4), transparent 42%), linear-gradient(110deg, #0b2615 0%, #2f8a4b 100%); }
.ts-bn-5 { background: radial-gradient(circle at 88% 15%, rgba(255, 214, 150, .5), transparent 42%), linear-gradient(110deg, #2a1405 0%, #b0642a 100%); }

/* Name, logo, badges */
.ts-srv-head { grid-area: head; display: flex; gap: 10px; align-items: center; }
.ts-srv-head .ts-logo { width: 40px; height: 40px; font-size: 14px; box-shadow: 0 0 0 2px #e3ecf9; }
.ts-srv-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.ts-srv-title h2 { margin: 0; padding: 0; font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.tsmu-ts .ts-srv-title h2 a { color: var(--ts-navy); text-decoration: none; }
.tsmu-ts .ts-srv-title h2 a:hover { color: var(--ts-sky); text-decoration: underline; }
.ts-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.ts-move,
.ts-badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 800; line-height: 1.6; white-space: nowrap; }
.ts-move { font-variant-numeric: tabular-nums; }
.ts-move.is-up { background: #dcfce7; color: #15803d; }
.ts-move.is-down { background: #fee2e2; color: #b91c1c; }
.ts-badge.is-soon { background: #fff4d6; color: #8a5a00; }
.ts-badge.is-open { background: #dcfce7; color: #166534; }
.ts-badge.is-new { background: #e0edff; color: #1d4ed8; letter-spacing: .04em; text-transform: uppercase; font-size: 10.5px; }

/* Tags and text */
.ts-srv-info { grid-area: info; display: grid; gap: 6px; align-content: start; }
.ts-srv-info .ts-tags { margin-top: 0; }
.ts-srv-desc { display: -webkit-box; margin: 0; overflow: hidden; color: var(--ts-muted); font-size: 13px; overflow-wrap: anywhere; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Vote side */
.ts-srv-side { grid-area: side; display: grid; gap: 7px; align-content: start; padding-left: 14px; border-left: 1px dashed var(--ts-line); text-align: center; }
.ts-srv-side .ts-btn { justify-content: center; }
.ts-vote { padding: 10px 14px; font-size: 15px; }
.ts-votes { margin-top: 3px; line-height: 1.15; }
.ts-votes b { display: block; color: var(--ts-navy); font-size: 22px; font-variant-numeric: tabular-nums; }
.ts-votes span { color: var(--ts-muted); font-size: 12px; }
.ts-total { color: var(--ts-muted); font-size: 12px; }
.ts-stars { display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--ts-muted); font-size: 12px; }
.ts-stars i { font-style: normal; font-weight: 700; }
.ts-stars-bar { position: relative; display: inline-block; font-size: 14px; line-height: 1; letter-spacing: 1px; white-space: nowrap; }
.ts-stars-bar::before { content: "\2605\2605\2605\2605\2605"; color: #d6dee9; }
.ts-stars-bar::after { content: "\2605\2605\2605\2605\2605"; position: absolute; left: 0; top: 0; width: var(--ts-rate, 0%); overflow: hidden; color: #f59e0b; }

/* Page links (same pills as the board lists) */
.tsmu-ts .ts-pages { display: flex; justify-content: center; margin: 4px 0 0; padding: 0; overflow: visible; }
.tsmu-ts .ts-pages .pagelinks { float: none; display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; padding: 0; }
.tsmu-ts .ts-pages .pagelinks .button,
.tsmu-ts .ts-pages .pagelinks .nav_page,
.tsmu-ts .ts-pages .pagelinks .current_page,
.tsmu-ts .ts-pages .pagelinks .expand_pages { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 10px; border: 1px solid #d7e4f3; border-radius: 7px; background: #fff; box-shadow: 0 2px 8px rgba(32, 70, 120, .08); color: #1f4f86; font-size: 12.5px; font-weight: 800; line-height: 1; text-decoration: none; }
.tsmu-ts .ts-pages .pagelinks .nav_page:hover,
.tsmu-ts .ts-pages .pagelinks .button:hover { border-color: #7fb4e8; background: #f4f9ff; }
.tsmu-ts .ts-pages .pagelinks .current_page { border-color: #1f6fb2; background: linear-gradient(135deg, #1f75bd 0%, #2d95da 100%); color: #fff; }
.tsmu-ts .ts-pages .pagelinks .current_page::before,
.tsmu-ts .ts-pages .pagelinks .current_page::after { content: none; }
.tsmu-ts .ts-pages .pagelinks .pages { margin: 0 4px 0 0; color: #60758d; font-size: 12px; font-weight: 800; }
.tsmu-ts .ts-side .ts-list a { color: var(--ts-ink); text-decoration: none; }
.tsmu-ts .ts-side .ts-list a:hover { color: var(--ts-sky); text-decoration: underline; }
.ts-side .ts-list + a { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; }

/* Phones: name on top, banner, tags, then votes and the two buttons */
@media (max-width: 640px) {
	.ts-search .ts-btn { padding: 0 12px; }
	.ts-chips-alt { gap: 6px 10px; }
	.ts-srv { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "rank head" "banner banner" "info info" "side side"; grid-template-rows: none; gap: 10px; padding: 12px; }
	.ts-srv.is-top::before { top: 12px; bottom: auto; height: 40px; }
	.ts-srv-rank { justify-content: center; padding-top: 0; }
	.ts-place { min-width: 34px; height: 34px; font-size: 15px; }
	.ts-srv.is-top .ts-place { width: 36px; min-width: 36px; height: 36px; font-size: 16px; }
	.ts-crown { top: -10px; font-size: 13px; }
	.ts-srv-banner,
	.ts-srv-banner.is-728 { max-width: none; }
	.ts-srv-title h2 { font-size: 16px; }
	.ts-srv-side { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 10px 0 0; border-left: 0; border-top: 1px dashed var(--ts-line); text-align: left; }
	.ts-srv-side::after { content: ""; order: 4; flex-basis: 100%; height: 0; }
	.ts-votes { order: 1; margin: 0; }
	.ts-votes b { display: inline; margin-right: 4px; font-size: 17px; }
	.ts-total { order: 2; }
	.ts-stars { order: 3; }
	.ts-srv-side .ts-vote { order: 5; flex: 1 1 0; margin-top: 4px; }
	.ts-srv-side .ts-details { order: 6; flex: 1 1 0; margin-top: 4px; }
}

/* ==== Phase 4 (2026-12-02): vote page, share buttons, vote rules ==== */
.tsmu-ts > .ts-back { justify-self: start; color: var(--ts-sky); }
.ts-vp { display: grid; gap: 16px; }
@media (min-width: 900px) {
	.ts-vp { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
}
.ts-vp-server,
.ts-vp-box { padding: 18px; border: 1px solid var(--ts-line); border-radius: 14px; background: var(--ts-card); box-shadow: 0 4px 16px rgba(20, 44, 82, .06); }
.ts-vp-server { display: grid; gap: 12px; }
.ts-vp-banner { overflow: hidden; border-radius: 10px; background: #0f2347; aspect-ratio: 468 / 60; }
.ts-vp-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ts-vp-banner.is-empty { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 1px; padding: 0 18px; color: #fff; aspect-ratio: auto; min-height: 76px; }
.ts-vp-banner.is-empty b { font-family: Georgia, "Times New Roman", serif; font-size: 22px; line-height: 1.15; letter-spacing: .03em; text-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
.ts-vp-banner.is-empty small { color: #ffd36b; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ts-vp-head { display: flex; gap: 12px; align-items: center; }
.ts-vp-head h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.15; color: var(--ts-navy); }
.ts-vp-place { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 3px; }
.ts-vp-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ts-vp-figs div { padding: 9px 11px; border: 1px solid #e6edf6; border-radius: 10px; background: #f5f8fc; }
.ts-vp-figs b { display: block; font-size: 20px; line-height: 1.2; color: var(--ts-navy); font-variant-numeric: tabular-nums; }
.ts-vp-figs span { font-size: 12px; color: var(--ts-muted); }
.tsmu-ts .ts-vp-details { justify-self: start; font-weight: 800; font-size: 13px; text-decoration: none; }
.tsmu-ts .ts-vp-details:hover { text-decoration: underline; }
.ts-vp-box h2 { margin: 0 0 8px; font-size: 20px; color: var(--ts-navy); }
.ts-vp-box p { margin: 0 0 10px; }
.ts-vp-form { display: grid; gap: 12px; margin-top: 6px; }
.ts-vp-captcha { min-height: 78px; }
.ts-vp-captcha .verification_control { margin: 0; }
.ts-vp-vote { justify-content: center; padding: 13px 18px; font-size: 16px; }
.ts-vp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.ts-vp-box .ts-code { margin: 6px 0 4px; }
.ts-vp-wait { display: flex; gap: 12px; align-items: center; margin: 8px 0 6px; padding: 12px 14px; border: 1px solid #fde3a7; border-radius: 11px; background: #fffaeb; color: #7a4b00; }
.ts-vp-wait i { font-size: 22px; color: #d97706; }
.ts-vp-wait b { display: block; font-size: 16px; }
.ts-vp-wait span { font-size: 12.5px; }
.ts-vp-done { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 6px 0 4px; }
.ts-vp-done > i { font-size: 46px; color: #16a34a; }
.ts-vp-done h2 { margin: 4px 0 2px; }
.ts-vp-rules { margin: 14px 0 0 !important; padding-top: 10px; border-top: 1px solid var(--ts-line); font-size: 13px; }

.ts-share { padding: 14px 18px 16px; border: 1px solid var(--ts-line); border-radius: 14px; background: linear-gradient(180deg, #f7faff, #fff); }
.ts-share h2 { display: flex; gap: 8px; align-items: center; margin: 0 0 10px; font-size: 15px; color: var(--ts-navy); }
.ts-share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tsmu-ts .ts-share-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border: 0; border-radius: 9px; color: #fff; font: inherit; font-size: 13px; font-weight: 800; line-height: 1.2; text-decoration: none; cursor: pointer; }
.ts-share-btn:hover { filter: brightness(1.08); }
.ts-share-btn:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.ts-share-btn.is-facebook { background: #1877f2; }
.ts-share-btn.is-reddit { background: #ff4500; }
.ts-share-btn.is-x { background: #0f1419; }
.ts-share-btn.is-telegram { background: #229ed9; }
.ts-share-btn.is-vk { background: #0077ff; }
.ts-share-btn.is-discord { background: #5865f2; }
.ts-share-btn.is-done { background: #16a34a; }
.ts-share-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.ts-rules { display: grid; gap: 14px; }
@media (min-width: 900px) {
	.ts-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ts-rules .ts-card p { margin: 0 0 12px; font-size: 13px; }
.ts-checks.is-no li::before { left: 2px; top: 3px; width: 11px; height: 11px; border: 0; transform: none; background: linear-gradient(45deg, transparent 43%, #dc2626 43%, #dc2626 57%, transparent 57%), linear-gradient(-45deg, transparent 43%, #dc2626 43%, #dc2626 57%, transparent 57%); }
@media (max-width: 640px) {
	.ts-vp-server, .ts-vp-box { padding: 14px; }
	.ts-vp-figs b { font-size: 17px; }
	.ts-share-btn span { font-size: 12px; }
}

/* ==========================================================================
   Phase 5: Details page (template_topsites_server)
   ========================================================================== */
.tsmu-ts [hidden] { display: none !important; }
.ts-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ts-btn-green { background: linear-gradient(180deg, #2fc56a, #16a34a); color: #fff !important; box-shadow: 0 2px 10px rgba(22, 163, 74, .28); }
.ts-btn-discord { background: #5865f2; color: #fff !important; box-shadow: 0 2px 10px rgba(88, 101, 242, .28); }
.ts-btn-discord:hover { background: #4752e0; }
.ts-linkbtn { padding: 0; border: 0; background: none; color: #b91c1c; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.ts-linkbtn:hover { text-decoration: underline; }

.ts-dp-ownerbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 9px 14px; border: 1px solid #c7dbf7; border-radius: 10px; background: #eef5ff; color: #1e3a5f; font-size: 13px; }
.ts-dp-ownerbar > span:first-child { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ts-dp-ownerbar i { color: var(--ts-sky); }
.ts-dp-ownerlinks { display: inline-flex; flex-wrap: wrap; gap: 6px 14px; }
.tsmu-ts .ts-dp-ownerlinks a { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; text-decoration: none; }
.tsmu-ts .ts-dp-ownerlinks a:hover { text-decoration: underline; }

/* Header */
.ts-dp-head {
	position: relative;
	overflow: hidden;
	padding: 24px 24px 22px;
	border-radius: 14px;
	color: #fff;
	background: radial-gradient(circle at 92% 0%, rgba(255, 214, 120, .38), transparent 42%), linear-gradient(120deg, #142a4f 0%, #2a5394 60%, #4f86cf 100%);
	box-shadow: 0 8px 26px rgba(20, 44, 82, .18);
}
.ts-dp-head.has-img { background: linear-gradient(90deg, rgba(9, 24, 48, .92) 0%, rgba(9, 24, 48, .7) 55%, rgba(9, 24, 48, .35) 100%), var(--ts-dp-img) center / cover no-repeat; }
.ts-dp-id { display: flex; gap: 18px; align-items: center; }
.ts-dp-logo { width: 84px; height: 84px; font-size: 28px; box-shadow: 0 0 0 4px rgba(255, 255, 255, .22), 0 6px 18px rgba(0, 0, 0, .3); }
.ts-dp-title { display: grid; gap: 8px; }
.ts-dp-title h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(24px, 3.2vw, 36px); line-height: 1.08; letter-spacing: .02em; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); overflow-wrap: anywhere; }
.ts-dp-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; }
.ts-dp-rank { display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); font-weight: 800; }
.ts-dp-rank.is-p1 { background: linear-gradient(180deg, #ffd96b, #f0a91f); border-color: #ffe39a; color: #3a2500; }
.ts-dp-rank.is-p2 { background: linear-gradient(180deg, #f1f5f9, #b8c4d4); border-color: #fff; color: #1e293b; }
.ts-dp-rank.is-p3 { background: linear-gradient(180deg, #f3c08c, #c27a3d); border-color: #f8d6b3; color: #2f1600; }
.ts-dp-rating { display: inline-flex; align-items: center; gap: 6px; }
.ts-dp-rating b { color: #fff; }
.tsmu-ts .ts-dp-rating a { color: #cfe0f7; }
.ts-dp-host { color: #cfe0f7; }
.ts-dp-host i { margin-right: 3px; }
.ts-dp-head .ts-tags span { background: rgba(255, 255, 255, .14); color: #fff; }
.ts-dp-head .ts-stars-bar::before { color: rgba(255, 255, 255, .35); }

/* Banner + buttons */
.ts-dp-banner { justify-self: center; width: 100%; max-width: 600px; overflow: hidden; border-radius: 10px; background: #0f2347; aspect-ratio: 468 / 60; box-shadow: 0 6px 20px rgba(20, 44, 82, .16); }
.ts-dp-banner.is-728 { max-width: 728px; aspect-ratio: 728 / 90; }
.ts-dp-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ts-dp-banner.is-empty { position: relative; max-width: 728px; aspect-ratio: 728 / 90; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 0 22px; color: #fff; }
.ts-dp-banner.is-empty::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 9px); }
.ts-dp-banner.is-empty b { position: relative; z-index: 1; overflow: hidden; font-family: Georgia, "Times New Roman", serif; font-size: clamp(18px, 3vw, 28px); line-height: 1.15; letter-spacing: .03em; white-space: nowrap; text-overflow: ellipsis; text-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
.ts-dp-banner.is-empty small { position: relative; z-index: 1; color: #ffd36b; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-dp-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ts-dp-actions .ts-btn { padding: 12px 20px; font-size: 15px; border-radius: 10px; }

/* Body: tabs + side */
.ts-dp-body { display: grid; gap: 16px; }
@media (min-width: 1000px) {
	.ts-dp-body { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
}
.ts-dp-main { border: 1px solid var(--ts-line); border-radius: 12px; background: var(--ts-card); }
.ts-dp-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--ts-line); scrollbar-width: thin; }
.tsmu-ts .ts-dp-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 3px solid transparent; color: var(--ts-muted); font-weight: 800; font-size: 14px; text-decoration: none; white-space: nowrap; }
.tsmu-ts .ts-dp-tabs a:hover { color: var(--ts-navy); }
.tsmu-ts .ts-dp-tabs a.is-on { border-bottom-color: var(--ts-sky); color: var(--ts-navy); }
.ts-dp-tabs em { padding: 0 7px; border-radius: 999px; background: #eef3fa; color: #36506f; font-style: normal; font-size: 11.5px; }
.ts-dp-panel { padding: 16px 18px 18px; }
.ts-dp-panel + .ts-dp-panel { border-top: 1px solid var(--ts-line); }
.is-tabbed .ts-dp-panel + .ts-dp-panel { border-top: 0; }
.ts-dp-panel-title { margin: 0 0 12px; font-size: 17px; color: var(--ts-navy); }
.is-tabbed .ts-dp-panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ts-dp-lead { margin: 0 0 12px; font-size: 15.5px; font-weight: 600; color: var(--ts-ink); }
.ts-dp-text { max-width: 78ch; overflow-wrap: anywhere; }
.ts-dp-text p { margin: 0 0 10px; }
.ts-dp-video { position: relative; margin: 14px 0 4px; max-width: 760px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: #0b1220; }
.ts-dp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ts-dp-strip,
.ts-dp-gallery { display: grid; gap: 8px; margin-top: 14px; }
.ts-dp-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ts-dp-gallery { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-top: 0; }
.ts-dp-strip a,
.ts-dp-gallery a { display: block; overflow: hidden; border-radius: 8px; background: #e9eff7; aspect-ratio: 16 / 9; }
.ts-dp-strip img,
.ts-dp-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.ts-dp-strip a:hover img,
.ts-dp-gallery a:hover img { transform: scale(1.04); }

/* Statistics */
.ts-dp-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.ts-dp-tiles div { padding: 10px 12px; border: 1px solid var(--ts-line); border-radius: 10px; background: #f8fbff; }
.ts-dp-tiles b { display: block; font-size: 20px; line-height: 1.2; color: var(--ts-navy); font-variant-numeric: tabular-nums; }
.ts-dp-tiles span { color: var(--ts-muted); font-size: 12px; }
.ts-dp-chart { margin-top: 18px; }
.ts-dp-chart-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.ts-dp-chart-head h3 { margin: 0; font-size: 14px; color: var(--ts-ink); }
.ts-dp-chart-head span { color: var(--ts-muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ts-dp-chart-empty { margin: 6px 0 0; }
.ts-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0 2px; color: var(--ts-muted); font-size: 12px; }
.ts-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ts-legend i { width: 10px; height: 10px; border-radius: 3px; }
.ts-legend i.is-a { background: #2563c9; }
.ts-legend i.is-b { background: #e0a21b; }
.ts-chart-wrap { position: relative; margin-top: 8px; padding-left: 36px; }
.ts-chart-plot { position: relative; height: 150px; }
.ts-chart { display: block; width: 100%; height: 100%; overflow: visible; }
.ts-chart-grid { stroke: #e6edf5; stroke-width: 1; }
.ts-chart-grid.is-base { stroke: #b8c6d8; }
.ts-chart-a { fill: #2563c9; }
.ts-chart-b { fill: #e0a21b; }
.ts-chart-c { fill: #16a34a; }
.ts-chart-hit { fill: transparent; cursor: default; }
.ts-chart-hit:hover { fill: rgba(37, 99, 201, .07); }
.ts-chart-y { position: absolute; left: -36px; width: 30px; transform: translateY(-50%); color: #64748b; font-size: 11px; text-align: right; font-variant-numeric: tabular-nums; line-height: 1; }
.ts-chart-xs { position: relative; height: 18px; margin-top: 4px; }
.ts-chart-xs span { position: absolute; top: 0; transform: translateX(-50%); color: #64748b; font-size: 11px; white-space: nowrap; }
.ts-chart-xs span.is-last { transform: translateX(-90%); }
.ts-chart-tip { position: absolute; z-index: 5; padding: 5px 9px; border-radius: 7px; background: #0f2347; color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; pointer-events: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.ts-dp-table { margin-top: 16px; }
.ts-dp-table summary { cursor: pointer; color: var(--ts-sky); font-weight: 700; font-size: 13px; }
.ts-dp-table-wrap { max-height: 320px; margin-top: 8px; overflow: auto; border: 1px solid var(--ts-line); border-radius: 8px; }
.ts-dp-table table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ts-dp-table th,
.ts-dp-table td { padding: 5px 10px; border-bottom: 1px solid #eef2f7; text-align: right; }
.ts-dp-table th:first-child { text-align: left; }
.ts-dp-table thead th { position: sticky; top: 0; background: #f3f7fc; color: var(--ts-navy); }

/* Side: server info, Hall of Fame, report */
.ts-dp-side { display: grid; gap: 14px; align-content: start; }
.ts-dp-info { display: grid; margin: 0; }
.ts-dp-info div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid #eef2f7; font-size: 13px; }
.ts-dp-info div:last-child { border-bottom: 0; }
.ts-dp-info dt { color: var(--ts-muted); }
.ts-dp-info dd { margin: 0; text-align: right; font-weight: 700; color: var(--ts-ink); overflow-wrap: anywhere; }
.ts-dp-info .is-hl dd { color: var(--ts-navy); font-size: 14px; }
.ts-dp-months { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.ts-dp-months small { color: var(--ts-muted); }
.ts-dp-mpos { display: inline-block; min-width: 30px; padding: 1px 6px; border-radius: 6px; background: #eef3fa; text-align: center; font-weight: 800; }
.ts-dp-mpos.is-p1 { background: #ffe9a8; color: #6b4300; }
.ts-dp-mpos.is-p2 { background: #e5eaf1; color: #334155; }
.ts-dp-mpos.is-p3 { background: #f6d8bb; color: #6b3410; }
.ts-dp-report { padding: 10px 12px; border: 1px solid var(--ts-line); border-radius: 10px; background: var(--ts-card); font-size: 13px; }
.ts-dp-report summary { cursor: pointer; color: var(--ts-muted); font-weight: 700; }
.ts-dp-report summary i { color: #b91c1c; margin-right: 4px; }
.ts-dp-report form { display: grid; gap: 6px; margin-top: 10px; }
.ts-dp-report label { font-weight: 700; }
.ts-dp-report select,
.ts-dp-report input[type="text"] { width: 100%; max-width: none; padding: 7px 9px; border: 1px solid #cdd8e6; border-radius: 8px; background: #fff; font: inherit; font-size: 13px; }
.ts-dp-report .ts-btn { justify-self: start; margin-top: 4px; }
.ts-dp-report p { margin: 8px 0 0; }

/* Reviews */
.ts-rv-summary { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--ts-line); }
.ts-rv-score { display: grid; justify-items: center; gap: 2px; min-width: 110px; }
.ts-rv-score b { font-size: 38px; line-height: 1; color: var(--ts-navy); font-variant-numeric: tabular-nums; }
.ts-rv-score > span:last-child { color: var(--ts-muted); font-size: 12.5px; }
.ts-stars.is-big .ts-stars-bar { font-size: 20px; }
.ts-rv-spread { display: grid; gap: 4px; flex: 1 1 220px; max-width: 360px; font-size: 12.5px; }
.ts-rv-spread div { display: grid; grid-template-columns: 34px minmax(0, 1fr) 30px; align-items: center; gap: 8px; }
.ts-rv-spread div span:first-child { color: var(--ts-muted); white-space: nowrap; }
.ts-rv-spread div span:first-child i { color: #f59e0b; font-size: 10px; }
.ts-rv-spread div span:last-child { color: var(--ts-muted); text-align: right; font-variant-numeric: tabular-nums; }
.ts-rv-bar { height: 8px; overflow: hidden; border-radius: 99px; background: #eef2f7; }
.ts-rv-bar i { display: block; height: 100%; border-radius: 99px; background: #f59e0b; }
.ts-rv-write { margin-top: 14px; padding: 12px 14px; border: 1px solid #c7dbf7; border-radius: 10px; background: #f5f9ff; }
.ts-rv-write summary { cursor: pointer; color: var(--ts-navy); font-weight: 800; }
.ts-rv-write form { display: grid; gap: 8px; margin-top: 10px; }
.ts-rate-input { margin: 0; padding: 0; border: 0; }
.ts-rate-input legend { padding: 0; font-weight: 700; font-size: 13px; }
.ts-rate-row { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.ts-rate-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ts-rate-row label { padding: 2px; color: #cbd5e1; font-size: 26px; line-height: 1; cursor: pointer; transition: color .1s ease, transform .1s ease; }
.ts-rate-row input:checked ~ label { color: #f59e0b; }
.ts-rate-row:hover label { color: #cbd5e1; }
.ts-rate-row label:hover,
.ts-rate-row label:hover ~ label { color: #f59e0b; }
.ts-rate-row label:hover { transform: scale(1.12); }
.ts-rate-row input:focus-visible + label { outline: 3px solid #93c5fd; outline-offset: 1px; border-radius: 6px; }
.ts-rv-label { font-weight: 700; font-size: 13px; }
.ts-rv-label small { font-weight: 400; color: var(--ts-muted); }
.ts-rv-write textarea,
.ts-rv-answer textarea { width: 100%; max-width: none; padding: 8px 10px; border: 1px solid #cdd8e6; border-radius: 8px; background: #fff; color: var(--ts-ink); font: inherit; font-size: 14px; line-height: 1.45; resize: vertical; }
.ts-rv-write textarea:focus,
.ts-rv-answer textarea:focus { border-color: var(--ts-sky); box-shadow: 0 0 0 3px rgba(37, 99, 201, .15); outline: none; }
.ts-rv-formfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ts-rv-formfoot .ts-btn { cursor: pointer; border: 0; }
.ts-rv-note { display: flex; gap: 8px; align-items: baseline; margin: 14px 0 0; padding: 9px 12px; border-radius: 9px; background: #f3f7fc; color: #36506f; font-size: 13px; }
.ts-rv-note i { color: var(--ts-sky); }
.ts-rv-empty { margin: 14px 0 0; }
.ts-rv-list { display: grid; margin: 6px 0 0; padding: 0; list-style: none; }
.ts-rv { padding: 14px 0; border-bottom: 1px solid #eef2f7; }
.ts-rv:last-child { border-bottom: 0; }
.ts-rv.is-mine { margin: 0 -10px; padding: 14px 10px; border-radius: 10px; background: #fffbeb; }
.ts-rv-head { display: flex; gap: 10px; align-items: center; }
.ts-rv-avatar { width: 36px; height: 36px; font-size: 13px; box-shadow: 0 0 0 2px #e3ecf9; }
.tsmu-ts .ts-rv-name { font-weight: 800; color: var(--ts-navy); text-decoration: none; }
.tsmu-ts .ts-rv-name:hover { text-decoration: underline; }
.ts-rv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--ts-muted); font-size: 12px; }
.ts-rv-body { margin-top: 8px; overflow-wrap: anywhere; }
.ts-rv-body p { margin: 0 0 6px; }
.ts-rv-reply { margin: 8px 0 0 18px; padding: 8px 12px; border-left: 3px solid var(--ts-sky); border-radius: 0 8px 8px 0; background: #f5f9ff; font-size: 13px; overflow-wrap: anywhere; }
.ts-rv-reply b { color: var(--ts-navy); }
.ts-rv-reply p { margin: 4px 0 0; }
.ts-rv-tools { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 16px; margin-top: 8px; font-size: 12.5px; }
.ts-rv-answer summary { cursor: pointer; color: var(--ts-sky); font-weight: 700; }
.ts-rv-answer form { display: grid; gap: 6px; margin-top: 6px; min-width: min(480px, 80vw); }
.ts-rv-answer .ts-btn { justify-self: start; }
.ts-rv-delete { margin: 0; }

/* Picture viewer */
.ts-dp-viewer { width: min(96vw, 1200px); max-width: none; max-height: 94vh; padding: 0; border: 0; border-radius: 12px; background: #0b1220; color: #fff; overflow: hidden; }
.ts-dp-viewer::backdrop { background: rgba(5, 12, 26, .82); }
.ts-dp-viewer img { display: block; width: 100%; max-height: 90vh; object-fit: contain; }
.ts-dp-viewer button { position: absolute; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(15, 35, 71, .75); color: #fff; font-size: 18px; cursor: pointer; }
.ts-dp-viewer button:hover { background: rgba(37, 99, 201, .9); }
.ts-dp-viewer-close { top: 10px; right: 10px; }
.ts-dp-viewer-nav.is-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.ts-dp-viewer-nav.is-next { right: 10px; top: 50%; transform: translateY(-50%); }
.ts-dp-viewer-count { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); padding: 2px 10px; border-radius: 999px; background: rgba(15, 35, 71, .75); font-size: 12px; font-weight: 700; }

@media (max-width: 640px) {
	.ts-dp-head { padding: 18px 16px; }
	.ts-dp-id { align-items: flex-start; gap: 12px; }
	.ts-dp-logo { width: 58px; height: 58px; font-size: 20px; }
	.ts-dp-actions { display: grid; grid-template-columns: 1fr 1fr; }
	.ts-dp-actions .ts-btn { justify-content: center; padding: 11px 10px; font-size: 14px; white-space: normal; text-align: center; }
	.ts-dp-actions .ts-dp-vote { grid-column: 1 / -1; }
	.ts-dp-panel { padding: 14px 12px 16px; }
	.tsmu-ts .ts-dp-tabs a { padding: 11px 12px; font-size: 13.5px; }
	.ts-dp-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ts-chart-plot { height: 120px; }
	.ts-rv-reply { margin-left: 0; }
	.ts-rv-answer form { min-width: 0; }
}

/* ==========================================================================
   Phase 6: Opening soon (sa=launches), Notify me, Hall of Fame (sa=fame)
   ========================================================================== */

/* Heroes of the two pages (colours without the picture; the Phase 7 block at the end adds the Grok pictures) */
.ts-hero-launch { background-image: linear-gradient(90deg, rgba(9, 24, 48, .92) 0%, rgba(9, 24, 48, .64) 58%, rgba(9, 24, 48, .25) 100%), var(--ts-hero-img, linear-gradient(160deg, #1e4f8f 0%, #3b82c4 45%, #5cc7b5 100%)); }
.ts-hero-fame { background-image: linear-gradient(90deg, rgba(24, 14, 2, .9) 0%, rgba(30, 20, 4, .62) 58%, rgba(30, 20, 4, .2) 100%), var(--ts-hero-img, linear-gradient(160deg, #6b3f06 0%, #c98a1b 50%, #ffd977 100%)); }
.ts-hero-fame::after { background: radial-gradient(circle at 86% 18%, rgba(255, 236, 170, .5), transparent 45%); }

/* Notify me */
.ts-notify { margin: 0; }
.ts-btn-bell { height: auto; border: 1px solid #f1c35a; background: #fffaf0; color: #7a4b00 !important; cursor: pointer; font-family: inherit; }
.ts-btn-bell:hover { background: #fff1d0; }
.ts-btn-bell.is-on { border-color: #16a34a; background: #ecfdf3; color: #166534 !important; }
.ts-btn-bell.is-on:hover { background: #dcfce7; }
.ts-btn-bell.is-own { cursor: default; border-color: #cdd8e6; background: #f5f8fc; color: var(--ts-muted) !important; }
.ts-btn-bell.is-own:hover { transform: none; }

/* Countdowns */
.ts-countdown { display: grid; line-height: 1.2; }
.ts-countdown .ts-cd-label { font-size: 11px; font-weight: 700; color: var(--ts-muted); text-transform: uppercase; letter-spacing: .06em; }
.ts-countdown b { font-size: 15px; color: #8a5a00; font-variant-numeric: tabular-nums; }
.ts-countdown.is-open b { color: #166534; }
.ts-dp-count b { font-weight: 800; font-variant-numeric: tabular-nums; }

/* Calendar */
.ts-cal { padding: 14px; border: 1px solid var(--ts-line); border-radius: 12px; background: var(--ts-card); }
.ts-cal-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin-bottom: 10px; }
.ts-cal-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 17px; color: var(--ts-navy); }
.ts-cal-head h2 i { color: var(--ts-sky); }
.ts-cal-head span { color: var(--ts-muted); font-size: 12.5px; }
.ts-cal-wd,
.ts-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.ts-cal-wd span { padding: 0 6px 4px; font-size: 11.5px; font-weight: 800; color: var(--ts-muted); text-transform: uppercase; letter-spacing: .05em; }
.ts-cal-grid { list-style: none; margin: 0; padding: 0; }
.ts-cal-day { position: relative; display: flex; flex-direction: column; gap: 3px; min-height: 74px; padding: 5px 6px 6px; border: 1px solid #e6edf6; border-radius: 8px; background: #fbfdff; }
.ts-cal-day.is-past { background: #f6f8fb; }
.ts-cal-day.is-past .ts-cal-num { color: #9aa8bb; }
.ts-cal-day.is-today { border-color: var(--ts-sky); box-shadow: inset 0 0 0 1px var(--ts-sky); background: #f2f7ff; }
.ts-cal-day.is-today .ts-cal-num { color: var(--ts-sky); }
.ts-cal-day.has-open { background: #fffaf0; border-color: #f3d48a; }
.ts-cal-day.has-open.is-today { border-color: var(--ts-sky); }
.ts-cal-num { font-size: 13px; font-weight: 800; color: var(--ts-ink); line-height: 1.2; }
.ts-cal-num small { font-size: 10.5px; font-weight: 800; color: var(--ts-muted); text-transform: uppercase; }
.ts-cal-chip { display: block; overflow: hidden; padding: 2px 6px; border-radius: 5px; background: linear-gradient(180deg, #ffd36b, #f5b02e); color: var(--ts-gold-ink) !important; font-size: 11px; font-weight: 800; line-height: 1.35; text-decoration: none !important; text-overflow: ellipsis; white-space: nowrap; }
.ts-cal-chip:hover { filter: brightness(1.05); }
.ts-cal-chip.is-opened { background: #dcfce7; color: #166534 !important; }
.ts-cal-more { font-size: 11px; font-weight: 700; }
.ts-cal-dot { display: none; }
.ts-cal-foot { margin: 10px 0 0; color: var(--ts-muted); font-size: 12.5px; }

/* The list, one group per day */
.ts-lgroup { display: grid; gap: 8px; }
.ts-lday { display: flex; align-items: baseline; gap: 8px; margin: 6px 2px 0; font-size: 16px; color: var(--ts-navy); }
.ts-lday small { color: var(--ts-muted); font-size: 12.5px; font-weight: 700; }
.ts-launch { display: grid; grid-template-columns: 118px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--ts-line); border-left: 4px solid #f5b02e; border-radius: 12px; background: var(--ts-card); scroll-margin-top: 80px; }
.ts-launch:target { box-shadow: 0 0 0 3px #bfd6fb; }
.ts-launch.is-opened { border-left-color: #16a34a; }
.ts-launch-when { display: grid; gap: 4px; }
.ts-launch-when > b { font-size: 22px; line-height: 1; color: var(--ts-navy); font-variant-numeric: tabular-nums; }
.ts-launch-ago { font-size: 12px; font-weight: 700; color: #166534; }
.ts-launch-main { display: grid; gap: 6px; }
.ts-launch-head { display: flex; gap: 10px; align-items: center; }
.ts-launch-head .ts-logo { width: 40px; height: 40px; font-size: 14px; box-shadow: 0 0 0 2px #e3ecf9; }
.ts-launch-title h3 { margin: 0; font-size: 15.5px; line-height: 1.25; }
.ts-launch-title h3 a { color: var(--ts-navy); text-decoration: none; }
.ts-launch-title h3 a:hover { color: var(--ts-sky); text-decoration: underline; }
.ts-launch-side { display: grid; gap: 6px; justify-items: stretch; min-width: 132px; }
.ts-launch-side .ts-btn { justify-content: center; }
.ts-launch-side .ts-notify .ts-btn { width: 100%; }
.ts-launch-wait { font-size: 12px; color: var(--ts-muted); text-align: center; }

/* Details page: Notify me among the big buttons */
.ts-dp-actions .ts-notify { display: flex; }
.ts-dp-actions .ts-notify .ts-btn { flex: 1 1 auto; justify-content: center; }

/* Hall of Fame: the month that runs now */
.ts-race { padding: 14px; border: 1px solid #f0d9a3; border-radius: 12px; background: linear-gradient(180deg, #fffaf0, #fff); }
.ts-race-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin-bottom: 8px; }
.ts-race-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; color: #6b3f06; }
.ts-race-head span { color: var(--ts-muted); font-size: 12.5px; }
.ts-race-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ts-race-list li { display: flex; align-items: center; gap: 6px; padding: 6px 0; border-bottom: 1px solid #f3e7cc; font-size: 14px; }
.ts-race-list li:last-child { border-bottom: 0; }
.ts-race-list a { flex: 1 1 auto; font-weight: 700; color: var(--ts-navy); overflow-wrap: anywhere; }
.ts-race-list b { white-space: nowrap; font-size: 13px; color: #6b3f06; font-variant-numeric: tabular-nums; }

/* Hall of Fame: one closed month */
.ts-fame-month { padding: 14px; border: 1px solid var(--ts-line); border-radius: 12px; background: var(--ts-card); scroll-margin-top: 80px; }
.ts-fame-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin-bottom: 12px; }
.ts-fame-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 20px; color: var(--ts-navy); }
.ts-fame-head h2 i { color: #e0a21b; }
.ts-fame-head span { color: var(--ts-muted); font-size: 12.5px; }
.ts-podium { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ts-pod { position: relative; display: grid; justify-items: center; align-content: start; gap: 4px; padding: 16px 12px 14px; border-radius: 12px; text-align: center; border: 1px solid; }
.ts-pod.is-p1 { background: linear-gradient(180deg, #fff6d8, #fff); border-color: #f2cf6b; }
.ts-pod.is-p2 { background: linear-gradient(180deg, #f2f5f9, #fff); border-color: #c8d2df; }
.ts-pod.is-p3 { background: linear-gradient(180deg, #fbeee4, #fff); border-color: #e7b890; }
.ts-pod-medal { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 15px; font-weight: 800; }
.ts-pod.is-p1 .ts-pod-medal { background: linear-gradient(160deg, #ffe28a, #f5a623); color: #3b2a00; box-shadow: 0 3px 12px rgba(245, 166, 35, .45); }
.ts-pod.is-p2 .ts-pod-medal { background: linear-gradient(160deg, #f4f7fb, #a9b6c8); color: #25313f; }
.ts-pod.is-p3 .ts-pod-medal { background: linear-gradient(160deg, #f6c39b, #c26b2f); color: #3a1b05; }
.ts-pod-title { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ts-muted); }
.ts-pod .ts-logo { width: 52px; height: 52px; margin: 4px 0 2px; }
.ts-pod-name { font-size: 15px; line-height: 1.25; color: var(--ts-navy); overflow-wrap: anywhere; }
.ts-pod-name a { color: var(--ts-navy); }
.ts-pod-votes { font-size: 12.5px; color: var(--ts-muted); font-variant-numeric: tabular-nums; }
.ts-fame-more { margin-top: 10px; }
.ts-fame-more summary { cursor: pointer; font-weight: 700; color: var(--ts-sky); font-size: 13px; }
.ts-fame-list { margin: 8px 0 0; padding-left: 26px; display: grid; gap: 2px; font-size: 13px; }
.ts-fame-list li { padding: 3px 0; border-bottom: 1px solid #eef2f7; }
.ts-fame-list li::marker { color: var(--ts-muted); font-weight: 700; }
.ts-fame-list li b { float: right; font-variant-numeric: tabular-nums; }
.ts-fame-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ts-fame-table th,
.ts-fame-table td { padding: 5px 4px; border-bottom: 1px solid #eef2f7; text-align: left; }
.ts-fame-table thead th { font-size: 11px; color: var(--ts-muted); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.ts-fame-table thead th + th { text-align: center; }
.ts-fame-table td { text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.ts-fame-table tbody th { font-weight: 700; overflow-wrap: anywhere; }

@media (min-width: 700px) {
	.ts-podium { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
	.ts-pod.is-p1 { order: 2; padding-top: 26px; padding-bottom: 22px; }
	.ts-pod.is-p2 { order: 1; }
	.ts-pod.is-p3 { order: 3; }
}

@media (max-width: 699px) {
	.ts-pod { grid-template-columns: auto auto minmax(0, 1fr); grid-template-areas: "medal logo title" "medal logo name" "medal logo votes"; justify-items: start; align-items: center; gap: 0 10px; padding: 10px 12px; text-align: left; }
	.ts-pod-medal { grid-area: medal; }
	.ts-pod .ts-logo { grid-area: logo; width: 42px; height: 42px; margin: 0; }
	.ts-pod-title { grid-area: title; }
	.ts-pod-name { grid-area: name; }
	.ts-pod-votes { grid-area: votes; }
}

@media (max-width: 760px) {
	.ts-launch { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.ts-launch-when { grid-auto-flow: column; justify-content: space-between; align-items: center; }
	.ts-launch-when .ts-countdown { text-align: right; }
	.ts-launch-side { grid-template-columns: 1fr 1fr; min-width: 0; }
	.ts-launch-wait { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	.ts-cal { padding: 12px 10px; }
	.ts-cal-wd,
	.ts-cal-grid { gap: 3px; }
	.ts-cal-wd span { padding: 0 0 3px; text-align: center; font-size: 10.5px; }
	.ts-cal-day { min-height: 46px; align-items: center; padding: 4px 2px; }
	.ts-cal-num { font-size: 12.5px; text-align: center; }
	.ts-cal-num small { display: none; }
	.ts-cal-chip,
	.ts-cal-more { display: none; }
	.ts-cal-dot { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; background: #f5b02e; color: var(--ts-gold-ink) !important; font-size: 11.5px; font-weight: 800; text-decoration: none !important; }
}

/* ==========================================================================
   Phase 7: the Grok pictures (images/topsites). A changed picture gets a NEW file name: Cloudflare keeps
   pictures 7 days. Each rule has a jpg line first, then the webp line through image-set(); a browser that does
   not know image-set() drops that line and keeps the jpg.
   ========================================================================== */

/* Heroes: ranking, opening soon, Hall of Fame (desktop 1600x640, phone 800x600) */
.ts-hero-rank,
.ts-hero-launch,
.ts-hero-fame { background-color: #12264a; background-size: cover; background-repeat: no-repeat; }
.ts-hero-rank {
	background-position: 72% 26%;
	background-image: linear-gradient(90deg, rgba(9, 24, 48, .94) 0%, rgba(9, 24, 48, .7) 50%, rgba(9, 24, 48, .1) 100%), url("../images/topsites/hero-rank-v1.jpg");
	background-image: linear-gradient(90deg, rgba(9, 24, 48, .94) 0%, rgba(9, 24, 48, .7) 50%, rgba(9, 24, 48, .1) 100%), image-set(url("../images/topsites/hero-rank-v1.webp") type("image/webp"), url("../images/topsites/hero-rank-v1.jpg") type("image/jpeg"));
}
.ts-hero-launch {
	background-position: 70% 30%;
	background-image: linear-gradient(90deg, rgba(9, 24, 48, .94) 0%, rgba(9, 24, 48, .72) 52%, rgba(9, 24, 48, .12) 100%), url("../images/topsites/hero-launch-v1.jpg");
	background-image: linear-gradient(90deg, rgba(9, 24, 48, .94) 0%, rgba(9, 24, 48, .72) 52%, rgba(9, 24, 48, .12) 100%), image-set(url("../images/topsites/hero-launch-v1.webp") type("image/webp"), url("../images/topsites/hero-launch-v1.jpg") type("image/jpeg"));
}
.ts-hero-fame {
	background-color: #1e1404;
	background-position: 70% 40%;
	background-image: linear-gradient(90deg, rgba(20, 12, 2, .94) 0%, rgba(26, 17, 3, .68) 52%, rgba(26, 17, 3, .08) 100%), url("../images/topsites/hero-fame-v1.jpg");
	background-image: linear-gradient(90deg, rgba(20, 12, 2, .94) 0%, rgba(26, 17, 3, .68) 52%, rgba(26, 17, 3, .08) 100%), image-set(url("../images/topsites/hero-fame-v1.webp") type("image/webp"), url("../images/topsites/hero-fame-v1.jpg") type("image/jpeg"));
}
.ts-hero-rank::after,
.ts-hero-launch::after,
.ts-hero-fame::after { opacity: .35; }
@media (max-width: 640px) {
	.ts-hero-rank {
		background-position: 60% 30%;
		background-image: linear-gradient(180deg, rgba(9, 24, 48, .84) 0%, rgba(9, 24, 48, .68) 50%, rgba(9, 24, 48, .5) 100%), url("../images/topsites/hero-rank-m-v1.jpg");
		background-image: linear-gradient(180deg, rgba(9, 24, 48, .84) 0%, rgba(9, 24, 48, .68) 50%, rgba(9, 24, 48, .5) 100%), image-set(url("../images/topsites/hero-rank-m-v1.webp") type("image/webp"), url("../images/topsites/hero-rank-m-v1.jpg") type("image/jpeg"));
	}
	.ts-hero-launch {
		background-position: 60% 30%;
		background-image: linear-gradient(180deg, rgba(9, 24, 48, .84) 0%, rgba(9, 24, 48, .68) 50%, rgba(9, 24, 48, .5) 100%), url("../images/topsites/hero-launch-m-v1.jpg");
		background-image: linear-gradient(180deg, rgba(9, 24, 48, .84) 0%, rgba(9, 24, 48, .68) 50%, rgba(9, 24, 48, .5) 100%), image-set(url("../images/topsites/hero-launch-m-v1.webp") type("image/webp"), url("../images/topsites/hero-launch-m-v1.jpg") type("image/jpeg"));
	}
	.ts-hero-fame {
		background-position: 55% 35%;
		background-image: linear-gradient(180deg, rgba(20, 12, 2, .84) 0%, rgba(20, 12, 2, .66) 50%, rgba(20, 12, 2, .45) 100%), url("../images/topsites/hero-fame-m-v1.jpg");
		background-image: linear-gradient(180deg, rgba(20, 12, 2, .84) 0%, rgba(20, 12, 2, .66) 50%, rgba(20, 12, 2, .45) 100%), image-set(url("../images/topsites/hero-fame-m-v1.webp") type("image/webp"), url("../images/topsites/hero-fame-m-v1.jpg") type("image/jpeg"));
	}
}

/* Servers without a banner: the navy mist with the gold wave over their colour (ts-bn-0..5) */
.ts-srv-banner.is-empty::before,
.ts-vp-banner.is-empty::before,
.ts-dp-banner.is-empty::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: url("../images/topsites/banner-bg-v1.jpg") center / cover no-repeat;
	background-image: image-set(url("../images/topsites/banner-bg-v1.webp") type("image/webp"), url("../images/topsites/banner-bg-v1.jpg") type("image/jpeg"));
	mix-blend-mode: screen;
	opacity: .75;
}
.ts-vp-banner.is-empty b,
.ts-vp-banner.is-empty small { position: relative; z-index: 1; }

/* The round picture of the empty boxes */
.ts-empty-art {
	background-image: url("../images/topsites/empty-art-v1.jpg"), radial-gradient(circle at 30% 25%, #5b8ad1, #23406e 70%);
	background-image: image-set(url("../images/topsites/empty-art-v1.webp") type("image/webp"), url("../images/topsites/empty-art-v1.jpg") type("image/jpeg")), radial-gradient(circle at 30% 25%, #5b8ad1, #23406e 70%);
	background-size: cover;
	background-position: center;
	text-shadow: 0 2px 12px rgba(0, 0, 0, .75);
}

/* Owner 2026-12-03 ("era incadrat frumos in chenar"): the test pages had a plain light background, but on the live
   forum the Top Sites pages sat straight on the big background picture. Every Top Sites page now sits in its own
   light panel, like the test page and the forum's own boxes. The title banner is hidden on Top Sites
   (Steyle_V2/index.template.php, $tsmu_hide_header). */
.tsmu-ts {
	padding: 18px;
	border: 1px solid #c4d4e8;
	border-radius: 16px;
	background: #e6eef8;
	box-shadow: 0 0 0 4px rgba(255, 255, 255, .55), 0 14px 40px rgba(16, 38, 74, .26);
}
/* Server page: the dark header, the big banner and the buttons are one white card. */
.ts-dp-top {
	display: grid;
	gap: 16px;
	padding: 0 0 18px;
	overflow: hidden;
	border: 1px solid #cfdcec;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 6px 22px rgba(20, 44, 82, .12);
}
.ts-dp-top .ts-dp-head { border-radius: 0; box-shadow: none; }
.ts-dp-top .ts-dp-banner { width: calc(100% - 36px); }
.ts-dp-top .ts-dp-actions { padding: 0 18px; }
@media (max-width: 640px) {
	.tsmu-ts { padding: 10px; border-radius: 12px; }
	.ts-dp-top { gap: 12px; padding-bottom: 12px; border-radius: 12px; }
	.ts-dp-top .ts-dp-banner { width: calc(100% - 24px); }
	.ts-dp-top .ts-dp-actions { padding: 0 12px; }
}
