@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=DM+Sans:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange: #F97316;
  --orange-dark: #EA6C0A;
  --orange-glow: rgba(249,115,22,0.18);
  --bg-deep: #0B0F19;
  --bg-card: #161C2D;
  --bg-input: #0D1120;
  --border: rgba(255,255,255,0.08);
  --border-focus: rgba(249,115,22,0.55);
  --text: #F1F5F9;
  --text-muted: #6B7A99;
  --text-subtle: #9CA3AF;
  --success: #10B981;
  --danger: #EF4444;
  --primary: #F97316;
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--bg-deep);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(249,115,22,0.07) 0%, transparent 60%),
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.04);
  bottom: -100px;
  right: -100px;
  pointer-events: none;
  z-index: 0;
}

.auth-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  animation: fadeUp 0.5s ease both;
}

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


.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 2rem;
}

.brand-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 0 0 6px var(--orange-glow);
}

.brand-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 2px;
}


.auth-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: 20px;
  padding: 2rem 2rem 1.75rem;
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), #FB923C);
}

.auth-icon {
  width: 52px; height: 52px;
  background: var(--orange-glow);
  border: 0.5px solid rgba(249,115,22,0.35);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin: 0 auto 1.25rem;
}

.auth-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.auth-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 1.75rem;
  line-height: 1.4;
}


.auth-tabs {
  display: flex;
  background: var(--bg-input);
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 1.5rem;
}

.auth-tab {
  flex: 1;
  padding: 9px;
  border-radius: 7px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  font-family: 'DM Sans', sans-serif;
}

.auth-tab.active { background: var(--orange); color: #fff; }
.auth-tab:not(.active) { background: transparent; color: var(--text-muted); }
.auth-tab:not(.active):hover { color: var(--text); }


.form-group { margin-bottom: 1rem; }

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-input);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.form-input::placeholder { color: var(--text-muted); }

.form-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--orange-glow);
}

.input-wrap {
  position: relative;
}

.input-wrap .input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.input-wrap .form-input { padding-left: 38px; }


.code-input {
  text-align: center;
  font-size: 2.2rem !important;
  letter-spacing: 0.4em;
  font-weight: 700;
  padding: 14px 12px !important;
}


.btn-primary {
  width: 100%;
  padding: 12px;
  background: var(--orange);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: background .2s, transform .1s, box-shadow .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(249,115,22,0.28);
  margin-top: 0.25rem;
}

.btn-primary:hover {
  background: var(--orange-dark);
  box-shadow: 0 6px 22px rgba(249,115,22,0.4);
}

.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 0.5px solid var(--border);
  border-radius: 10px;
  color: #9CA3AF;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: border-color .2s, color .2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}

.btn-secondary:hover { border-color: rgba(255,255,255,0.18); color: var(--text); }

.btn-ghost {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.btn-ghost:hover { color: var(--text); }


.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 1.25rem 0;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: var(--border);
}

.divider span { font-size: 12px; color: var(--text-muted); }


.alert {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 1rem;
}

.alert-danger {
  background: rgba(239,68,68,0.12);
  border: 0.5px solid rgba(239,68,68,0.3);
  color: #FCA5A5;
}

.alert-success {
  background: rgba(16,185,129,0.12);
  border: 0.5px solid rgba(16,185,129,0.3);
  color: #6EE7B7;
}


.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover { text-decoration: underline; }

.link-muted {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
}

.link-muted:hover { color: var(--text); }


.check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
}

.check-label input[type="checkbox"] { accent-color: var(--orange); }


.debug-strip {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 0.5px solid var(--border);
  text-align: center;
}

.debug-strip a {
  color: #60A5FA;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}


.page-tagline {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}


body.app-body {
  display: block;
  padding: 0;
  align-items: unset;
  justify-content: unset;
  overflow-x: hidden;
}

body.app-body::before {
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px;
}

body.app-body::after { display: none; }


.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: rgba(11,15,25,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
  z-index: 100;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
  width: 220px;
}

.topbar-brand .brand-icon {
  width: 34px; height: 34px;
  font-size: 17px;
  box-shadow: 0 0 0 4px var(--orange-glow);
}

.topbar-brand .brand-name { font-size: 20px; letter-spacing: 1.5px; }

.topbar-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.topbar-search i {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: var(--text-muted);
  pointer-events: none;
}

.topbar-search input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.topbar-search input::placeholder { color: var(--text-muted); }
.topbar-search input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--orange-glow);
}

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-icon-btn {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 0.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: color .2s, border-color .2s;
  text-decoration: none;
}

.topbar-icon-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.18); }

.topbar-bell-btn { position: relative; }
.topbar-bell-btn .notification-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  padding: 0 5px;
}

.notification-page {
  max-width: 920px;
  margin: 100px auto 40px;
  padding: 0 20px;
}

.notification-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 16px;
}

.notification-card .notification-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.notification-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

.notification-card.unread {
  border-color: #ef4444;
  background: rgba(239,68,68,0.06);
}

.notification-card.admin-notification {
  border-color: #ef4444;
  background: rgba(239,68,68,0.09);
}

.notification-card.report-notification {
  border-color: #F59E0B;
  background: rgba(245,158,11,0.12);
}

.notification-card.report-notification .notification-meta span:first-child {
  color: #F59E0B;
}

.notification-card.admin-notification .notification-meta span:first-child {
  color: #ef4444;
}

.notification-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.notification-clear-form {
  text-align: right;
  margin-bottom: 16px;
}

.notification-delete-form {
  margin-top: 14px;
  text-align: right;
}

.topbar-upload-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--orange);
  border: none;
  border-radius: 9px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s;
}

.topbar-upload-btn:hover { background: var(--orange-dark); }

.topbar-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--orange);
  font-weight: 600;
  cursor: pointer;
  position: relative;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 9px;
  border: 0.5px solid var(--border);
  transition: border-color .2s;
}

.topbar-user:hover { border-color: rgba(255,255,255,0.18); }

.topbar-user .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--orange);
  flex-shrink: 0;
}

.topbar-username {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}


.app-layout {
  width: 100%;
  min-height: 100vh;
  padding: 60px 0 0 240px;
  position: relative;
}


.sidebar {
  position: fixed;
  top: 60px;
  left: 0;
  bottom: 0;
  width: 240px;
  background: rgba(11,15,25,0.96);
  border-right: 0.5px solid var(--border);
  overflow-y: auto;
  padding: 1.5rem 0 2rem;
  z-index: 50;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.sidebar-section-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 0 1.25rem;
  margin-bottom: 8px;
  margin-top: 1.25rem;
}

.sidebar-section-label:first-child { margin-top: 0; }

.sidebar-player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 1.25rem;
  border-radius: 0;
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
  border-left: 3px solid transparent;
}

.sidebar-player:hover { background: rgba(255,255,255,0.04); }

.sidebar-player.active {
  background: var(--orange-glow);
  border-left-color: var(--orange);
}

.player-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  color: #fff;
}

.player-info { min-width: 0; }

.player-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-team {
  font-size: 11px;
  color: var(--text-muted);
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 1.25rem;
  cursor: pointer;
  transition: background .15s, color .15s;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  border-left: 3px solid transparent;
}

.sidebar-nav-item i { font-size: 16px; }
.sidebar-nav-item:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.sidebar-nav-item.active { color: var(--orange); border-left-color: var(--orange); }

.sidebar-become-creator {
  color: #60A5FA; /* blue */
  border-left-color: transparent !important; 
}
.sidebar-become-creator:hover { color: var(--text); }

.sidebar-divider {
  height: 0.5px;
  background: var(--border);
  margin: 1rem 1.25rem;
}

.sidebar-logout {
  color: #F87171 !important;
}

.sidebar-logout:hover { background: rgba(239,68,68,0.08) !important; }

.feed-main {
  min-width: 0;
  padding: 1.75rem 2rem 3rem;
}

.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.feed-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.feed-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 0.5px solid var(--border);
  margin-bottom: 1.5rem;
}

.feed-tab {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  border-bottom: 2px solid transparent;
  margin-bottom: -0.5px;
  transition: color .2s, border-color .2s;
  text-decoration: none;
}

.feed-tab:hover { color: var(--text); }
.feed-tab.active { color: var(--orange); border-bottom-color: var(--orange); }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.post-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
  cursor: pointer;
}

.post-card:hover {
  border-color: rgba(249,115,22,0.3);
  transform: translateY(-2px);
}

.post-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #0D1120;
  overflow: hidden;
}

.post-thumb video,
.post-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.post-duration {
  position: absolute;
  bottom: 7px; right: 8px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 5px;
  backdrop-filter: blur(4px);
}

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

.post-card:hover .post-play-overlay { background: rgba(0,0,0,0.28); }

.post-play-overlay i {
  font-size: 32px;
  color: rgba(255,255,255,0);
  transition: color .2s;
}

.post-card:hover .post-play-overlay i { color: rgba(255,255,255,0.9); }

.post-info {
  padding: 10px 12px 12px;
}

.post-caption {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.post-meta span { margin-right: 8px; }

.post-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 7px;
  border: 0.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}

.action-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.18); }

.action-btn.liked {
  color: #F87171;
  border-color: rgba(248,113,113,0.35);
  background: rgba(248,113,113,0.08);
}

.comment-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.comments-panel {
  padding: 12px 0 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.comments-panel.hidden {
  display: none;
}

.comments-panel.open {
  display: block;
}

.comments-panel .comments-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-item {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.025);
}

.comment-item .comment-user {
  font-weight: 700;
  color: var(--text);
  margin-right: 8px;
}

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

.comment-input {
  flex: 1;
}

.comment-btn {
  padding: 10px 14px;
  border-radius: 10px;
  background: #60A5FA;
  border: none;
  color: white;
  cursor: pointer;
}

.comments-section {
  padding: 0 12px 12px;
  border-top: 0.5px solid var(--border);
  margin-top: 0;
  padding-top: 10px;
}

.comment-item {
  font-size: 12px;
  color: var(--text-muted);
  padding: 3px 0;
  line-height: 1.4;
}

.comment-user {
  font-weight: 600;
  color: var(--text);
  margin-right: 6px;
}

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

.comment-input {
  flex: 1;
  padding: 7px 10px;
  background: var(--bg-input);
  border: 0.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 12px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
}

.comment-input::placeholder { color: var(--text-muted); }
.comment-input:focus { border-color: var(--border-focus); }

.comment-btn {
  padding: 7px 12px;
  background: var(--orange);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}

.comment-btn:hover { background: var(--orange-dark); }

.comment-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
}

.comment-modal-overlay.hidden {
  display: none;
}

.comment-modal {
  position: relative;
  width: min(100%, 640px);
  max-height: min(100%, 84vh);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 1rem;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 220ms ease, transform 220ms ease;
}

.comment-modal-overlay:not(.hidden) .comment-modal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.comment-modal h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  color: var(--text);
}

.comment-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
}

.comment-modal-content {
  overflow-y: auto;
  padding-right: 0.5rem;
  max-height: calc(84vh - 96px);
}

body.modal-open {
  overflow: hidden;
}

body.modal-open .topbar,
body.modal-open .app-layout,
body.modal-open .app-alerts {
  filter: blur(4px) brightness(0.75);
}

.badge-creator {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--orange-glow);
  color: var(--orange);
  border: 0.5px solid rgba(249,115,22,0.3);
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.empty-state {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
}

.empty-state-icon { font-size: 3rem; margin-bottom: 1rem; display: block; }
.empty-state h2 { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; color: var(--text); margin-bottom: 8px; }
.empty-state p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

.app-alerts {
  position: fixed;
  top: 70px; right: 1.5rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 320px;
}

.post-avatar-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--orange);
  flex-shrink: 0; 
}

.post-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover; 
}


.post-author {
  display: flex;
  align-items: center;
  gap: 12px;
}


.post-player-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
 
.player-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg,
        rgba(249, 115, 22, 0.12),
        rgba(249, 115, 22, 0.06)
    );
    border: 1px solid rgba(249, 115, 22, 0.30);
    border-radius: 20px;
    padding: 5px 12px 5px 8px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    max-width: 220px;        
}
 
.player-tag-pill:hover {
    background: linear-gradient(135deg,
        rgba(249, 115, 22, 0.22),
        rgba(249, 115, 22, 0.12)
    );
    border-color: rgba(249, 115, 22, 0.60);
    transform: translateY(-1px);
}
 

.player-tag-pill-icon {
    font-size: 13px;
    line-height: 1;
    flex-shrink: 0;
}
 

.player-tag-pill-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--orange);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
 

.player-tag-pill-team {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 5px;
    flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   RESPONZIVITA / MOBIL
   ───────────────────────────────────────────── */

.topbar-menu-btn {
  display: none;
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 0.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  flex-shrink: 0;
  font-family: 'DM Sans', sans-serif;
}

.topbar-menu-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.18); }

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 60px; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.55);
  z-index: 110;
}

.sidebar-overlay.active { display: block; }

@media (max-width: 768px) {
  .topbar { padding: 0 0.75rem; gap: 0.5rem; }
  .topbar-menu-btn { display: flex; }
  .topbar-brand { width: auto; flex-shrink: 0; }
  .topbar-brand .brand-name { display: none; }
  .topbar-search { max-width: none; min-width: 0; }
  .topbar-user .topbar-username { display: none; }
  .topbar-upload-btn { font-size: 0; padding: 7px 10px; }
  .app-layout { padding: 60px 0 0 0; }
  .feed-main { padding: 1rem 0.9rem 2.5rem; }
  .sidebar {
    transform: translateX(-100%);
    transition: transform .25s ease;
    z-index: 120;
    box-shadow: 4px 0 24px rgba(0,0,0,0.5);
  }
  .sidebar.open { transform: translateX(0); }
  .notification-page { margin: 80px auto 40px; padding: 0 12px; }
  .post-full { margin: 70px auto; padding: 12px; }
  .app-alerts {
    top: 50%;
    transform: translateY(-50%);
    left: 0.75rem;
    right: 0.75rem;
    align-items: center;
    max-width: none;
  }
  .app-alerts .alert { text-align: center; }
}

@media (max-width: 420px) {
  .topbar-icon-btn { width: 32px; height: 32px; }
  .topbar-user { padding: 4px 6px; }
  .topbar-user .avatar { width: 26px; height: 26px; }
}
