/* ===== Reset & base ===== */
* {
    box-sizing: border-box;
}

:root {
    --header-height: 72px;

    /* Paleta consolidada — las reglas nuevas deben usar esto.
       Las reglas existentes se quedan con sus valores literales por ahora;
       migrarlas todas es un pase aparte, más grande, para no arriesgar
       cambios visuales masivos sin poder verlos. */
    --bg-page: #0d0f12;
    --bg-panel: #14161a;
    --border-default: #2a2e37;
    --text-primary: #e4e6eb;
    --text-muted: #9a9ea6;
    --text-dim: #5c6069;
    --accent-fire: #ff7a1f;
    --accent-green: #4ade80;
    --accent-red: #e74c3c;
    --accent-red-soft: #e88a8a;
    --icon-chevron: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M0 0l5 6 5-6z' fill='%238b8f98'/></svg>");
}

body {
    background: #0d0f12;
    color: #e4e6eb;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 40px 60px;
    margin: 0;
    transition: margin-left 0.25s ease;
}

body.sidebar-open {
    margin-left: 240px;
}

h3 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9a9ea6;
    margin-bottom: 12px;
}

button {
    background: #1a1d23;
    color: #e4e6eb;
    border: 1px solid #2f333c;
    border-radius: 999px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

button:hover {
    background: #23272f;
}

button:active {
    transform: scale(0.97);
}

/* ===== Staff panel: topbar / server manager (legacy) ===== */
.topbar {
    width: 100%;
    max-width: 1400px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 40px;
}

.logo {
    width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
    justify-self: start;
}

.logo-centered {
    width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
}

.page-heading {
    font-size: 24px;
    font-weight: 600;
    color: #e4e6eb;
    margin: 0;
}

#page-select {
    grid-column: 2;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    color: #e4e6eb;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.3px;
    padding: 4px 26px 4px 4px;
    cursor: pointer;
    outline: none;
    background-image: var(--icon-chevron);
    background-repeat: no-repeat;
    background-position: right 4px center;
}

.server-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.server-selector label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #9a9ea6;
}

#server-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #14161a;
    background-image: var(--icon-chevron);
    background-repeat: no-repeat;
    background-position: right 14px center;
    border: 1px solid #2a2e37;
    border-radius: 8px;
    color: #e4e6eb;
    padding: 10px 36px 10px 14px;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s ease;
}

#server-select:hover,
#server-select:focus {
    border-color: #4ade80;
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

#start-server {
    border-color: #2f6f4f;
    color: #6fd19a;
}

#start-server:hover {
    background: #16261d;
}

#stop-server {
    border-color: #7a3535;
    color: #e88a8a;
}

#stop-server:hover {
    background: #2a1717;
}

#ban-player {
    border-color: #7a3535;
    color: #e88a8a;
}

#ban-player:hover {
    background: #2a1717;
}

#logout-link {
    color: #e4e6eb;
    text-decoration: none;
}

#logout-link:hover {
    color: #ff5c5c;
}

.console-row {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 1400px;
    flex-wrap: wrap;
    justify-content: center;
}

.console-column {
    flex: 1;
    min-width: 320px;
}

.console-column h3 {
    text-align: center;
}

#server-log-box,
#action-log-box {
    background: #08090b;
    color: #4ade80;
    border: 1px solid #1f232a;
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    height: 320px;
    overflow-y: auto;
    font-family: "SF Mono", "Cascadia Code", monospace;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    box-sizing: border-box;
    word-break: break-word;
}

#player-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0d0f12;
    border: 1px solid #2a2e37;
    border-radius: 8px;
    padding: 10px 14px;
}

.player-row .kick-btn {
    border-color: #7a3535;
    color: #e88a8a;
    padding: 6px 16px;
    font-size: 13px;
}

.player-row .kick-btn:hover {
    background: #2a1717;
}

.no-players {
    color: #9a9ea6;
    text-align: center;
    padding: 20px 0;
    grid-column: 1 / -1;
}

footer {
    margin-top: 60px;
    text-align: center;
}

footer .version {
    color: #9a9ea6;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

footer .alpha-notice {
    max-width: 460px;
    margin: 10px auto 0;
    color: #5c6069;
    font-size: 12px;
    line-height: 1.6;
}

footer .alpha-notice b {
    color: #9a9ea6;
}

.panel-section {
    width: 100%;
    max-width: 1800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.panel-section .clips-filter-bar {
    justify-content: center;
}

/* ===== Login (staff) ===== */
.login-box {
    background: #14161a;
    border: 1px solid #2a2e37;
    border-radius: 16px;
    padding: 40px 36px;
    width: 100%;
    max-width: 340px;
    margin-top: 60px;
    position: relative;
}

.login-box h1 {
    text-align: center;
    font-size: 22px;
    margin-bottom: 28px;
}

.login-box form {
    display: flex;
    flex-direction: column;
}

.login-box label {
    font-size: 13px;
    color: #9a9ea6;
    margin-bottom: 6px;
    margin-top: 14px;
}

.login-box input {
    background: #0d0f12;
    border: 1px solid #2a2e37;
    border-radius: 8px;
    color: #e4e6eb;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s ease;
}

.login-box input:focus {
    border-color: #4ade80;
}

.login-box button {
    margin-top: 24px;
    background: #1a1d23;
    border: 1px solid #2a2e37;
    border-radius: 999px;
    color: #e4e6eb;
    padding: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.login-box button:hover {
    background: #23272f;
}

.login-box button:active {
    transform: scale(0.97);
}

.login-error-message {
    color: #e74c3c;
    font-size: 14px;
    text-align: center;
    margin-bottom: 16px;
}

.login-back-link {
    position: fixed;
    top: 24px;
    left: 24px;
    color: #9a9ea6;
    font-size: 14px;
    text-decoration: none;
}

.login-back-link:hover {
    color: #e4e6eb;
}

.lockout-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 15, 18, 0.92);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    text-align: center;
    border-radius: inherit;
    z-index: 10;
}

.lockout-overlay-text {
    color: #e74c3c;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

/* ===== Modals (generic) ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    z-index: 250;
}

.modal-box {
    background: #14161a;
    border: 1px solid #2a2e37;
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
}

#user-detail-modal .modal-box {
    max-width: 700px;
}

.modal-box h3 {
    margin-top: 0;
    font-size: 18px;
}

.modal-box p {
    color: #9a9ea6;
    font-size: 14px;
}

.modal-box form {
    display: flex;
    flex-direction: column;
}

.modal-box label {
    font-size: 13px;
    color: #9a9ea6;
    margin-bottom: 6px;
}

.modal-box input,
.modal-box select {
    background: #0d0f12;
    border: 1px solid #2a2e37;
    border-radius: 8px;
    color: #e4e6eb;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s ease;
    appearance: none;
    -webkit-appearance: none;
}

.modal-box select {
    background-image: var(--icon-chevron);
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.modal-box input:focus,
.modal-box select:focus {
    border-color: #ff7a1f;
}

.modal-box textarea {
    background: #0d0f12;
    border: 1px solid #2a2e37;
    border-radius: 8px;
    color: #e4e6eb;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
    resize: vertical;
    font-family: inherit;
}

.modal-box textarea:focus {
    border-color: #ff7a1f;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.modal-actions button {
    flex: 1;
    border-radius: 999px;
    padding: 10px;
    font-size: 14px;
}

.modal-actions .secondary {
    background: transparent;
    border-color: #2a2e37;
    color: #9a9ea6;
}

.modal-close-x {
    position: absolute;
    z-index: 5;
    top: 16px;
    right: 16px;
    background: rgba(13, 15, 18, 0.7);
    border: none;
    border-radius: 50%;
    color: #9a9ea6;
    font-size: 22px;
    padding: 0;
    width: 32px;
    height: 32px;
}

.modal-close-x:hover {
    color: #e4e6eb;
}

#current-map-name {
    color: #e4e6eb;
    font-weight: 600;
}

#map-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background-color: #0d0f12;
    background-image: var(--icon-chevron);
    background-repeat: no-repeat;
    background-position: right 14px center;
    border: 1px solid #2a2e37;
    border-radius: 8px;
    color: #e4e6eb;
    padding: 10px 36px 10px 12px;
    font-size: 14px;
    margin-top: 12px;
    cursor: pointer;
}

.input-error {
    border-color: #e74c3c !important;
}

.field-error-message {
    display: block;
    color: #e74c3c;
    font-size: 13px;
    margin-top: 6px;
}

/* ===== Link Account modal ===== */
#link-account-modal .modal-box {
    padding: 40px 36px;
    text-align: center;
}

#link-account-modal h3 {
    color: #ffffff;
    font-size: 20px;
    letter-spacing: 0.3px;
    margin-bottom: 28px;
}

#link-account-modal p {
    color: #9a9ea6;
    font-size: 14px;
}

#link-account-modal p:first-of-type {
    font-size: 13px;
    color: #9a9ea6;
    max-width: 220px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

#link-account-modal #link-account-initial p {
    max-width: none;
    white-space: nowrap;
    margin-top: 8px;
    margin-bottom: 0;
}

#link-account-modal .modal-actions {
    margin-top: 32px;
    justify-content: center;
}

#generate-link-code-btn {
    background: linear-gradient(90deg, #ff3b1f, #ff7a1f, #ffae1f, #ff7a1f, #ff3b1f);
    background-size: 300% 100%;
    animation: fire-flow 4s linear infinite;
    border: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    border-radius: 999px;
    padding: 14px 32px;
    box-shadow: 0 0 20px rgba(255, 122, 31, 0.35);
    margin-bottom: 20px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

#generate-link-code-btn:hover {
    box-shadow: 0 0 28px rgba(255, 122, 31, 0.5);
}

.link-code-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ff7a1f;
    margin-top: 20px;
    margin-bottom: 8px;
}

.link-code {
    font-family: 'Courier New', monospace;
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 3px;
    border-radius: 12px;
    padding: 18px 32px;
    margin-bottom: 20px;
    display: inline-block;
    box-shadow: 0 0 24px rgba(255, 122, 31, 0.3);
}

.link-account-countdown {
    font-family: monospace;
    font-size: 20px;
    font-weight: 700;
    color: #e4e6eb;
    margin: 4px 0;
}

.link-account-status {
    font-size: 13px;
    color: #9a9ea6;
    margin-top: 8px;
}

.waiting-dots {
    display: inline-block;
    width: 1.2em;
    text-align: left;
}

.link-success-text {
    color: #4ade80;
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0;
}

/* ===== Profile in-game stats (compact grid) ===== */
.ingame-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
}

.ingame-stats-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 10px;
    line-height: 1.4;
}

.ingame-stat-tile {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--bg-page);
    border: 1px solid var(--border-default);
    border-radius: 10px;
    padding: 12px 14px;
}

.ingame-stat-tile svg {
    color: var(--accent-fire);
}

.ingame-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.ingame-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* ===== Sidebar shell ===== */
.hamburger-btn {
    background: transparent;
    border: none;
    color: #e4e6eb;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    align-self: center;
}

.hamburger-btn:hover {
    background: #ffffff0d;
}

.site-sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 240px;
    height: calc(100vh - var(--header-height));
    background: transparent;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 200;
    padding: 14px 0 20px;
    display: flex;
    flex-direction: column;
}

.site-sidebar.open {
    transform: translateX(0);
}

html.sidebar-open-preload body {
    margin-left: 240px;
    transition: none;
}

html.sidebar-open-preload .site-sidebar {
    transform: translateX(0);
    transition: none;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.sidebar-nav-bottom {
    margin-top: auto;
    margin-bottom: 12px;
}

.sidebar-nav-bottom a {
    padding: 12px 24px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    margin: 0 12px;
    border-radius: 8px;
    color: #e4e6eb;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-nav a:hover {
    background: #ffffff0d;
}

.sidebar-nav a.active {
    background: transparent;
    color: #ffffff;
    font-weight: 700;
}

.sidebar-nav a svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.sidebar-link-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 20px;
    margin: 0 12px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: #e4e6eb;
    font-size: 15px;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    width: calc(100% - 24px);
}

.sidebar-link-btn:hover {
    background: #ffffff0d;
}

.sidebar-stats {
    padding: 16px 24px 16px 44px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sidebar-stats-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #9a9ea6;
    text-align: left;
    margin-bottom: 12px;
}

.sidebar-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
    margin-bottom: 12px;
}

.sidebar-stats-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    margin-bottom: 20px;
}

.sidebar-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #e4e6eb;
    text-decoration: none;
}

.sidebar-stat-item svg {
    color: #9a9ea6;
    flex-shrink: 0;
}

.sidebar-stat-value {
    font-size: 16px;
    font-weight: 600;
}

.sidebar-notif-trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: #e4e6eb;
    cursor: pointer;
}

.sidebar-ingame-row {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.sidebar-ingame-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.sidebar-ingame-value {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.sidebar-ingame-label {
    font-size: 11px;
    color: #9a9ea6;
}

.sidebar-stats-subtitle {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #9a9ea6;
    display: block;
    text-align: left;
}

.sidebar-stats-empty {
    font-size: 12px;
    color: #5c6069;
    margin: 6px 0 0;
    line-height: 1.5;
    text-align: left;
}

.sidebar-footer {
    padding: 10px 24px 4px 44px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-footer span {
    font-size: 11px;
    color: #5c6069;
    line-height: 1.5;
}

/* ===== Header / top nav ===== */
.site-header {
    position: relative;
    width: 100%;
    background: #0d0f12;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 6px 40px 10px;
    gap: 16px;
    transition: opacity 0.2s ease;
}

.site-header.dimmed {
    opacity: 0.15;
    pointer-events: none;
}

.site-header-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 150;
}

.announcement-bar {
    position: relative;
    width: 100%;
    height: 38px;
    background: var(--bg-page);
    border-bottom: none;
    overflow: hidden;
}

.announcement-track {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.announcement-track span {
    padding: 0 24px;
    flex-shrink: 0;
}

.announcement-track .announcement-sep {
    color: var(--accent-fire);
    display: inline-flex;
    align-items: center;
    padding: 0 4px;
}

@keyframes announcement-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.trickshot-ticker {
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 38px;
    background: linear-gradient(90deg, #ff3b1f, #ff7a1f, #ffae1f, #ff7a1f, #ff3b1f);
    background-size: 300% 100%;
    animation: fire-flow 3s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 rgba(255, 122, 31, 0);
    transition: top 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
}

.trickshot-ticker.show {
    top: 0;
    box-shadow: 0 4px 20px rgba(255, 122, 31, 0.5);
}

.trickshot-ticker .ts-icon {
    display: inline-block;
    animation: ts-pulse 0.6s ease-in-out infinite alternate;
}

@keyframes ts-pulse {
    from { transform: scale(1); }
    to { transform: scale(1.25); }
}

.trickshot-ticker .ts-user {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.trickshot-ticker .ts-user:hover {
    opacity: 0.8;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    height: 100%;
}

.site-nav .discord-btn {
    margin-top: 0;
}

.nav-center-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.clip-search-nav {
    width: 100%;
    max-width: 640px;
    background: transparent;
    border: 1px solid #2a2e37;
    border-radius: 999px;
    color: #e4e6eb;
    padding: 12px 22px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.clip-search-nav:focus {
    outline: none;
    border-color: transparent;
    background-image:
        linear-gradient(#14161a, #14161a),
        linear-gradient(90deg, #ff3b1f, #ff7a1f, #ffae1f, #ff7a1f, #ff3b1f);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-size: 100% 100%, 300% 100%;
    animation: fire-flow 3s linear infinite;
}

.clip-search-nav::placeholder {
    color: #5c6069;
}

.logo-small {
    width: 220px;
    height: auto;
    filter: brightness(0) invert(1);
    display: block;
    margin: auto 0;
}

.auth-area {
    justify-self: end;
}

.discord-btn {
    margin-top: 50px;
    background: #5865f2;
    color: #ffffff;
    border-radius: 999px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.1s ease;
}

.discord-btn:hover {
    background: #4752c4;
}

.discord-btn:active {
    transform: scale(0.97);
}

.discord-btn.small {
    padding: 12px 20px;
    font-size: 14px;
}

/* Submit Clip modal's login prompt reuses .discord-btn, but that class's
   margin-top: 50px is meant for the full-page staff login screen — inside
   a modal it just pushes the button down awkwardly. Cancel it out here. */
#submit-clip-login-prompt .discord-btn {
    margin-top: 0;
}

/* ===== User menu / dropdown ===== */
.user-menu {
    position: relative;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 20px;
    transition: background 0.15s ease;
}

.user-trigger:hover {
    background: #ffffff0d;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.user-name {
    color: #9a9ea6;
    font-size: 16px;
    font-weight: 600;
}

.user-chevron {
    font-size: 13px;
    color: #9a9ea6;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 52px;
    right: 0;
    background: #14161a;
    border: 1px solid #2a2e37;
    border-radius: 8px;
    min-width: 180px;
    overflow: hidden;
    z-index: 100;
}

#user-detail-modal .modal-box {
    max-width: 700px;
}

.user-dropdown.open {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 10px 16px;
    color: #e4e6eb;
    text-decoration: none;
    font-size: 14px;
}

.user-dropdown a:hover {
    background: #ffffff0d;
}

.user-dropdown .dropdown-link-btn {
    display: block !important;
    width: 100% !important;
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: #e4e6eb;
    text-decoration: none;
    font-size: 14px;
    font-family: inherit;
    text-align: left !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    margin: 0;
    box-sizing: border-box;
}

.user-dropdown .dropdown-link-btn:hover {
    background: #ffffff0d;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-self: end;
    position: relative;
}

.notif-bell-btn {
    position: relative;
    background: transparent;
    border: none;
    color: #9a9ea6;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.notif-bell-btn:hover {
    background: #ffffff0d;
    color: #e4e6eb;
}

.notif-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #e24b4a;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.notif-dropdown {
    display: none;
    position: absolute;
    top: 52px;
    right: 0;
    background: #14161a;
    border: 1px solid #2a2e37;
    border-radius: 8px;
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
}

.notif-dropdown.open {
    display: block;
}

.notif-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #2a2e37;
    transition: background 0.15s ease;
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-item:hover {
    background: #ffffff0d;
}

.notif-item.unread {
    background: #ffffff08;
}

.notif-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    text-decoration: none;
    color: #e4e6eb;
    flex: 1;
    min-width: 0;
}

.notif-link:hover {
    background: #ffffff0d;
}

.notif-delete-btn {
    background: transparent;
    border: none;
    color: #5c6069;
    font-size: 16px;
    padding: 0 12px;
    flex-shrink: 0;
}

#delete-clip-modal {
    z-index: 260;
}

.notif-delete-btn:hover {
    color: #e88a8a;
}

.notif-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.notif-text {
    flex: 1;
    font-size: 13px;
    line-height: 1.4;
}

.notif-time {
    font-size: 11px;
    color: #5c6069;
    flex-shrink: 0;
}

.notif-empty {
    padding: 20px;
    text-align: center;
    color: #5c6069;
    font-size: 13px;
}

/* ===== Hero / home ===== */

.home-updates-section {
    width: 100%;
    max-width: 900px;
    margin: 60px auto 40px;
}

.home-update-post {
    background: var(--bg-panel);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 16px;
}

.home-update-post-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 10px;
}

.home-update-post-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.home-update-post-time {
    font-size: 12px;
    color: var(--text-dim);
    flex-shrink: 0;
}

.home-update-post-body {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: var(--header-height);
    margin-bottom: -20px;
    position: relative;
    width: 100%;
    max-width: 100%;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.hero-tagline {
    color: #9a9ea6;
    font-size: 15px;
    margin-bottom: 28px;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.hero-scroll-down {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(13, 15, 18, 0.6);
    border: 1px solid var(--border-default);
    color: #ffffff;
    cursor: pointer;
    z-index: 4;
    animation: hero-scroll-bounce 2s ease-in-out infinite;
}

.hero-scroll-down:hover {
    border-color: var(--accent-fire);
    color: var(--accent-fire);
}

@keyframes hero-scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

.hero-slide-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.hero-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slide-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-page) 0%, rgba(13, 15, 18, 0.2) 60%);
}

.hero-slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 24px;
    gap: 12px;
}

.hero-slide-title {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.hero-slide-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin: 0;
    max-width: 600px;
}

.hero-slide-cta {
    margin-top: 8px;
}

.hero-slide-dots {
    position: absolute;
    bottom: 56px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.hero-slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    padding: 0;
    cursor: pointer;
}

.hero-slide-dot.active {
    background: var(--accent-fire);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(13, 15, 18, 0.6);
    border: 1px solid var(--border-default);
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-arrow-left { left: 16px; }
.hero-arrow-right { right: 16px; }

.landing-viewport {
    position: relative;
    width: 100%;
    margin-top: var(--header-height);
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: calc(100vh - var(--header-height));
    overflow: hidden;
}

#landing-viewport .hero {
    margin-top: 0;
    margin-bottom: 0;
    flex: 0 0 62%;
    min-height: 0;
}

/* ==== Live trickshot ticker (home) ==== */
.netflix-row {
    scroll-margin-top: calc(var(--header-height) + 20px);
}

.trickshot-feed-section {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 20px 0 24px;
    scroll-margin-top: calc(var(--header-height) + 20px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.trickshot-feed-user {
    color: var(--accent-fire);
    font-weight: 600;
    text-decoration: none;
}

.trickshot-feed-user:hover {
    text-decoration: underline;
}

.trickshot-feed-columns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.trickshot-feed-column {
    flex: 0 0 300px;
    text-align: center;
}

.trickshot-feed-column-header {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.trickshot-feed-column-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trickshot-feed-column-count {
    font-size: 12px;
    color: var(--accent-fire);
    font-weight: 700;
}

.trickshot-feed-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 0;
    color: var(--text-muted);
}

.trickshot-feed-row .trickshot-feed-time {
    display: block;
    color: var(--text-dim) !important;
    font-size: 11px !important;
    font-weight: 400;
    margin-top: 2px;
}

.trickshot-feed-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    text-align: center;
    margin: 0 0 14px;
}

.trickshot-feed-rank-0 {
    font-size: 14px;
    opacity: 1;
}

.trickshot-feed-rank-1 {
    font-size: 13px;
    opacity: 0.6;
}

.trickshot-feed-rank-2 {
    font-size: 12px;
    opacity: 0.35;
}


.trickshot-server-count-pill strong {
    color: var(--accent-fire);
}


.trickshot-feed-scroll::-webkit-scrollbar {
    display: none;
}

/* ===== Servers page ===== */
.server-banners {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.server-banner {
    background: #14161a;
    border: 1px solid #2a2e37;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    min-height: 150px;
}

.server-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #14161a 45%, rgba(20, 22, 26, 0.75) 75%, rgba(20, 22, 26, 0.35) 100%);
    z-index: 0;
}

.server-banner > * {
    position: relative;
    z-index: 1;
}

.server-banner.online {
    border-color: #2f6f4f;
}

.section-heading {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9a9ea6;
    text-align: center;
    margin-bottom: 20px;
}

.banner-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.banner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.server-name {
    font-size: 15px;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.online {
    background: #4ade80;
    box-shadow: 0 0 6px #4ade80;
}

.status-dot.offline {
    background: #6b7280;
}

.banner-map {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.banner-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.banner-gametype {
    background: #1a1d23;
    border: 1px solid #2a2e37;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #9a9ea6;
}

.banner-players {
    font-size: 14px;
    font-weight: 600;
    color: #4ade80;
}

.banner-offline-text {
    color: #6b7280;
    font-size: 14px;
    padding: 16px 0;
    text-align: center;
}

/* ===== Coming soon ===== */
.coming-soon-section {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 100px 24px 40px;
    text-align: center;
}

.coming-soon-box {
    max-width: 480px;
    display: flex;
    flex-direction: column;
}

.coming-soon-tag {
    order: 1;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #e4e6eb;
    opacity: 0.6;
    margin-bottom: 8px;
}

.coming-soon-title {
    order: 2;
    font-size: 28px;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 8px;
}

.coming-soon-desc {
    order: 3;
    font-size: 14px;
    color: #e4e6eb;
    opacity: 0.7;
}

/* ===== Profile ===== */
.profile-section {
    position: relative;
    width: 100%;
    max-width: 1800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    margin-bottom: 24px;
}

.profile-header-info {
    text-align: left;
    min-width: 0;
    flex-shrink: 1;
}

.profile-discord-username {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    color: var(--text-muted);
    font-size: 13px;
}

.profile-name-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    flex-wrap: wrap;
}

.profile-name-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.profile-discord-link {
    display: inline-flex;
    align-items: center;
    color: #5865f2;
    transition: opacity 0.15s ease;
}

.profile-discord-link:hover {
    opacity: 0.75;
}

.profile-socials {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-socials a {
    display: inline-flex;
    color: var(--text-muted);
    transition: color 0.15s ease;
}

.profile-socials a:hover {
    color: var(--hover-color, var(--accent-fire));
}

.profile-socials svg {
    width: 20px;
    height: 20px;
}

.profile-avatar-large {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.profile-clips {
    width: 100%;
}

.profile-display-name {
    font-size: 24px;
    font-weight: 700;
    color: #e4e6eb;
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.profile-basic-totals {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 10px;
}

.profile-stats-column {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
    flex: 1;
    align-self: flex-start;
}

.profile-stats-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    font-weight: 700;
}

.profile-totals {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 14px 28px;
}

.profile-total-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #9a9ea6;
}

.profile-total-item svg {
    width: 15px;
    height: 15px;
}

.profile-edit-name-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border-default);
    color: var(--text-muted);
    border-radius: 50%;
    flex-shrink: 0;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.profile-edit-name-btn:hover {
    border-color: var(--accent-fire);
    color: var(--accent-fire);
}
.profile-edit-name-btn:hover {
    border-color: var(--accent-fire);
    color: var(--accent-fire);
}

.display-name-input {
    background: #0d0f12;
    border: 1px solid #2a2e37;
    border-radius: 8px;
    color: #e4e6eb;
    padding: 8px 14px;
    font-size: 20px;
    outline: none;
    max-width: 280px;
}

.display-name-input:focus {
    border-color: var(--accent-fire);
}

.back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    padding: 10px 22px;
    border: 1px solid var(--border-default);
    border-radius: 999px;
    transition: border-color 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
}

.back-link:hover {
    color: #e4e6eb;
    border-color: var(--accent-fire);
}

#open-manage-clips {
    display: flex;
    margin: 16px auto 0;
    width: fit-content;
}

#manage-clips-modal .modal-box {
    max-width: 960px;
}

#manage-clips-modal .clip-media {
    height: auto;
    aspect-ratio: 16 / 9;
}

/* ===== Badges ===== */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
}

.badge-role {
    font-weight: 700;
}

.mini-badge {
    display: inline-block;
    border: 1px solid;
    border-radius: 999px;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
}

/* ===== Clips gallery ===== */
.clips-gallery-section {
    width: 100%;
    max-width: 1800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-top: 12px;
}

.clips-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    justify-content: flex-start;
}

.clip-card {
    background: #14161a;
    border: 1px solid #2a2e37;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: border-color 0.15s ease;
}

.clip-card:hover {
    border-color: #ff7a1f;
    box-shadow: 0 0 16px rgba(255, 122, 31, 0.15);
}

.clip-media {
    position: relative;
    width: 100%;
    height: 280px;
    background: #0d0f12;
    cursor: pointer;
}

.clip-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.clip-thumb-placeholder {
    width: 100%;
    height: 100%;
}

.clip-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    transition: background 0.15s ease;
}

.clip-media:hover .clip-play-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.clip-play-icon {
    font-style: normal;
    font-size: 22px;
    color: #ffffff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
}

.clip-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.clip-info {
    padding: 12px 14px;
}

.clip-info-clickable {
    cursor: pointer;
}

.clip-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.clip-info-main {
    min-width: 0;
}

.clip-info-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.clip-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.clip-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.clip-title-row .clip-title {
    flex: 1;
    margin-bottom: 0;
}

.clip-title-input {
    flex: 1;
    background: #0d0f12;
    border: 1px solid #2a2e37;
    border-radius: 6px;
    color: #e4e6eb;
    padding: 6px 10px;
    font-size: 14px;
    outline: none;
}

.clip-title-input:focus {
    border-color: #4ade80;
}

.clip-edit-btn {
    background: transparent;
    border: 1px solid #2a2e37;
    color: #9a9ea6;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    flex-shrink: 0;
}

.clip-edit-btn:hover {
    border-color: var(--accent-fire);
    color: var(--accent-fire);
}

.clip-author-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.clip-author {
    font-size: 12px;
    color: #9a9ea6;
    font-weight: 600;
}

.clip-author-link {
    text-decoration: none;
}

.clip-author-link:hover .clip-author {
    color: #4ade80;
}

.clip-meta-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.clip-tags {
    display: flex;
    gap: 6px;
}

.clip-tag {
    background: #1a1d23;
    border: 1px solid #2a2e37;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 11px;
    color: #9a9ea6;
    white-space: nowrap;
}

.clip-time {
    font-size: 12px;
    color: #5c6069;
}

.clip-delete-btn {
    margin-top: 10px;
    width: 100%;
    background: transparent;
    border: 1px solid #7a3535;
    color: #e88a8a;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
}

.clip-delete-btn:hover {
    background: #2a1717;
}

.clip-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
}

.clip-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #5c6069;
    background: transparent;
    border: none;
    padding: 0;
}

.stat-icon {
    width: 18px;
    height: 18px;
}

.comment-stat {
    cursor: pointer;
}

.comment-stat:hover {
    color: #4ade80;
}

.fire-stat {
    cursor: pointer;
    transition: color 0.15s ease;
}

.fire-stat:hover,
.fire-stat.fired {
    color: #f97316;
}

.fire-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid #2a2e37;
    border-radius: 999px;
    padding: 10px 18px;
    margin-top: 16px;
    color: #9a9ea6;
    font-size: 14px;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.fire-btn svg {
    fill: currentColor;
}

.fire-btn:hover,
.fire-btn.fired {
    border-color: #f97316;
    color: #f97316;
}

/* ===== Clip detail modal ===== */
.clip-detail-box {
    position: relative;
    max-width: 720px;
}

.clip-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-top: 16px;
}

.clip-detail-header-main {
    min-width: 0;
}

.clip-detail-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0d0f12;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: none;
    margin-top: 36px;
}

.clip-detail-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.clip-detail-title {
    font-size: 18px;
    font-weight: 600;
    margin-top: 16px;
}

.clip-detail-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.clip-detail-tags {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.clip-detail-tag {
    background: #1a1d23;
    border: 1px solid #2a2e37;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    color: #9a9ea6;
}

.clip-detail-tag.clip-tag-trick {
    background: transparent;
    border-color: #ff7a1f;
    color: #ff7a1f;
}

.clip-detail-description {
    color: #9a9ea6;
    font-size: 14px;
    line-height: 1.6;
    margin: 12px 0 0;
}

.clip-comments-section {
    margin-top: 24px;
}

.clip-comments-section h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9a9ea6;
    margin-bottom: 12px;
}

.comments-list {
    max-height: 240px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.comment-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.comment-body {
    flex: 1;
}

.comment-content {
    color: #e4e6eb;
    font-size: 14px;
    margin: 4px 0 0;
}

.comment-delete-btn {
    background: transparent;
    border: none;
    color: #5c6069;
    font-size: 18px;
    padding: 0 4px;
    line-height: 1;
}

.comment-delete-btn:hover {
    color: #e88a8a;
}

.comment-form {
    display: flex;
    gap: 8px;
}

.comment-form input {
    flex: 1;
    background: #0d0f12;
    border: 1px solid #2a2e37;
    border-radius: 8px;
    color: #e4e6eb;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
}

.comment-form input:focus {
    border-color: #4ade80;
}

.comment-form button {
    border-radius: 8px;
}

.comment-reply {
    margin-left: 40px;
    border-left: 2px solid #2a2e37;
    padding-left: 12px;
}

.comment-reply-btn {
    background: transparent;
    border: none;
    color: #5c6069;
    font-size: 12px;
    padding: 0;
    margin-top: 4px;
}

.comment-reply-btn:hover {
    color: #4ade80;
}

#cancel-reply-btn {
    background: transparent;
    border: 1px solid #2a2e37;
    color: #9a9ea6;
    border-radius: 8px;
    padding: 8px 12px;
}

.comment-mention {
    color: #4ade80;
    font-weight: 600;
    text-decoration: none;
}

.mention-dropdown {
    display: none;
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    background: #14161a;
    border: 1px solid #2a2e37;
    border-radius: 8px;
    width: 220px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
}

.mention-dropdown.open {
    display: block;
}

.mention-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
}

.mention-option:hover {
    background: #ffffff0d;
}

/* ===== Clips filter bar ===== */
.clips-filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    margin-bottom: 16px;
}

.filter-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #5c6069;
    margin-right: 2px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-select {
    background-color: #0d0f12;
    border: 1px solid #2a2e37;
    border-radius: 999px;
    color: #9a9ea6;
    padding: 8px 32px 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'><path d='M12 5v14M5 12h14' stroke='%238b8f98' stroke-width='2' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.filter-select:focus {
    border-color: #ff7a1f;
}

.filter-select option {
    background: #14161a;
    color: #e4e6eb;
}

.filter-chips-inline {
    display: flex;
    gap: 8px;
}

.filter-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid #ff7a1f;
    color: #ff7a1f;
    border-radius: 999px;
    padding: 7px 6px 7px 14px;
    font-size: 13px;
    font-weight: 600;
}

.filter-chip-remove {
    background: transparent;
    border: none;
    color: #ff7a1f;
    font-size: 14px;
    padding: 0 4px;
    line-height: 1;
}

.filter-chip-remove:hover {
    color: #e88a8a;
}

/* ===== Clip approval (staff) ===== */
.clip-approval-desc {
    font-size: 13px;
    color: #9a9ea6;
    margin: 8px 0;
}

.clip-approval-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.approve-clip-btn {
    background: #2ecc71;
    color: #0d0f12;
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.reject-clip-btn {
    background: transparent;
    color: #e74c3c;
    border: 1px solid #e74c3c;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

/* ===== Tickets (staff) ===== */
.ticket-filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.ticket-filter-btn {
    background: var(--bg-page);
    border: 1px solid var(--border-default);
    color: var(--text-muted);
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.ticket-filter-btn:hover {
    border-color: var(--accent-fire);
    color: var(--accent-fire);
}

.ticket-filter-btn.active {
    background: var(--accent-fire);
    color: #0d0f12;
    border-color: var(--accent-fire);
}

.tickets-list {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ticket-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #14161a;
    border: 1px solid #2a2e37;
    border-radius: 10px;
    padding: 16px 20px;
}

.ticket-row-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.ticket-type {
    font-weight: 600;
    color: #e4e6eb;
}

.ticket-status-badge {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 10px;
    border-radius: 999px;
}

.ticket-status-badge.open {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
}

.ticket-status-badge.closed {
    background: rgba(154, 158, 166, 0.15);
    color: #9a9ea6;
}

.ticket-row-meta {
    font-size: 13px;
    color: #9a9ea6;
}

.ticket-owner-link {
    color: #9a9ea6;
    text-decoration: none;
}

.ticket-owner-link:hover {
    color: #e4e6eb;
}

.close-ticket-btn {
    background: transparent;
    border: 1px solid #e74c3c;
    color: #e74c3c;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
}

.ticket-details {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: inherit;
    font-size: 13px;
    white-space: normal;
}

.ticket-detail-row {
    display: flex;
    gap: 6px;
}

.ticket-detail-label {
    font-weight: 600;
    color: #e4e6eb;
    flex-shrink: 0;
}

.ticket-detail-value {
    color: #9a9ea6;
}

/* ===== Animations ===== */
@view-transition {
    navigation: auto;
}

::view-transition-old(root) {
    animation: fade-out 0.18s cubic-bezier(0.4, 0, 1, 1) forwards;
}

::view-transition-new(root) {
    animation: pop-in 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fade-out {
    to { opacity: 0; }
}

@keyframes pop-in {
    from {
        opacity: 0;
        transform: translateY(6px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fire-flow {
    0% { background-position: 0 0, 0% 50%; }
    100% { background-position: 0 0, 300% 50%; }
}

.fire-border {
    border: 2px solid transparent;
    background-image:
        linear-gradient(#0d0f12, #0d0f12),
        linear-gradient(90deg, #ff3b1f, #ff7a1f, #ffae1f, #ff7a1f, #ff3b1f);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-size: 100% 100%, 300% 100%;
    animation: fire-flow 3s linear infinite;
}

.fire-text-glow {
    text-shadow: 0 0 14px rgba(255, 122, 31, 0.65);
}

.submit-clip-nav-btn {
    background: #ffffff;
    border: none;
    color: #0d0f12;
    font-weight: 700;
    font-size: 13px;
    border-radius: 999px;
    padding: 12px 18px;
    cursor: pointer;
    white-space: nowrap;
}

.submit-clip-nav-btn:hover {
    background: #e4e6eb;
}

.trickshot-visibility-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #9a9ea6;
    cursor: pointer;
}

#submit-modal-overlay #submit-clip-success {
    text-align: center;
}

#submit-modal-overlay #submit-clip-success h3 {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 12px;
}

#submit-modal-overlay .modal-box h3 {
    color: #ffffff;
    text-align: center;
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ff7a1f;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    margin: 0;
}

input[type="checkbox"]:checked {
    background: #ff7a1f;
}

input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 45%;
    width: 4px;
    height: 8px;
    border: solid #0d0f12;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

.clip-tag-trick {
    background: #1a1d23;
    border-color: #2a2e37;
    color: #9a9ea6;
}

.profile-activity {
    width: 100%;
    margin-top: 32px;
}

.activity-trickshot-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #14161a;
    border: 1px solid #2a2e37;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 8px;
    font-size: 14px;
}

.activity-claimed-badge {
    font-size: 11px;
    color: #4ade80;
    font-weight: 600;
}

.activity-unclaimed-badge {
    font-size: 11px;
    color: #9a9ea6;
}

.clip-star-btn {
    margin-top: 8px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    border: 1px solid #2a2e37;
    color: #9a9ea6;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
}

.clip-star-btn.starred {
    border-color: #ff7a1f;
    color: #ff7a1f;
}

.activity-clickable {
    cursor: pointer;
}

.activity-clickable:hover {
    border-color: #ff7a1f;
}

.content-input {
    background: #0d0f12;
    border: 1px solid #2a2e37;
    border-radius: 8px;
    color: #e4e6eb;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
    color-scheme: dark;
    font-family: inherit;
}

.content-input:focus {
    border-color: #ff7a1f;
}

.color-swatch-input {
    -webkit-appearance: none;
    appearance: none;
    width: 42px;
    height: 42px;
    border: 1px solid #2a2e37;
    border-radius: 8px;
    padding: 0;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
}

.color-swatch-input::-webkit-color-swatch-wrapper {
    padding: 4px;
}

.color-swatch-input::-webkit-color-swatch {
    border: none;
    border-radius: 5px;
}

.challenge-badge-row {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
}

.challenge-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--badge-color, #ff7a1f);
    background-color: #0d0f12;
    background-image:
        linear-gradient(#0d0f12, #0d0f12),
        linear-gradient(90deg,
            var(--badge-color, #ff7a1f),
            color-mix(in srgb, var(--badge-color, #ff7a1f) 40%, white),
            var(--badge-color, #ff7a1f)
        );
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-size: 100% 100%, 300% 100%;
    border: 2px solid transparent;
    animation: fire-flow 4s linear infinite;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.challenge-badge svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    color: var(--badge-color, #ff7a1f);
}

.trickshot-link-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.4;
}

.trickshot-link-hint-action {
    color: var(--accent-fire);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
}

.trickshot-link-hint-action:hover {
    filter: brightness(1.2);
}

.markdown-content p:first-child { margin-top: 0; }
.markdown-content p:last-child { margin-bottom: 0; }
.markdown-content a { color: var(--accent-fire); }
.markdown-content ul, .markdown-content ol { padding-left: 20px; }

.markdown-preview {
    background: var(--bg-page);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
}

.netflix-rows {
    width: 100%;
    max-width: 1800px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin: 40px auto 0;
    scroll-margin-top: calc(var(--header-height) + 20px);
}

.netflix-row-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.netflix-row-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    margin: 0;
}

.netflix-row-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid var(--border-default);
    color: #ffffff;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.netflix-row-more:hover {
    border-color: var(--accent-fire);
    color: var(--accent-fire);
}

.netflix-row-scroll-wrap,
.netflix-row-empty {
    min-height: 180px;
}

.netflix-row-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    text-align: center;
}

.netflix-row-empty p {
    color: var(--text-muted);
    font-size: 20px;
    margin: 0;
}

.netflix-row-empty-cta {
    background: transparent;
    border: 1px solid var(--accent-fire);
    color: var(--accent-fire);
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.netflix-row-empty-cta:hover {
    background: var(--accent-fire);
    color: #0d0f12;
}

.netflix-row-scroll-wrap {
    position: relative;
}

.netflix-row-challenge .netflix-row-header {
    gap: 12px;
}

.netflix-row-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--challenge-color, var(--accent-fire));
    border: 1px solid var(--challenge-color, var(--accent-fire));
    border-radius: 999px;
    padding: 3px 10px;
}

.netflix-row-challenge .netflix-row-title {
    text-transform: none;
    letter-spacing: normal;
    font-size: 15px;
    font-weight: 700;
}

.netflix-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
}

.netflix-scroll::-webkit-scrollbar {
    display: none;
}

.netflix-scroll.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.netflix-row-fade {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100px;
    background: linear-gradient(to right, transparent, var(--bg-page));
    pointer-events: none;
}

.netflix-scroll-arrow {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(13, 15, 18, 0.85);
    border: 1px solid var(--border-default);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    z-index: 2;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.netflix-scroll-arrow:hover {
    border-color: var(--accent-fire);
    color: var(--accent-fire);
}

.netflix-card {
    flex: 0 0 auto;
    width: 460px;
    background: var(--bg-panel);
    border: 1px solid var(--border-default);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: start;
    transition: border-color 0.15s ease;
}

.netflix-card:hover {
    border-color: var(--accent-fire);
}

.netflix-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: var(--bg-page);
    pointer-events: none;
}

.netflix-card-thumb-placeholder {
    background: var(--bg-page);
}

.netflix-card-info {
    padding: 12px 16px;
    pointer-events: none;
}

.netflix-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.netflix-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.netflix-card-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.netflix-card-info-main {
    min-width: 0;
}

.netflix-card-author {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.netflix-card-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
}

.netflix-card-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    flex-shrink: 0;
    max-width: 45%;
}

.netflix-card-tag {
    background: var(--bg-page);
    border: 1px solid var(--border-default);
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    color: var(--text-muted);
}

.netflix-card-tag-trick {
    border-color: var(--accent-fire);
    color: var(--accent-fire);
}

.netflix-card-time {
    color: var(--text-dim);
}

.gate-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    gap: 16px;
}

.gate-logo {
    width: 420px;
    max-width: 90%;
    height: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 8px;
}

.gate-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

.gate-subtitle {
    color: var(--text-muted);
    font-size: 15px;
    max-width: 480px;
    margin: 0 0 8px;
}

.gate-server-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 16px;
}

.gate-server-pill {
    background: var(--bg-panel);
    border: 1px solid var(--border-default);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.gate-password-toggle {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
    margin-top: 24px;
}

.gate-password-toggle:hover {
    color: var(--accent-fire);
}

.gate-password-form {
    display: flex;
    gap: 8px;
    margin-top: 24px;
}

.gate-password-form input {
    background: var(--bg-panel);
    border: 1px solid var(--border-default);
    border-radius: 999px;
    padding: 10px 18px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}

.gate-password-form input:focus {
    border-color: var(--accent-fire);
}

.gate-password-error {
    color: var(--accent-red);
    font-size: 13px;
    margin-top: 8px;
}

#link-account-modal .modal-box {
    text-align: center;
}

#link-account-modal h3 {
    margin-bottom: 8px;
}

#link-detect-message {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 20px;
}

#link-detect-check-btn {
    background: var(--accent-fire);
    color: #0d0f12;
    border: none;
    border-radius: 999px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

#link-detect-check-btn:hover {
    opacity: 0.85;
}

#link-detect-matches {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.link-player-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-page);
    border: 1px solid var(--border-default);
    border-radius: 10px;
    padding: 14px 18px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.link-player-option:hover {
    border-color: var(--accent-fire);
    background: rgba(255, 122, 31, 0.06);
}

#link-confirm-modal .modal-box {
    text-align: center;
    max-width: 380px;
}

#link-confirm-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-fire);
    margin: 20px 0 28px;
}

#link-confirm-yes {
    background: var(--accent-fire);
    color: #0d0f12;
    border: none;
    border-radius: 999px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    flex: 1;
}

#link-confirm-no {
    background: transparent;
    border: 1px solid var(--border-default);
    color: var(--text-muted);
    border-radius: 999px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    flex: 1;
}

#link-account-success {
    padding: 20px 0;
}

.link-success-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-fire);
}