/* =========================================================
   ROOT VARIABLES
========================================================= */
:root {
    --bg: #FFFFFF;
    --text: #000000;
    --header-bg: #F2F2F2;
    --header-text: #000000;
    --footer-bg: #F2F2F2;
    --sidebar-bg: #FFFFFF;
    --main-bg: #FFFFFF;
    --block-bg: #F2F2F2;
    --border: #E6E6E6;
    --accent: #EAC985;
    --link: #EAC985;
    --link-hover: #E5BC70;
    --link-text: #000000;
}

/* =========================================================
   DARK THEME
========================================================= */
body.dark {
    --bg: #25282C;
    --text: #FFFFFF;
    --header-bg: #2E3136;
    --header-text: #FFFFFF;
    --footer-bg: #2E3136;
    --sidebar-bg: #25282C;
    --main-bg: #25282C;
    --block-bg: #2E3136;
    --border: #373A3F;
    --accent: #E5BC70;
    --link: #E5BC70;
    --link-hover: #EAC985;
    --link-text: #000000;
}

/* =========================================================
   ROLES
========================================================= */
.Sysop { color: #006699; }
.Admin { color: #CC2200; }
.Mod { color: #117711; }
.VIP { color: #E8C225; }
.Respected { color: #CC3399; }
.Hardcore { color: #CC6600; }
.Power User { color: #666666; }
.User { color: #999999; }
.Banned { color: #000000; }

/* =========================================================
   RESET / BASE
========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    filter: none !important;
}

h1, h2, h3 {
    margin: 0;
}

ul {
  list-style-type: none;
}

table {
	width: 100%;
}

.table td strong:contains('+') {
    color: #4caf50;
}

.table td strong:contains('-') {
    color: #f44336;
}

.active {
	font-weight: bold;
}

/* Success / Error Messages */
.success {
    background: #1f4d2b;
    color: #a7f3c1;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.error {
    background: #4d1f1f;
    color: #ffb3b3;
    padding: 10px;
    border-radius: 4px;
}

/* Flex utilities */
.flex.align-right {
    display: flex;
    justify-content: flex-end;
}

.flex.align-right a {
    margin-left: 0;
}

/* =========================================================
   TOOLTIP
========================================================= */
#tooltip {
    position: absolute;
    display: none;
    z-index: 9999;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--accent);
    font-size: 12px;
    line-height: 1.2;
    padding: 4px 8px;
    border-radius: 4px;
    pointer-events: none;
    white-space: nowrap;
}

/* =========================================================
   TYPOGRAPHY / LINKS
========================================================= */
a {
    color: var(--link);
    text-decoration: none;
    cursor: pointer;
}

a:hover {
    color: var(--link-hover);
}

/* =========================================================
   BUTTONS
========================================================= */
button,
.button {
    padding: 6px 10px;
    margin: 5px;
    background: var(--link);
    color: var(--link-text);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    user-select: none;
    position: relative;
    overflow: hidden;
    transition:
        background 0.2s ease,
        transform 0.08s ease,
        box-shadow 0.15s ease;
}

button:hover,
.button:hover {
    color: #000;
    background: var(--link-hover);
    transform: translateY(-1px);
}

button:active,
.button:active {
    transform: translateY(1px);
}

button:focus-visible,
.button:focus-visible {
    outline: 2px solid var(--link-hover);
    outline-offset: 2px;
}

button:disabled,
.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.button-icon {
    padding: 5px 7px;
}

button i,
.button i {
    font-size: 0.9em;
}

/* =========================================================
   FORMS
========================================================= */
label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    color: var(--text);
    opacity: 0.8;
}

input[type="checkbox"] {
    width: 20px;
}

input,
textarea,
select {
    width: 100%;
    font-size: 14px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);
    resize: vertical;
    transition:
        border 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(234,201,133,0.25);
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 4px 30px 4px 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='currentColor' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

select:hover {
    border-color: var(--accent);
}

.input-row,
.form-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-row input,
.form-row input {
    flex: 1;
}

/* =========================================================
   CUSTOM CHECKBOX
========================================================= */
.checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    gap: 8px;
    font-size: 14px;
    user-select: none;
    opacity: 0.85;
}

.checkbox input {
    display: none;
}

.checkbox input:checked ~ * {
    opacity: 1;
}

.checkmark {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 2px solid var(--border);
    background: var(--input-bg);
    position: relative;
    transition: all 0.15s ease;
}

.checkbox:hover .checkmark {
    border-color: var(--link);
}

.checkbox input:checked + .checkmark {
    background: var(--link);
    border-color: var(--link);
}

.checkmark::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
}

.checkbox input:checked + .checkmark::after {
    opacity: 1;
}

/* =========================================================
   HEADER
========================================================= */
header {
    background: var(--header-bg);
    color: var(--header-text);
    border-bottom: 1px solid var(--link);
    padding: 20px 10px;
    text-align: center;
    overflow: hidden;
    transition:
        padding 0.4s ease,
        height 0.4s ease,
        background 0.3s ease,
        color 0.3s ease;
}

header h1 { transition: transform 0.4s ease; }
header.small h1 { transform: scale(0.8); }
header.small .slogan { display: none; }
.slogan { margin-bottom: 20px; }

/* =========================================================
   NAVBAR
========================================================= */
.navbar {
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.navbar.open {
    max-height: 100px;
    padding: 15px 20px;
}

.navbar a {
    color: var(--link);
    font-weight: 500;
}

.navbar a:hover {
    color: var(--link-hover);
}

/* =========================================================
   LAYOUT
========================================================= */
.container {
    display: flex;
    justify-content: center;
    flex: 1;
}

.layout {
    display: flex;
    width: 1400px;
    margin-top: 50px;
}

.container.right .layout {
    flex-direction: row-reverse;
}

/* =========================================================
   SIDEBAR
========================================================= */
.sidebar {
    width: 280px;
    padding: 10px;
    background: var(--sidebar-bg);
    transform-origin: left;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sidebar.closed {
    opacity: 0;
    transform: translateX(-10px);
}

/* =========================================================
   MAIN CONTENT
========================================================= */
.main { 
    flex: 1; 
    padding: 10px; 
    background: var(--main-bg); 
}

/* =========================================================
   BLOCKS / PANELS
========================================================= */
.block {
    background: var(--block-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 16px;
    overflow: hidden;
    backdrop-filter: blur(6px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.block.dragging {
    opacity: 0.5;
    transform: scale(1.03);
    cursor: grabbing;
}

.block-header {
    display: flex;
    align-items: center;
    padding: 5px 15px;
    background: rgba(0,0,0,0.03);
    color: var(--link);
    font-size: 15px;
    font-weight: 600;
    backdrop-filter: blur(8px);
    cursor: grab;
}

.block-header button {
    margin-left: auto;
    background: transparent;
    border: none;
    color: var(--link);
    font-size: 16px;
    cursor: pointer;
}

.block-header button:hover { color: var(--link-hover); }

.block-title { flex: 1; display: flex; align-items: center; gap: 8px; color: var(--header-text); }
.block-title i { color: var(--link); }

.block-content {
    padding: 15px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    line-height: 1.6;
    transition: max-height 0.35s ease, opacity 0.25s ease;
}

.block-content.closed {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-top: 0;
}

/* =========================================================
   DRAG PLACEHOLDER
========================================================= */
.placeholder {
    height: 60px;
    margin-bottom: 10px;
    border: 2px dashed var(--accent);
    border-radius: 6px;
    background: rgba(0,0,0,0.03);
    animation: pulse 1.2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 0.9; }
    100% { opacity: 0.6; }
}

/* =========================================================
   SHOUTBOX
========================================================= */
#shoutbox-messages {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--link) transparent;
    scroll-behavior: smooth;
}

#shoutbox-messages::-webkit-scrollbar { width: 6px; }
#shoutbox-messages::-webkit-scrollbar-thumb {
    background: var(--link);
    border-radius: 10px;
}
#shoutbox-messages::-webkit-scrollbar-thumb:hover { background: var(--link-hover); }

#shout-message {
    resize: none;
    height: 36px;
}

.shout {
    display: flex;
    gap: 10px;
    padding: 8px;
    animation: shoutFade 0.25s ease;
}

@keyframes shoutFade {
    from { opacity:0; transform:translateY(5px); }
    to   { opacity:1; transform:translateY(0); }
}

.shout-avatar img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.shout-body { flex: 1; }
.shout-header { display: flex; align-items: center; gap: 8px; }
.shout-time { font-size: 12px; opacity: 0.6; }
.shout-tools { margin-left: auto; }
.shout-tools button { background: none; border: none; cursor: pointer; opacity: 0.6; }
.shout-tools button:hover { opacity: 1; }
.shout-edit-input { width: 100%; padding: 6px; border-radius: 6px; border: 1px solid var(--border); font-size: 14px; }

.editor-actions { display: flex; align-items: center; gap: 6px; }
.editor-actions-right { margin-left: auto; display: flex; gap: 8px; }

/* SHOUTBOX FULLSCREEN */
.block.shoutbox-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    background: var(--block-bg);
    border-radius: 0;
    padding: 0;
}

.block.shoutbox-fullscreen .block-content { display: flex; flex-direction: column; height: 100%; }
.block.shoutbox-fullscreen ~ * { pointer-events: none; }
.block.shoutbox-fullscreen #shoutbox-messages { flex: 1; overflow-y: auto; max-height: none; }
.block.shoutbox-fullscreen #shoutbox-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid var(--border);
    background: var(--block-bg);
}
.block.shoutbox-fullscreen #shout-message { flex: 1; padding: 8px 10px; border-radius: 6px; border: 1px solid var(--border); }
.block.shoutbox-fullscreen #shoutbox-form button { padding: 6px 12px; }

#typing-indicator { font-size: 12px; opacity: 0.7; padding: 4px; }

/* =========================================================
   BBCODE
========================================================= */
.bbcode-code {
    background: #111;
    color: #0f0;
    padding: 10px;
    border-radius: 6px;
    overflow-x: auto;
    font-family: monospace;
    white-space: pre;
}

.bbcode-quote {
    border-left: 4px solid var(--link);
    padding: 10px;
    margin: 10px 0;
    background: rgba(0,0,0,0.05);
}

.bbcode-image {
    max-width: 100%;
    border-radius: 6px;
}

.bbcode-spoiler {
    background: #222;
    color: #222;
    padding: 3px 6px;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
}

.bbcode-spoiler span { visibility: hidden; }
.bbcode-spoiler.revealed span { visibility: visible; }

.bbcode-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 10px 0;
}
.bbcode-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* BBCODE TOOLBAR */
.bbcode-editor { display: flex; flex-direction: column; gap: 6px; }

.bbcode-toolbar,
.bbcode-stylebar,
.bbcode-linkbar,
.bbcode-imagebar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    background: rgba(0,0,0,0.06);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.bbcode-toolbar.collapsed,
.bbcode-stylebar.collapsed,
.bbcode-linkbar.collapsed,
.bbcode-imagebar.collapsed { display: none; }

.bbcode-toolbar a,
.editor-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 5px;
    color: var(--link);
    cursor: pointer;
}

.bbcode-toolbar a:hover,
.editor-actions a:hover { background: rgba(0,0,0,0.08); }
.bbcode-toolbar a:active { transform: scale(0.92); }
.bbcode-toolbar i { font-size: 14px; pointer-events: none; }

.bbcode-stylebar select,
.bbcode-stylebar input,
.bbcode-linkbar input,
.bbcode-imagebar input {
    font-size: 12px;
    height: 28px;
    padding: 0 6px;
}

.bbcode-linkbar input,
.bbcode-imagebar input { flex: 1; }

.bbcode-stylebar button,
.bbcode-linkbar button,
.bbcode-imagebar button { height: 28px; padding: 0 8px; font-size: 12px; }
.bbcode-stylebar button { padding-left: 10px; padding-right: 30px; }

.emotes-panel {
    text-align: center;
    padding: 8px;
    margin-top: 4px;
    background: rgba(0,0,0,0.06);
    border-radius: 6px;
}

.emotes-panel.collapsed { display: none; }

.emotes-panel img {
    width: 16px;
    height: 16px;
    margin: 3px;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.emotes-panel img:hover { transform: scale(1.2); }
.emote { vertical-align: middle; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* always 3 columns */
  column-gap: 5px;  /* space between columns */
  row-gap: 5px;  /* only space between rows */
}

.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1; /* keeps them square */
  object-fit: cover;   /* crops without distortion */
  display: block;      /* prevents inline <img> whitespace */
}

/* =========================================================
   AVATARS
========================================================= */
.avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; }
.medium-avatar { width: 32px; height: 32px; border-radius: 50%; vertical-align: middle; }
.small-avatar { width: 16px; height: 16px; border-radius: 50%; vertical-align: middle; }
.avatar-small { width: 40px; height: 40px; border-radius: 4px; vertical-align: middle; }

/* =========================================================
   LATEST POSTS
========================================================= */
.latest-posts { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.latest-post { display: flex; gap: 10px; padding: 10px 12px; background: var(--block-bg); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.latest-post-avatar img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.latest-post-body {  }
.latest-topic { color: var(--link); margin-bottom: 4px; display: inline-block; }
.latest-meta { color: var(--text); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.latest-forum { display: flex; align-items: center; gap: 4px; font-size: 12px; }
.latest-date { font-size: 12px; opacity: 0.6; }

.latest-posts-table {
    width: 100%;
    border-collapse: collapse;
}

.latest-posts-table th {
    text-align: left;
    padding: 8px;
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.7;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.latest-posts-table td {
    padding: 10px 8px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Keep icons tidy */
.latest-posts-table i {
    margin-right: 5px;
}

/* Avatar alignment */
.latest-posts-table .small-avatar {
    vertical-align: middle;
    margin-right: 6px;
}

/* =========================================================
   MEMBERLIST
========================================================= */
.memberlist { width: 100%; }
.memberlist-header,
.memberlist-row { display: grid; grid-template-columns: 50px 1fr 100px 100px 100px 100px 100px 100px 100px 100px; gap: 10px; padding: 10px; }
.memberlist-header { font-weight: bold; }
.memberlist-row { align-items: center; transition: background 0.2s; }
.memberlist-icon { display: flex; align-items: center; justify-content: center; position: relative; }
.memberlist-stat { color: #aaa; }
.member-search { display: flex; gap: 8px; margin-bottom: 15px; }

.online-dot { width: 10px; height: 10px; border-radius: 50%; }
.online { background: #00ff6a; }
.offline { background: #444; }

/* =========================================================
   LEGEND
========================================================= */
.user-legend button {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    margin: 0 6px;
}
.user-legend button:hover { text-decoration: underline; }

/* =========================================================
   PROFILE COMMENTS
========================================================= */
#profile-comments-list { max-height: 400px; overflow-y: auto; }

.profile-comment {
    display: flex;
    gap: 10px;
    padding: 8px;
    border-bottom: 1px solid var(--border);
    animation: shoutFade 0.25s ease;
}

.profile-comment-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-comment-body { flex: 1; }
.profile-comment-header { display: flex; align-items: center; gap: 8px; }
.profile-comment-user {}
.profile-comment-time { font-size: 12px; opacity: 0.6; }
.profile-comment-text { margin-top: 4px; line-height: 1.4; }

/* =========================================================
   POST SIGNATURE
========================================================= */
.post-signature {
    max-height: 160px;
    overflow: hidden;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
    font-size: 12px;
    opacity: 0.75;
}

.post-signature img { max-height: 120px; }
.post-signature a { color: var(--link); }
textarea[name="signature"] { width: 100%; min-height: 120px; font-family: inherit; }

/* =========================================================
   POINTS LIST
========================================================= */

.points-list {
    display: flex;
    flex-direction: column;
}

/* Header */
.points-header {
    display: grid;
    grid-template-columns: 2fr 100px 180px;
    font-weight: bold;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
}

/* Row */
.points-row {
    display: grid;
    grid-template-columns: 2fr 100px 180px;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s ease;
}

/* Columns */
.points-action {
    color: var(--text);
}

.points-value {
    text-align: center;
}

.points-date {
    font-size: 13px;
    opacity: 0.7;
}

/* Positive / Negative */
.points-positive {
    color: #4caf50;
}

.points-negative {
    color: #f44336;
}

.points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.points-item {
    text-align: center;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(0,0,0,0.03);
}

.points-label {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 4px;
}

.points-value {
    font-size: 16px;
    font-weight: bold;
    color: #4caf50;
}

/* =========================================================
   TOP USERS
========================================================= */
.top-users-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.top-users-section h4 {
    margin: 0 0 8px;
    font-size: 14px;
}

.top-user {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    font-size: 13px;
}

.top-user-stat {
    opacity: 0.7;
    font-size: 12px;
}

/* =========================================================
   FOOTER
========================================================= */
footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--link);
    text-align: center;
    padding: 20px 0;
}

/* =========================================================
   PLAYER
========================================================= */

#global-player-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    background: var(--footer-bg);
    padding: 10px;
    display: block;
}

.player {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 🔥 SEEK BAR = BIG + IMPORTANT */
.progress-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 300px;
}

#progress {
    width: 100%;
    height: 20px;
    padding: 0;
    appearance: none;
	border: 1px solid var(--border);
    background: linear-gradient(
        to right,
        #E5BC70 0%,
        #E5BC70 var(--progress, 0%),
        var(--bg) var(--progress, 0%),
        var(--bg) 100%
    );
    outline: none;
    cursor: pointer;
}

/* thumb */
#progress::-webkit-slider-thumb {
    appearance: none;
    width: 2px;
    height: 18px;
    background: #E5BC70;
    box-shadow: 0 0 6px rgba(229,188,112,0.6);
}


/* 🔊 VOLUME = SMALL + SUBTLE */
#volume {
    width: 90px;              /* smaller */
    height: 4px;
    opacity: 0.8;
}

/* 🔇 MUTE BUTTON */
#muteBtn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
}

.hidden {
    display: none !important;
}

.track-row {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

@keyframes scrollText {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* COVER */
.cover-wrap {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    overflow: hidden;
}

#track-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.track-wrap {
    width: 150px;
    height: 150px;
    flex: 0 0 150px;
}

.track-cover {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

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

/* track.php */
.track-wrapper {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.track-description {
    white-space: pre-wrap;   /* keeps formatting but wraps */
    word-break: break-word;
    text-align: left;
    font-family: inherit;    /* optional: removes monospace */
}

/* left side */
.track-info {
    flex: 1;
}

/* right side */
.track-stats {
    width: 180px;
    text-align: left;
    background: rgba(0,0,0,0.2);
	border: 1px solid var(--border);
    padding: 10px;
    border-radius: 6px;
}

.track-actions {
    margin-top: 15px;
}

.track-actions .button,
.track-actions button {
    margin-right: 8px;
}

/* downloads.php */
.stats-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.stat-box {
    flex: 1;
    background: rgba(0,0,0,0.2);
	border: 1px solid var(--border);
    padding: 10px;
    border-radius: 6px;
}

/* profile.php */
.upload-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #222;
}

.upload-row a {
    text-decoration: none;
}

.upload-row .meta {
    opacity: 0.7;
    font-size: 12px;
}

/* index.php */

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns */
    gap: 10px;
}

/* Container state */
.block-content {
    position: relative;
}

/* Loader centered */
.block-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.4);
    z-index: 2;
    transition: opacity 0.3s ease;
}

/* Content hidden initially */
.block-inner {
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* When loaded */
.block-content.loaded .block-loader {
    opacity: 0;
    pointer-events: none;
}

.block-content.loaded .block-inner {
    opacity: 1;
    transform: translateY(0);
}






.activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.activity-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.activity-text {
    font-size: 13px;
    opacity: 0.9;
}