Jump to content

MediaWiki:Common.css: Difference between revisions

From Fedoverse Wiki, the free encyclopedia
No edit summary
No edit summary
Line 1,680: Line 1,680:
     }
     }


}
@media (prefers-color-scheme: dark) {
    :root {
        --studio-text: #e6e6e6;
    }
}
}

Revision as of 09:19, 3 December 2026

/* CSS placed here will be applied to all skins */



/* Load Geist from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@100..900&display=swap');

/* Set Geist as the default wiki font */
body,
#content,
.mw-body,
.mw-body-content,
.mw-page-container,
button,
input,
select,
textarea {
    font-family: "Geist", sans-serif;
}


html,
body,
#content,
.mw-page-container,
.mw-body,
.mw-body-content,
.vector-body,
.vector-toc,
.vector-toc *,
.infobox,
.portable-infobox,
.cdx-search-input,
.cdx-text-input__input,
.cdx-menu,
.cdx-menu-item,
.mw-heading,
.mw-body :is(h2, h3, h4, h5, h6),
.mw-body-content :is(h2, h3, h4, h5, h6),
button,
input,
select,
textarea {
    font-family: var(--fedo-font) !important;
}

/* Page title keeps the classic serif look */
h1.firstHeading,
.mw-first-heading {
    font-family: 'Times New Roman', Times, 'Liberation Serif', serif !important;
}

/* =====================================================================
   1. UI CLEANUP & READ-ONLY HIDING
   ===================================================================== */

/* Unify background & fix viewport height */
html,
body,
.mw-page-container,
.mw-header,
.mw-content-container {
    background-color: #ffffff !important;
}

html,
body {
    min-height: 100% !important;
}

.mw-page-container {
    min-height: 100vh !important;
    box-sizing: border-box !important;
    border: none !important;
    box-shadow: none !important;
}

/* Footers: privacy, disclaimers, powered by */
#footer-places,
#footer-icons,
.mw-footer-container {
    display: none !important;
}

/* Sidebar & navigation controls */
#mw-sidebar-button,
#vector-main-menu-dropdown {
    display: none !important;
}

/* User account / log in links */
#p-personal,
#pt-login,
#pt-login-2,
#p-vector-user-menu-overflow,
.vector-user-links,
.user-links-collapsible-item {
    display: none !important;
}

/* Page tabs & toolbars (namespaces, views, actions) */
.vector-page-toolbar,
.mw-article-toolbar,
#p-namespaces,
#p-views,
#p-cactions,
#vector-page-tools-dropdown {
    display: none !important;
}

/* Spacing left behind by removed tabs */
.mw-body-header {
    border-bottom: none !important;
    margin-bottom: 0 !important;
}

/* Watch page elements (forms & VisualEditor) */
#wpWatchthis,
.page-mw-watchthis,
.mw-editWatchlist,
.mw-widget-checkDef-watchthis,
label[for="wpWatchthis"],
.oo-ui-fieldLayout:has(#wpWatchthis),
.oo-ui-fieldLayout:has([name="wpWatchthis"]) {
    display: none !important;
}

/* Right sidebar / column tools / appearance column */
.vector-column-end,
.no-font-mode-scale.vector-column-end {
    display: none !important;
}

/* Category links */
#catlinks {
    display: none;
}

/* Hide the 'home' page from the search suggestions dropdown */
li.cdx-menu-item[title="home"] {
    display: none !important;
}

/* =====================================================================
   2. HEADER ALIGNMENT & INSTANT SEARCH POSITIONING
   ===================================================================== */

/* Remove gap between header items */
.mw-header .vector-header-start {
    gap: 0 !important;
}

/* Eliminate search shift, margin delays and animation latency */
#p-search,
.vector-search-box,
.vector-typeahead-search-container,
.cdx-typeahead-search,
.vector-typeahead-search {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    transition: none !important;
}

.cdx-typeahead-search__input-wrapper,
.cdx-search-input {
    margin-left: 0 !important;
    transition: none !important;
}

/* =====================================================================
   3. TABLE OF CONTENTS
   ===================================================================== */

#vector-toc,
.vector-toc {
    margin-top: 0 !important;
}

ul#mw-panel-toc-list.vector-toc-contents {
    margin-left: 6px !important;
}

/* Hide TOC header & unpin button */
.vector-pinnable-header-pinned.vector-toc-pinnable-header.vector-pinnable-header,
.vector-pinnable-header-toggle-button.vector-pinnable-header-unpin-button {
    display: none !important;
}

/* =====================================================================
   4. BRANDING & MEDIA
   ===================================================================== */

/* Neutralize any legacy container inversion */
.mw-logo-container.skin-invert {
    filter: none !important;
}

/* Wordmark typography & light mode colour */
.mw-logo-wordmark,
.mw-logo-wordmark * {
    color: #202122 !important;
    font-family: "Mountains of Christmas", cursive, serif !important;
    font-weight: 700 !important;
}

/* Modern infobox images */
.portable-infobox .pi-image img,
.infobox img {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* =====================================================================
   5. MATERIAL FLOATING SEARCH BAR
   ===================================================================== */

/* Hide search buttons & dropdown filler */
#searchButton,
.cdx-search-input__end-button,
.cdx-menu-item--search-for {
    display: none !important;
}

/* Search container & layout stability */
.vector-typeahead-search-container {
    max-width: none !important;
    margin: 0 !important;
    transform: none !important;
}

.cdx-search-input {
    border-radius: 8px !important;
    border: 1px solid transparent !important;
    background-color: #f1f3f4 !important;
    transition: background-color 0.2s, box-shadow 0.2s, border 0.2s;
}

.cdx-search-input:focus-within {
    background-color: #ffffff !important;
    box-shadow: 0 4px 6px rgba(32, 33, 36, 0.2) !important;
    border: 1px solid #dfe1e5 !important;
    border-radius: 8px !important;
}

/* Search inputs */
.cdx-text-input,
.cdx-text-input:focus-within,
.cdx-text-input.cdx-text-input--status-default {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    background: transparent !important;
}

.cdx-text-input__input {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding-right: 32px !important;
    transition: none !important;
}

/* Search dropdown results */
.cdx-menu {
    border-radius: 8px !important;
    box-shadow: 0 6px 12px rgba(32, 33, 36, 0.15) !important;
    border: 1px solid #dfe1e5 !important;
    margin-top: 8px !important;
    background-color: #ffffff !important;
    overflow: hidden !important;
    padding: 0 !important;
}

.cdx-menu-item:hover,
.cdx-menu-item[aria-selected="true"] {
    background-color: #eeeeee !important;
}

/* =====================================================================
   6. MOBILE FIXES (LOGO, SEARCH & INFOBOX)
   ===================================================================== */

/* Mobile search toggle button spacing */
.search-toggle {
    margin-right: 8px !important;
}

/* Restore the logo icon on mobile using inline alignment */
.mw-logo-icon {
    display: inline-block !important;
    vertical-align: middle !important;
    margin-right: 6px !important;
}

.mw-logo-container {
    display: inline-block !important;
    vertical-align: middle !important;
}

/* Unfloat infobox only on narrow viewports (<= 500px) */
@media (max-width: 500px) {
    .portable-infobox,
    .infobox {
        float: none !important;
        clear: both !important;
        margin: 1em auto !important;
        max-width: 100% !important;
    }
}

/* Centre the table-style infobox on phones */
@media screen and (max-width: 639px) {
    table.infobox {
        display: table;
        width: 100%;
        max-width: 22em;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }
}

/* =====================================================================
   7. MAIN PAGE / FEDOVERSE_WIKI PAGE
   ===================================================================== */

/* Remove Vector default top padding on Main Page */
.page-Main_Page #content,
.page-Main_Page .mw-body,
.page-Main_Page .vector-body,
.page-Main_Page #bodyContent {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Hide Vector titlebar on Main Page */
.page-Main_Page .no-font-mode-scale.vector-page-titlebar.mw-body-header {
    display: none !important;
}

/* Hide elements only on Fedoverse_Wiki */
body.page-Fedoverse_Wiki .vector-sitenotice-container,
body.page-Fedoverse_Wiki .vector-column-start {
    display: none !important;
}

/* =====================================================================
   8. BUTTONS
   ===================================================================== */

.btn {
    display: inline-block;
    position: relative;
    border: 2px solid #000;
    border-radius: 6px;
    padding: 8px 18px;

    font-family: var(--fedo-font);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
    vertical-align: middle;

    color: #fff !important;
    background-color: var(--btn-bg, #4FBD4F);
}

/* Button colors */
.btn-green {
    --btn-bg: #4FBD4F;
}

.btn-blue {
    --btn-bg: #646afc;
}

.btn-red {
    --btn-bg: #f42447;
    font-size: 1.2rem;
    padding: 8px 22px;
}

/* Clean link styling */
.plainlinks a,
.plainlinks a:hover {
    text-decoration: none !important;
}

.plainlinks a .btn {
    color: #fff !important;
}

/* =====================================================================
   9. INFOBOX SHOWCASE & AUDIO PLAYER
   ===================================================================== */

.infobox-showcase {
    text-align: center;
    padding: 0.1em 0.1em 0.1em;
}

.infobox-showcase pre {
    all: unset;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.1em;
}

.infobox-showcase img {
    margin: 0 1px;
}

.featured-song-label {
    font-weight: bold;
    font-size: 14px;
    line-height: 1.4em;
    margin-bottom: 4px;
}

.infobox-audio {
    padding-top: 0;
    margin: 0;
}

.infobox-audio-title {
    font-size: 14px;
    font-style: italic;
    line-height: 1.3em;
    margin: 0 0 6px 0;
    padding: 0;
}

.infobox-audio audio {
    width: 100%;
    display: block;
    border-radius: 8px;
}

.custom-audio-player {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 34px;
    box-sizing: border-box;
    padding: 0 12px;
    background: #F5F5F5;
    border-radius: 10px;
    color: white;
}

.custom-audio-player button {
    border: none;
    background: none;
    color: #1F1F1F;
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-audio-player button:hover {
    opacity: 0.75;
}

.audio-play {
    font-size: 18px !important;
}

.audio-progress-container {
    flex: 1 1 auto;
    min-width: 48px;
    display: flex;
    align-items: center;
}

/* The input itself is just a transparent hit area; the visible bar is the track below */
.audio-progress {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 14px;
    margin: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

/* Track (separate rules: a browser drops the whole rule if it dislikes one selector) */
.audio-progress::-webkit-slider-runnable-track {
    height: 5px;
    border-radius: 5px;
    background: #4F4F4F;
}

.audio-progress::-moz-range-track {
    height: 5px;
    border-radius: 5px;
    background: #4F4F4F;
}

/* Thumb: same colour in both browsers */
.audio-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    margin-top: -4.5px; /* centres the 14px thumb on the 5px track in Chromium */
    border: none;
    border-radius: 50%;
    background: #A89797;
    cursor: pointer;
}

.audio-progress::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: none;
    border-radius: 50%;
    background: #A89797;
    cursor: pointer;
}

.audio-time {
    font-size: 13px;
    white-space: nowrap;
    color: #4F4F4F;
}

.audio-volume {
    font-size: 16px !important;
}

/* Small screens: keep the progress bar, just tighten the spacing */
@media (max-width: 600px) {
    .custom-audio-player {
        gap: 8px;
        padding: 0 10px;
    }

    .audio-time {
        font-size: 12px;
    }
}

/* =====================================================================
   11. PODCAST CAROUSEL
   ===================================================================== */

.pc-podcast{
  --ink:#26231f;
  --muted:#6f6a62;
  width:calc(100% - 24px);
  max-width:740px;
  box-sizing:border-box;
  margin: 96px auto 16px auto;
  color:var(--ink);
  font-family:var(--fedo-font);
}

.pc-deck{
  display:grid;
  padding-bottom:30px;
  touch-action:pan-y;
}

.pc-deck:empty{
  min-height:180px;
  background:linear-gradient(160deg,#f1efea,#e6e3dd);
  border:1px solid #d8d4cc;
  border-radius:24px;
  box-shadow:0 1px 0 rgba(255,255,255,.7) inset,0 10px 28px rgba(40,30,20,.10);
}

.pc-card{
  grid-area:1/1;
  position:relative;
  box-sizing:border-box;
  min-width:0;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  align-content:start;
  gap:24px;
  row-gap:0;
  padding:28px;
  background:linear-gradient(160deg,#f1efea,#e6e3dd);
  border:1px solid #d8d4cc;
  border-radius:24px;
  box-shadow:0 1px 0 rgba(255,255,255,.7) inset,0 10px 28px rgba(40,30,20,.10);
  transform-origin:50% 100%;
  will-change:transform;
  transition:transform .45s cubic-bezier(.2,.8,.2,1),filter .45s;
}

.pc-ghost{
  pointer-events:none;
}

.pc-card[data-pos="0"]{z-index:3}
.pc-card[data-pos="1"]{z-index:2;transform:translateY(14px) scale(.95);filter:brightness(.975)}
.pc-card[data-pos="2"]{z-index:1;transform:translateY(28px) scale(.9);filter:brightness(.95)}

.pc-cover{
  width:120px;
  height:120px;
  border-radius:22px;
  overflow:hidden;
  background:#ddd9d2;
  border:1px solid #cfcac2;
  box-shadow:0 4px 12px rgba(40,30,20,.12);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:2.2rem;
}

.pc-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.pc-body{
  min-width:0;
  padding-right:32px;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:10px;
}

.pc-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:center;
}

.pc-pill{
  display:inline-flex;
  align-items:center;
  padding:6px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.6);
  border:1px solid #dad6ce;
  font-size:.8rem;
  font-weight:600;
  line-height:1;
  color:var(--muted);
  white-space:nowrap;
}

.pc-pill-strong{
  color:var(--ink);
  font-weight:700;
}

.pc-title{
  font-weight:800;
  font-size:clamp(1.15rem,3.4vw,1.6rem);
  line-height:1.15;
  letter-spacing:-.01em;
  overflow-wrap:anywhere;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.pc-title a{
  color:inherit!important;
  text-decoration:none!important;
  transition:color .15s;
}

.pc-title a:hover{
  color:#3f7a35!important;
}

.pc-desc{
  margin:0;
  font-size:.92rem;
  line-height:1.4;
  color:var(--muted);
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.pc-desc:empty{
  display:none;
}

/* arrows + dots */
.pc-nav{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:14px;
}

.pc-nav:empty{
  display:none;
}

.pc-btn{
  width:36px;
  height:36px;
  padding:0;
  border-radius:50%;
  border:1px solid #dad6ce;
  background:rgba(255,255,255,.6);
  color:var(--muted);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background .15s,color .15s;
  -webkit-tap-highlight-color:transparent;
}

.pc-btn:hover,
.pc-btn:focus-visible{
  background:#fff;
  color:#3f7a35;
}

.pc-btn svg{
  width:18px;
  height:18px;
}

.pc-dots{
  display:flex;
  align-items:center;
  gap:7px;
}

.pc-dot{
  width:8px;
  height:8px;
  padding:0;
  border:0;
  border-radius:99px;
  background:#cbc6bd;
  cursor:pointer;
  transition:width .25s,background .25s;
}

.pc-dot[aria-current="true"]{
  width:22px;
  background:var(--ink);
}

@media(max-width:640px){
  .pc-podcast{margin:16px auto}
  .pc-card{
  column-gap:14px;
  row-gap:0;
  padding:18px;
  border-radius:20px;
}
  .pc-cover{width:84px;height:84px;border-radius:18px;font-size:1.8rem}
  .pc-body{padding-right:34px;gap:8px}
  .pc-title{font-size:1.05rem}
  .pc-desc{font-size:.85rem}
  .pc-meta{display:none}
}

.pc-nav {
  padding-top: 24px;
}

/* Fix podcast cards on narrow screens */
.pc-podcast {
  container-type: normal;
}

.pc-card {
  min-width: 0;
  grid-template-columns: minmax(0, 120px) minmax(0, 1fr);
  column-gap: 20px;
  row-gap: 0;
  align-content: start;
}

.pc-body {
  min-width: 0;
  max-width: 100%;
  padding-right: 0;
  overflow: hidden;
}

.pc-title,
.pc-desc {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}

.pc-title {
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  line-height: 1.2;
}

.pc-desc {
  font-size: clamp(0.8rem, 1.5vw, 0.92rem);
}

/* Phone layout */
@media (max-width: 480px) {
  .pc-card {
    grid-template-columns: 64px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 0;
    padding: 14px;
    border-radius: 18px;
  }

  .pc-cover {
    width: 64px;
    height: 64px;
    border-radius: 14px;
  }

  .pc-body {
    gap: 6px;
  }

  .pc-title {
    font-size: 0.95rem;
    line-height: 1.25;
    -webkit-line-clamp: 3;
  }

  .pc-desc {
    font-size: 0.78rem;
    line-height: 1.35;
    -webkit-line-clamp: 2;
  }
}

/* Reorder podcast card content */
.pc-title { order: 1; }
.pc-desc  { order: 2; }
.pc-meta  {
  order: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

/* =========================================================
   PODCAST DECK — VERTICAL STACK ANIMATION
   ========================================================= */

/* Smooth card movement */
.pc-card {
  transition:
    transform .55s cubic-bezier(.22,.75,.25,1),
    filter .55s cubic-bezier(.22,.75,.25,1),
    opacity .55s ease,
    box-shadow .55s ease;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* First priority: active card */
.pc-card[data-pos="0"] {
  z-index: 3;
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  filter: brightness(1);
}

/* Second priority */
.pc-card[data-pos="1"] {
  z-index: 2;
  opacity: .96;
  transform: translate3d(5px, 14px, 0) rotate(-1.2deg) scale(.95);
  filter: brightness(.975);
}

/* Third priority */
.pc-card[data-pos="2"] {
  z-index: 1;
  opacity: .88;
  transform: translate3d(-6px, 28px, 0) rotate(1.8deg) scale(.90);
  filter: brightness(.95);
}

/* Ghost cards stay invisible */
.pc-ghost {
  opacity: 0;
  pointer-events: none;
}

/* Prepare deck for vertical gestures */
.pc-deck {
  touch-action: pan-x;
  user-select: none;
  -webkit-user-select: none;
}

/* Keep links usable */
.pc-card a {
  -webkit-user-select: text;
  user-select: text;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .pc-card {
    transition: none !important;
  }
}

/* Force podcast carousel animations */
.pc-card {
  transition:
    transform .55s cubic-bezier(.22,.75,.25,1) !important,
    filter .55s ease !important,
    opacity .55s ease !important,
    box-shadow .55s ease !important;
}

/* FORCE PODCAST DECK ANIMATIONS */
.pc-deck .pc-card {
  transition:
    transform .55s cubic-bezier(.22,.75,.25,1),
    filter .55s ease,
    opacity .55s ease,
    box-shadow .55s ease !important;
}

/* =========================================================
   MOBILE PODCAST CARD — LARGER IMAGE + COMPACT TAGS
   ========================================================= */

@media (max-width: 480px) {

  .pc-card {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 14px;
    row-gap: 8px;
    align-items: start;
    align-content: start;
    padding: 16px;
    border-radius: 20px;
  }

  /* Let title, description and metadata participate
     directly in the card grid */
  .pc-body {
    display: contents;
  }

  /* Bigger image */
  .pc-cover {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 104px;
    height: 104px;
    border-radius: 16px;
    align-self: center;
  }

  /* Title beside the image */
  .pc-title {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    font-size: 1rem;
    line-height: 1.2;
    text-align: left;
    -webkit-line-clamp: 3;
  }

  /* Description beneath the title */
  .pc-desc {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    font-size: 0.78rem;
    line-height: 1.3;
    text-align: left;
    -webkit-line-clamp: 2;
  }

  /* Tags underneath, using the FULL card width */
  .pc-meta {
    grid-column: 1 / -1;
    grid-row: 3;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin-top: 4px;
  }

  /* Smaller, compact tags */
  .pc-pill {
    padding: 5px 9px;
    font-size: 0.68rem;
    line-height: 1.1;
    white-space: nowrap;
  }

  .pc-pill-strong {
    font-size: 0.7rem;
  }
}

/* =====================================================================
   FEDOVERSE HOMEPAGE IMAGE LAYOUT
   ===================================================================== */

.fed-home-image {
    display: block !important;
    position: relative !important;
    flex: 1 1 520px;
    min-width: 0 !important;
    overflow: hidden !important;
    border-radius: 26px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    line-height: 0 !important;
    isolation: isolate;
}

/* Remove MediaWiki-generated image wrappers */
.fed-home-image .thumb,
.fed-home-image .thumbinner,
.fed-home-image .mw-default-size,
.fed-home-image figure,
.fed-home-image .mw-file-description {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Make the image link fill the container */
.fed-home-image a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* Actual image */
.fed-home-image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    border: none !important;
    border-radius: 26px !important;
    box-shadow: none !important;
}

/* Centered image */
.fed-home-image-centered {
    width: 100% !important;
    flex: none !important;
}

@media screen {
  .mw-body p {
    margin: 0.5em 0 0em 0;
  }


/* Fedoverse global font override */
:root {
    --fedo-font: "Geist", sans-serif !important;
}

.mw-content-ltr > div:nth-child(1) > div:nth-child(13) > div:nth-child(1) > div:nth-child(1) {
    margin-top: -140px !important;
}


/* Fill podcast thumbnails completely */
.pc-cover {
  overflow: hidden;
  background: #ddd9d2;
}

.pc-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.85);
}

/* =====================================
   HOMEPAGE IMAGE HOVER ZOOM
===================================== */

.fed-home-image {
  scale: 1;
  transition: scale .25s ease !important;
}

@media (hover: hover) {
  .fed-home-image:hover {
    scale: 1.02;
  }
}


/* =====================================
   COLOURED BUTTON HOVER ZOOM
===================================== */

.btn-green,
.btn-blue,
.btn-red {
  scale: 1;
  transition: scale .2s ease, filter .2s ease !important;
}

@media (hover: hover) {
  .btn-green:hover,
  .btn-blue:hover,
  .btn-red:hover {
    scale: 1.045;
    filter: brightness(1.08);
  }
}

.btn-green:active,
.btn-blue:active,
.btn-red:active {
  scale: .96;
}



/* =========================================
   RANDOM GIF PICKER - COMPLETE ANIMATIONS
========================================= */


#random-gif-picker {
  --pointer-x: 50%;
  --pointer-y: 50%;
  --tilt-x: 0deg;
  --tilt-y: 0deg;

  transform:
    perspective(850px)
    rotateX(var(--tilt-y))
    rotateY(var(--tilt-x));

  /* Separate scale property lets clicks animate without disrupting tilt */
  scale: 1;

  transform-style: preserve-3d;

  transition:
    transform .16s ease-out,
    scale .3s ease-out,
    box-shadow .2s ease !important;

  isolation: isolate;
  will-change: transform, scale;
}

/* Smaller white cursor glow */
#random-gif-picker::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background: radial-gradient(
    circle at var(--pointer-x) var(--pointer-y),
    rgba(255, 255, 255, .28) 0%,
    rgba(255, 255, 255, .12) 12%,
    transparent 30%
  );

  opacity: 0;
  transition: opacity .2s ease;
}

/* Hover glow */
#random-gif-picker.is-pointer-over {
  box-shadow: 0 14px 32px rgba(0, 0, 0, .20);
}

#random-gif-picker.is-pointer-over::before {
  opacity: 1;
}

/* Click ripple */
.gif-picker-ripple {
  position: absolute;
  z-index: 3;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  box-shadow: 0 0 18px rgba(255,255,255,.65);
  pointer-events: none;
  transform: translate(-50%,-50%) scale(0);
  animation: gif-picker-ripple .65s ease-out forwards;
}

@keyframes gif-picker-ripple {
  0% {
    opacity: 1;
    transform: translate(-50%,-50%) scale(0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%,-50%) scale(9);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  #random-gif-picker {
    transition: none !important;
  }

  .gif-picker-ripple {
    display: none !important;
  }
}

/* GIF PICKER - ONE FULL IMAGE, NO TILING */

#random-gif-picker {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

#random-gif-picker {
    transition:
        transform .35s ease-out,
        scale .35s ease-out,
        box-shadow .35s ease-out !important;
}

#random-gif-picker::before {
    transition: opacity .35s ease-out !important;
}









/* =====================================================================
   12. AUTOMATIC DARK MODE
   Activates when the user's device prefers dark mode
   ===================================================================== */

@media (prefers-color-scheme: dark) {

    /* -------------------------------------------------
       1. GLOBAL COLOURS
       ------------------------------------------------- */

    html,
    body,
    #content,
    .mw-page-container,
    .mw-header,
    .mw-content-container,
    .mw-body,
    .mw-body-content,
    .vector-body {
        background-color: #121212 !important;
        color: #e6e6e6 !important;
    }

    /* Main content surfaces */
    .mw-page-container {
        border-color: transparent !important;
    }

    /* -------------------------------------------------
       2. HEADINGS & TEXT
       ------------------------------------------------- */

    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    .mw-heading,
    .mw-body-content {
        color: #e6e6e6 !important;
    }

    /* Page title */
    h1.firstHeading,
    .mw-first-heading {
        color: #ffffff !important;
    }

    /* Links */
    .mw-body-content a:not(.btn) {
        color: #8ab4f8;
    }

    .mw-body-content a:not(.btn):visited {
        color: #c58af9;
    }

    /* -------------------------------------------------
       3. HEADER & LOGO
       ------------------------------------------------- */

    .mw-header,
    .vector-header-container,
    .vector-header {
        background-color: #121212 !important;
        border-color: #303030 !important;
    }

    .mw-logo-wordmark,
    .mw-logo-wordmark * {
        color: #ffffff !important;
    }

    /* -------------------------------------------------
       4. SIDEBAR & TABLE OF CONTENTS
       ------------------------------------------------- */

    .vector-toc,
    .vector-toc-contents,
    .vector-column-start,
    .vector-column-end {
        background-color: #121212 !important;
        color: #e6e6e6 !important;
        border-color: #303030 !important;
    }

    .vector-toc a {
        color: #8ab4f8 !important;
    }

    /* -------------------------------------------------
       5. SEARCH BAR
       ------------------------------------------------- */

    .cdx-search-input,
    .cdx-text-input,
    .cdx-text-input__input {
        background-color: #242424 !important;
        color: #eeeeee !important;
    }

    .cdx-search-input {
        border-color: #3a3a3a !important;
    }

    .cdx-search-input:focus-within {
        background-color: #292929 !important;
        border-color: #8ab4f8 !important;
        box-shadow: 0 4px 8px rgba(0,0,0,.4) !important;
    }

    .cdx-text-input__input::placeholder {
        color: #999999 !important;
    }

    /* Search suggestions */
    .cdx-menu {
        background-color: #242424 !important;
        border-color: #3a3a3a !important;
        box-shadow: 0 6px 16px rgba(0,0,0,.5) !important;
    }

    .cdx-menu-item {
        color: #e6e6e6 !important;
    }

    .cdx-menu-item:hover,
    .cdx-menu-item[aria-selected="true"] {
        background-color: #383838 !important;
    }

    /* -------------------------------------------------
       6. INFOBOXES & TABLES
       ------------------------------------------------- */

    .infobox,
    .portable-infobox,
    table.wikitable,
    .mw-datatable {
        background-color: #1e1e1e !important;
        color: #e6e6e6 !important;
        border-color: #3a3a3a !important;
    }

    .infobox th,
    .infobox td,
    .portable-infobox th,
    .portable-infobox td,
    table.wikitable th,
    table.wikitable td {
        background-color: transparent !important;
        color: #e6e6e6 !important;
        border-color: #3a3a3a !important;
    }

    table.wikitable th {
        background-color: #292929 !important;
    }

    /* -------------------------------------------------
       7. INPUTS & BUTTONS
       ------------------------------------------------- */

    input,
    select,
    textarea {
        background-color: #242424 !important;
        color: #eeeeee !important;
        border-color: #444444 !important;
    }

    input::placeholder,
    textarea::placeholder {
        color: #999999 !important;
    }

    /* Preserve your custom button colours */
    .btn {
        color: #ffffff !important;
    }

    /* -------------------------------------------------
       8. PODCAST CAROUSEL
       ------------------------------------------------- */

    .pc-podcast {
        --ink: #eeeeee;
        --muted: #b0aaa0;
        color: var(--ink) !important;
    }

    .pc-card {
        background: linear-gradient(
            160deg,
            #292929,
            #1c1c1c
        ) !important;

        border-color: #404040 !important;

        box-shadow:
            0 1px 0 rgba(255,255,255,.04) inset,
            0 10px 28px rgba(0,0,0,.45) !important;
    }

    .pc-cover {
        background: #333333 !important;
        border-color: #444444 !important;
    }

    .pc-pill {
        background: rgba(255,255,255,.07) !important;
        border-color: #444444 !important;
        color: #c5c0b8 !important;
    }

    .pc-pill-strong {
        color: #ffffff !important;
    }

    .pc-desc {
        color: #b0aaa0 !important;
    }

    .pc-btn {
        background: #292929 !important;
        border-color: #444444 !important;
        color: #eeeeee !important;
    }

    .pc-btn:hover,
    .pc-btn:focus-visible {
        background: #383838 !important;
        color: #8ab4f8 !important;
    }

    .pc-dot {
        background: #555555 !important;
    }

    .pc-dot[aria-current="true"] {
        background: #eeeeee !important;
    }

    /* -------------------------------------------------
       9. AUDIO PLAYER
       ------------------------------------------------- */

    .custom-audio-player {
        background: #292929 !important;
        color: #ffffff !important;
    }

    .custom-audio-player button {
        color: #eeeeee !important;
    }

    .audio-progress::-webkit-slider-runnable-track {
        background: #666666 !important;
    }

    .audio-progress::-moz-range-track {
        background: #666666 !important;
    }

    .audio-time {
        color: #bbbbbb !important;
    }

    /* -------------------------------------------------
       10. GENERAL MEDIA & DECORATIVE ELEMENTS
       ------------------------------------------------- */

    .mw-logo-container.skin-invert {
        filter: none !important;
    }

    /* Keep photographs and illustrations unchanged */
    img,
    video {
        filter: none !important;
    }

    /* -------------------------------------------------
       11. SELECTION & SCROLLBARS
       ------------------------------------------------- */

    ::selection {
        background: #365b88 !important;
        color: #ffffff !important;
    }

    * {
        scrollbar-color: #555555 #181818;
    }

}

/* =========================================================
   DARK MODE — ADDITIONAL VECTOR & SEARCH FIXES
   ========================================================= */

@media screen and (prefers-color-scheme: dark) {

    /* -------------------------------------------------
       VECTOR STICKY HEADER
       ------------------------------------------------- */

    .vector-sticky-header,
    .vector-sticky-header-start,
    .vector-sticky-header-end {
        background-color: #121212 !important;
        color: #e6e6e6 !important;
        border-color: #303030 !important;
    }

    .vector-sticky-header-start *,
    .vector-sticky-header-end * {
        color: #e6e6e6 !important;
    }

    /* -------------------------------------------------
       SEARCH DROPDOWN BACKGROUNDS
       ------------------------------------------------- */

    .cdx-menu,
    .cdx-menu__listbox,
    .cdx-menu-item,
    .cdx-typeahead-search__search-footer {
        background-color: #242424 !important;
        color: #e6e6e6 !important;
    }

    /* -------------------------------------------------
       SEARCH TEXT
       ------------------------------------------------- */

    .cdx-menu-item__text,
    .cdx-menu-item__text__label,
    .cdx-typeahead-search__search-footer__text {
        color: #e6e6e6 !important;
        -webkit-text-fill-color: #e6e6e6 !important;
    }

    /* Secondary descriptions */
    .cdx-menu-item__text__description,
    .cdx-menu-item__text__supporting-text {
        color: #b0b0b0 !important;
        -webkit-text-fill-color: #b0b0b0 !important;
    }

    .cdx-typeahead-search__search-footer__text * {
        color: #b0b0b0 !important;
    }

    /* -------------------------------------------------
       SEARCH ICONS
       ------------------------------------------------- */

    .cdx-menu-item__icon {
        color: #b0b0b0 !important;
    }

    /* -------------------------------------------------
       HOVER & SELECTED STATES
       ------------------------------------------------- */

    .cdx-menu-item:hover,
    .cdx-menu-item[aria-selected="true"] {
        background-color: #383838 !important;
    }

    .cdx-menu-item:hover .cdx-menu-item__text__label,
    .cdx-menu-item[aria-selected="true"] .cdx-menu-item__text__label {
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }

}

@media (prefers-color-scheme: dark) {
    :root {
        --studio-text: #e6e6e6;
    }
}