/* tlc-root-font-enforcement */
:root {
  --tlc-root-font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

html,
body,
button,
input,
select,
textarea,
option {
  font-family: var(--font-family, var(--tlc-root-font-family)) !important;
}

:root {
  --rich-black: #0D0D0D;
  --electric-blue: #2978F0;
  --soft-white: #F5F5F5;
  --warm-beige: #F2E9E4;
  --vivid-coral: #FF5C5C;
  --font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  --header-height: 80px;
  --header-safe-padding: 12px;
  --footer-height: 60px;
  --footer-safe-padding: 12px;
}


html { 
  scroll-padding-top: calc(var(--site-header-height, var(--header-height)) + var(--header-safe-padding)); 
}

body {
  font-family: var(--font-family);
  margin: 0; padding: 0;
  background-color: var(--soft-white);
  color: var(--rich-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
  overflow-x: hidden;
}

button,
.form-button,
a.button,
a[role="button"] {
  border-radius: 999px !important;
  font-family: var(--font-family) !important;
}

/* Keep support/contact pages in their original slightly rounded-square style */
.support-page button,
.contact-page button,
.support-form button,
.contact-form button,
.contact-form .form-button {
  border-radius: 8px !important;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #010203; /* rich black */
  color: #fff;
  display: flex;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 20px 8px 20px;
  justify-content: space-between;
  align-items: center;
  z-index: 20000;
  height: var(--site-header-height);
  box-sizing: border-box;
  box-shadow: 0 2px 18px rgba(0,0,0,0.12);
}

.site-header.site-header--label {
  justify-content: center;
  text-align: center;
}

.site-header.site-header--label .site-brand {
  margin: 0 auto;
  text-align: center;
}

.site-header.artists-inline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 12px;
}

.site-header.artists-inline .site-brand {
  grid-column: 2;
  margin: 0;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
}

.site-header.artists-inline .site-header-right {
  grid-column: 3;
  justify-self: end;
  margin: 0;
  display: flex;
  align-items: center;
}

.site-header.artists-inline .site-header-right a {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

header nav a:last-child {
  margin-right: 5px;
}
header nav a {
  color: #fff !important;
  text-decoration: none;
  font-weight: bold;
  font-size: 20px;
  margin-right: 0.5rem;
  transition: color 0.3s ease;
}

.header nav a:hover {
  color: var(--electric-blue);
}

main {
  width: 100%;
  max-width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: calc(var(--site-header-height) + 12px) 20px 20px;
  display: flex;
  flex-direction: column;
  overflow-x: visible;
  box-sizing: border-box;
}

.footer {
  background-color: var(--rich-black);
  color: var(--soft-white);
  text-align: center;
  padding: calc(var(--footer-safe-padding) + 10px) 0;
  margin-top: 40px;
  font-size: 0.9rem;
  position: relative;
  bottom: 0;
  left: 0;
  right: 0;
}

.after-main-ad {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 16px auto calc(92px + env(safe-area-inset-bottom, 0px));
  padding: 14px 0;
  min-height: 120px;
  line-height: 1.8;
  box-sizing: border-box;
  clear: both;
}

.after-main-ad iframe,
.after-main-ad > div,
.after-main-ad > a {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

@media (max-width: 900px) {
  .after-main-ad {
    margin: 18px auto calc(120px + env(safe-area-inset-bottom, 0px));
    padding: 16px 0 24px;
    min-height: 140px;
    line-height: 2;
  }
}

.site-brand{
  font-size: 24px;
}

.site-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 50px;
}
.site-main {
  display: flex;
  flex-direction: row; 
  align-items: flex-start;
  gap: 32px;
  min-height: 100vh;
}

.site-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 220px;
  box-sizing: border-box;
  position: sticky;
  top: calc(var(--site-header-height, 80px) + 16px);
  align-self: flex-start;
  padding: 12px 8px 12px 0;
  background: transparent;
}
.site-sidebar a {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 6px;
}
.site-sidebar a:hover,
.site-sidebar a:focus {
  color: var(--electric-blue);
}
.site-sidebar a.active,
.site-sidebar a[aria-current="page"] {
  font-weight: 700;
  border-left: 4px solid var(--electric-blue);
  padding-left: 8px; 
}

/* Backwards-compatibility: older templates used .site-toc or .site-si */
.site-toc,
.site-si {
  display: flex !important;
  flex-direction: column;
  gap: 12px;
  width: 220px;
  box-sizing: border-box;
  position: sticky;
  top: calc(var(--site-header-height, 80px) + 16px);
  align-self: flex-start;
  padding: 12px 8px 12px 0;
  background: transparent;
}
.site-toc a,
.site-si a {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 6px;
}
.site-toc a.active,
.site-si a.active,
.site-toc a[aria-current="page"],
.site-si a[aria-current="page"] {
  font-weight: 700;
  border-left: 4px solid var(--electric-blue);
  padding-left: 8px;
}

.page-section {
  margin-bottom: 40px;
}
.page-section h1 {
  margin-top: 60px
}


.artists-grid {
  display: flex;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 40px; 
}
.artist-pill {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  width: 100vw;
  padding: 14px 20px;
  border-radius: 30px;            
  background: #ffffff;             
  border: 1px solid rgba(2,6,23,0.06);
  box-shadow: 0 8px 30px rgba(2,6,23,0.06);
  box-sizing: border-box;
}
.artist-pill .avatar {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  border: 1px solid #eee;
}
.artist-pill .meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}
.artist-pill .meta strong {
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.artist-pill .meta small { 
  font-size: 12px; 
  color: #666; 
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis; 
}
.artist-pill .controls { 
  display: flex; 
  gap: 12px; 
  align-items: center; 
  justify-content: flex-end; 
  flex: 0 0 auto; 
}
.artist-pill .stats { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  margin-right: 8px; 
}
.artist-pill .stat-count { 
  font-weight: 700; 
  font-size: 14px;
}
.artist-pill .track-controls { 
  display: flex; 
  gap: 8px; 
  align-items: center; 
}
.play-btn, .download-btn { 
  background: transparent; 
  border: none; 
  padding: 6px; 
  border-radius: 6px; 
  cursor: pointer; 
  color: var(--rich-black); 
}
.not-available { 
  color: #888; 
  font-size: 13px; 
  padding: 6px 8px; 
}

@media (max-width: 900px) {
  .artist-pill { 
    padding: 10px 14px; 
    gap: 12px; 
    border-radius: 34px; 
  }
  .artist-pill .avatar { 
    width: 40px;
    height: 40px; 
    flex: 0 0 40px;
  }
  .artist-pill .meta strong { 
    font-size: 14px; 
  }
  .artist-pill .controls { 
    gap: 8px; 
  }
}

.form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 720px;
  margin: 96px auto 0;          
  padding: 20px;                
  background: transparent;       
  border-radius: 0;              
  box-shadow: none;           
  border: none;                  
  box-sizing: border-box;
}
.form .ba-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}
.form label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--rich-black);
  margin-bottom: 6px;
}
.form input[type="text"],
.form input[type="email"],
.form input[type="number"],
.form input[type="password"],
.form select,
.form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  background: #fff;
  font-size: 15px;
  box-sizing: border-box;
}
.form textarea { min-height: 120px; resize: vertical; }
.form .form-row { display: flex; gap: 12px; align-items: center; }
.form .form-row > * { flex: 1 1 auto; min-width: 0; }
.form .form-actions { display:flex; gap:12px; justify-content:flex-end; margin-top:8px; }
.form button, .form .btn {
  background: var(--electric-blue);
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}
.form button.secondary, .form .btn.secondary {
  background: transparent;
  border: 1px solid #ddd;
  color: var(--rich-black);
}
.form .help-text { font-size: 12px; color: #666; margin-top: 4px; }
@media (max-width: 600px) {
  .form { padding: 8px; }
  .form .form-row { flex-direction: column; }
}

.impact-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 20px 0 28px 0;
  box-sizing: border-box;
}
.impact-stats {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  width: 100vw; 
  margin-left: calc(50% - 50vw);
  padding: 0 20px;
  box-sizing: border-box;
  flex-wrap: nowrap; 
  overflow-x: auto;
}
.stat-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  flex: 1 1 0; 
  min-width: 0;
  align-items: center;
  justify-content: flex-start; 
  box-sizing: border-box;
  text-align: center;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--rich-black);
}
.stat-label {
  font-size: 14px;
  color: var(--rich-black);
}
.stat-sub {
  font-size: 12px;
  color: #555;
} 
a {
  font-size: 18px;
  color: white;
  margin-top: 8px;
  text-decoration: none;
} 
@media (max-width: 900px) {

  .site-main { 
    flex-direction: row !important;
    gap: 16px;
  }

  .site-sidebar {
    position: sticky !important;
    top: calc(var(--site-header-height, 80px) + 12px);
    width: 220px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px;
    padding: 8px 8px 8px 0;
    max-height: calc(100vh | var(--site-header-height, 80px) - 24px);
    overflow: auto;
    box-sizing: border-box;
    background: transparent;
  }


  .site-container {
    flex: 1 1 auto;
    min-width: 0; 
  }

  .site-sidebar a { 
    white-space: normal; 
    display: block; 
    padding: 8px 10px; 
  }
  .impact-stats {
    display: flex;
    gap: 24px;
    flex-wrap: nowrap; 
    overflow-x: auto;
  }
  .stat-item {
    flex: 0 0 calc((100% - 96px) / 5) !important; 
    min-width: 0 !important;    
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; 
    padding: 4px 8px;
  }
  :root{
  --header-height: 80px;
  --header-safe-padding: 16px;
  --footer-height: 60px;
  --footer-safe-padding: 12px;
  }
}

@media (max-width: 420px) {
  .site-sidebar a { 
    font-size: 15px; 
    padding: 8px 10px; 
  }
}


.impact-stats {
  display: grid !important;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr); 
  gap: 15px;
  align-items: start;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
}
.impact-stats > .stat-item {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: center !important;
  width: auto !important;
  min-width: 0 !important;
  box-sizing: border-box;
  padding: 4px 8px;
}
.stat-value { 
  line-height: 1;
}

/* codex-scrollbar-hide-global */
html,
body,
* {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
  background: transparent;
}
