/* RESET & BASE STYLES */
:root {
    --hue: 264;
    --hue-secondary: calc(var(--hue) + 180);
    --chroma: 0.05;
    --chroma-bg: calc(var(--chroma) * 0.5);
    --chroma-text: min(var(--chroma), 0.1);
    --chroma-action: max(var(--chroma), 0.1);
    --chroma-alert: max(var(--chroma), 0.05);
    --bg-dark: oklch(0.1 var(--chroma-bg) var(--hue));
    --bg: oklch(0.15 var(--chroma-bg) var(--hue));
    --bg-light: oklch(0.2 var(--chroma-bg) var(--hue));
    --gradient: linear-gradient(0deg, var(--bg) 97%, var(--bg-light));
    --gradient-hover: linear-gradient(0deg, var(--bg), var(--bg-light));
    --text: oklch(0.96 var(--chroma-text) var(--hue));
    --text-muted: oklch(0.76 var(--chroma-text) var(--hue));
    --highlight: oklch(0.5 var(--chroma) var(--hue));
    --border: oklch(0.4 var(--chroma) var(--hue));
    --border-muted: oklch(0.3 var(--chroma) var(--hue));
    --border-card: solid 1px var(--border-muted);
    --primary: oklch(0.76 var(--chroma-action) var(--hue));
    --secondary: oklch(0.76 var(--chroma-action) var(--hue-secondary));
    --danger: oklch(0.7 var(--chroma-alert) 30);
    --warning: oklch(0.7 var(--chroma-alert) 100);
    --success: oklch(0.7 var(--chroma-alert) 160);
    --info: oklch(0.7 var(--chroma-alert) 260);
    --shadow: 0px 2px 2px oklch(0 0 0 / 0.2), 0px 4px 4px oklch(0 0 0 / 0.1);
    --max-width:1200px;
    /* danger-button */
    --danger-button: linear-gradient(0deg, oklch(0.15 calc(0.11 * 0.5) 28)) 97%, oklch(0.2 calc(0.11 * 0.5) 28);
    --danger-button-hover: linear-gradient(0deg, oklch(0.15 calc(0.11 * 0.5) 28), oklch(0.15 calc(0.11 * 0.5) 28));
}

[data-theme='light']{
    --bg-dark: oklch(0.92 var(--chroma-bg) var(--hue));
    --bg: oklch(0.96 var(--chroma-bg) var(--hue));
    --bg-light: oklch(1 var(--chroma-bg) var(--hue));
    --gradient: linear-gradient(0deg, var(--bg) 97%, var(--bg-light));
    --gradient-hover: linear-gradient(0deg, var(--bg), var(--bg-light));
    --text: oklch(0.15 var(--chroma) var(--hue));
    --text-muted: oklch(0.4 var(--chroma) var(--hue));
    --highlight: oklch(1 var(--chroma) var(--hue));
    --border: oklch(0.6 var(--chroma) var(--hue));
    --border-muted: oklch(0.7 var(--chroma) var(--hue));
    --border-card: solid 1px var(--bg);
    --primary: oklch(0.4 var(--chroma-action) var(--hue));
    --secondary: oklch(0.4 var(--chroma-action) var(--hue-secondary));
    --danger: oklch(0.5 var(--chroma-alert) 30);
    --warning: oklch(0.5 var(--chroma-alert) 100);
    --success: oklch(0.5 var(--chroma-alert) 160);
    --info: oklch(0.5 var(--chroma-alert) 260);
    --warning-text: oklch(0.5 var(--chroma-alert) 150);
    --info-text:  oklch(0.5 var(--chroma-alert) 290);
    --danger-text: oklch(0.5 var(--chroma-alert) 100);
}
body{
  background-color: var(--bg-light);
  overflow-x:hidden;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  line-height: 1.6;
  text-wrap:wrap;
}

img.theme-sensitive-icon {
  filter: invert(1); /* Inverts black to white */
}

:root[data-theme='light'] img.theme-sensitive-icon {
  filter: none; /* Keep dark icon in light theme */
}

h1{
  font-size:3rem;
}
a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  cursor:pointer;
}
#doc img{
  height:300px;
  border:var(--border-card);
  border-radius: 10px;
  padding:0;
}

/*Univesal input*/

input, textarea{
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--bg-light);
}

input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px hsla(195, 100%, 17%, 0.2);
}

/* CONTAINER UTILITIES */
.container {
  padding: 2rem;
}

/* HEADER */
header {
  background-color: var(--bg-light);
  box-shadow: var(--shadow);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  color: var(--primary);
  font-size: 1.8rem;
}

nav a {
  margin-left: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

nav a:hover {
  color: var(--primary);
}

/* HERO SECTION */
.hero {
  padding: 4rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-dark);
  gap: 1rem;
}

.hero h2 {
  font-size: 2.5rem;
  font-weight: 600;
}

.hero p {
  font-size: 1rem;
  color: var(--text-muted);
}

.ranking{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  max-width: 100%;
  align-self: center;
  margin: 0 auto;
}
.rank-entry{
  max-height: 70px;
  border-radius: 2rem;
  font-size:smaller;
  background:var(--gradient);
  border: 1px solid var(--border);
  border-top:1px solid var(--highlight);
}
.rank-entry:hover{
  transform: translateY(-3px);
  transition-duration: 0.3s;
  cursor:pointer;
}

img.creator-avatar{
  height: 100%;
  width: auto;
  max-width: 70px;
  margin: 0;
}

/* SEARCH Boxes */
.input-group {
  display: flex;
  align-items: center;
  justify-content: center;
}

.input {
  min-height: 45px;
  width: 40%;
  padding: 0 1rem;
  color: var(--text);
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 6px 0 0 6px;
}

.button--submit {
  min-height: 45px;
  padding: 0.5em 1em;
  border: none;
  border-radius: 0 6px 6px 0;
  background-color: var(--primary);
  color: var(--bg);
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.button--submit:hover {
  background-color: var(--info);
}

.input:focus, .input:focus-visible {
  border-color: var(--primary);
  outline: none;
}

/* SPONSOR GRID */
.sponsors-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.sponsors-section h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.sponsor-card {
    background: var(--gradient);
    padding: 1rem;
    border: var(--border-card);
    border-top: 1px solid var(--highlight);
    border-radius: 1rem;
    box-shadow: var(--shadow);
}
.sponsor-card img {
  width: 100%;
  max-height: 100px;
  border-radius: 0.5rem;
  object-fit: cover;
}

.sponsor-card:hover {
  transform: translateY(-3px);
  cursor: pointer;
  transition-duration: 0.3s;
}

.sponsor-card p:first-child {
  color: var(--primary);
  font-weight: 600;
}

.sponsor-card p:last-child {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Forms - Login & Signup */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form label {
  font-weight: bold;
  color: var(--text);
}

form button {
    background: var(--bg-light);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font: var(--p);
    cursor: pointer;
    box-shadow: var(--shadow);
    border: var(--border-card);
    border-top: solid 1px var(--highlight);
}
/* 
form button:hover {
  background-color: var(--info);
} */

form button b{
  color:#fff;
}

form p {
  margin-top: 0.5rem;
  text-align: center;
}

form a {
  color: var(--primary);
  text-decoration: none;
}

form a:hover {
  text-decoration: underline;
}

/* FLASH Messages */
.flash-error {
  background: var(--danger);
  color: white;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 1em;
  display: flex;
  justify-content: center;
}

.flash-success {
  background: var(--success);
  color: white;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 1em;
  display: flex;
  justify-content: center;
}

/* DASHBOARD Styles */
.dashboard-container {
  margin: 0;
  background-color: var(--bg-dark);
  padding: 20px;
  display: flex;
  flex-direction: column;
  /* max-width: var(--max-width);
  margin: auto; */
}

.dashboard-section {
  background: var(--bg-light);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-muted);
  display: flex;
  flex-direction: column;
  gap:1rem;
  flex:1;
}

.dashboard-section h2 {
  margin-top: 0;
}

#top-dashboard-section-container{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 24px;
}
#top-dashboard-section-container section{
  flex:1;
}

/* ----- Search Page Layout ----- */
.main-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: var(--bg-dark);
  /* max-width: var(--max-width);
  margin: auto; */
}

.search-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.search-bar input[type="text"] {
  width: 50%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
}

.search-bar button {
  padding: 0.7rem 1rem;
  border: none;
  background-color: var(--primary);
  color: white;
  border-radius: 8px;
  cursor: pointer;
}

/* Sponsor Results Layout */
.sponsor-results {
  display: flex;
  gap: 2rem;
}

.sponsor-main {
  flex: 3;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Carousel of Creators */

/* Carousel Container */
.carousel-track {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  overflow: scroll;
  max-height: 450px;
  display: grid;
  gap: 1rem;
  display: flex;
  padding: 1rem;
  background: var(--gradient);
  border-top: 1px solid var(--highlight);
  border-radius: 1rem;
  flex-direction: row;
  max-width: 95vw;
}

.carousel-track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.carousel-track{
  -ms-overflow-style: none;
  scrollbar-width: none;
}


/* Each Card */
.creator-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--bg-dark);
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: clamp(140px, 30vw, 200px);
  box-shadow: var(--shadow);
  border-top: 1px solid var(--highlight);
}

/* Avatar Container */
.creator-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--border);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Avatar Image */
.creator-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Creator Name */
.creator-name {
  font-weight: bold;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

/* Creator Code Count */
.creator-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Sponsor Codes Section */
.sponsor-codes {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.code-card {
  background-color: var(--bg-dark);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.code-main {
  flex: 1;
}

.code-value {
  font-size: 1.25rem;
  font-weight: bold;
}

.code-user {
  font-size: 0.9rem;
  color: var(--text);
}

.code-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.btn-report, .btn-use {
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-report {
  background-color: var(--danger);
  color: white;
}

.btn-use {
  background-color: var(--primary);
  color: white;
}

/* Filters Sidebar */
.filters {
  flex: 1;
  border-left: 1px solid var(--border-muted);
  padding-left: 1rem;
}

.filters h4 {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

/*UNIVERSAL BUTTON */
button{
    background-color: var(--gradient);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font: var(--p);
    cursor: pointer;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    border-top: solid 1px var(--highlight);
}
button:hover{
    background: var(--gradient-hover);
}

.danger-button{
  background: var(--danger);
  border-top: 1px solid rgb(255, 210, 202);
}

.danger-button:hover{
  background: linear-gradient(0deg, var(--bg), var(--danger));
}
/*UNIVERSAL SELECT*/
select{
      width: 100%;
    padding: 0.5rem;
    margin-top: 0.25rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);

}

/*EXTRA SHIT*/
.submit-wrapper {
  background: var(--bg-dark);
  padding: 2rem;
}

.submit-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.dashboard-container2 {
  flex: 1;
  min-width: 300px;
  background: var(--bg-light);
  padding: 1.5rem;
  border: 1px solid var(--border-muted);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.dashboard-container2 h2 {
  margin-bottom: 1rem;
}

.dashboard-section2 label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
}

.dashboard-section2 input,
.dashboard-section2 select,
.dashboard-section2 textarea {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.25rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
}

/*SEARCH RESULTS*/
#result-container li{
  font-size:0.75rem;
  margin-left:0.5rem;
}
#result-container{
  display:flex;
  justify-content: space-between;
  padding:1rem;
  background: var(--gradient);
  border: var(--border-card);
  border-top: 1px solid var(--highlight);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}
#creator-line{
  display:flex;
  gap:calc(1rem/2);
}
#creator-line img{
  border-radius:50%;
  object-fit: cover;
  object-position: center;
  width:2rem;
  height:2rem;
  border:1px solid var(--highlight);
}
#button-rows button img, #button-rows-reversed button img{
  width:1rem;
}
#button-rows{
  display: grid;
  grid-template-columns: 3fr 2fr;
  grid-gap: 0.5rem;
}
#button-rows-reversed{
  display: grid;
  grid-template-columns: 2fr 3fr;
  grid-gap:0.5rem;
}
#result-container button{
  border:none;
  border-top: 1px solid var(--highlight);
  background: var(--bg-light);
}
#result-container button:hover{
  background-color: var(--gradient-hover) 90%;
}
#right{
 display:flex;
 flex-direction:column;
 gap:0.5rem;
}
#left{
  display:flex;
  justify-content:space-between;
  flex-direction:column;
  gap:calc(1rem/4);
}
#left p{
  color:var(--text-muted);
  font-weight: bolder;
}
#link-line{
  display:flex;
  gap:calc(1rem/4);
}
#link-line img{
  width:1.5rem;
  height:1.5rem;
}

@media (max-width: 620px) {
  .container{
    padding:0.5rem;
  }
  #result-container{
    flex-direction: column;
    padding: 0.5rem;
    width: calc(100vw - 1rem);
  }
  #result-container a{
    font-size:0.8rem;
  }
  #result-container li{
    font-size:minmax(0.6rem, 1rem);
  }
}
/*Dashboard submissions styling*/
.codes-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
  border-radius: 10px;
  overflow: hidden;
  border:var(--border-card);
}
.codes-table th,
.codes-table td {
  padding: 0.8rem;
  text-align: left;
  font-size: minmax(0.35rem, 0.95rem);
}
.codes-table td{
  max-width:1rem;
}
.codes-table tr {
  border-bottom: var(--border-card);
}
.codes-table thead {
background:var(--bg-dark);
}
.table-container{
  width: 100%;
  overflow: hidden;
  overflow-x: scroll;
    -ms-overflow-style: none;
  scrollbar-width: none;
}
.table-container::-webkit-scrollbar{
  display: none;
}
.pagination{
  margin-top: 1rem; 
  display: flex; 
  justify-content: center; 
  gap: 1rem;
}

.status-cell {
  font-weight: bold;
  text-transform: lowercase;
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  text-align: center;
}

/* Status backgrounds */
.status-pending {
  color: #8a5d00;
}

.status-cleared {
  color: #046c32;
}

.status-rejected {
  color: var(--danger);
}

.actions-cell {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.empty-message {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--bg-dark);
  text-align: center;
  border-radius: 10px;
  font-size: 1rem;
}

/*Documentation styling*/
#caption{
  font-style: italic;
}

aside ul li a {
  color: var(--primary-color, #0066cc);
  text-decoration: none;
  font-weight: 500;
}

aside ul li a:hover {
  text-decoration: underline;
}

aside ul li {
  margin-bottom: 0.5rem;
}
/*TOASTY IN HERE*/
#toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.toast {
  background-color: var(--gradient);
  color: var(--text);
  padding: 12px 20px;
  background: var(--gradient);
  border: var(--border-card);
  border-top: 1px solid var(--highlight);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(-20px);
  animation: toastIn 0.3s forwards, toastOut 0.3s 2.5s forwards;
}

@keyframes toastIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}
/*SHELF*/

.shelf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1rem;
}

.bookmark-card {
  background-color: var(--bg);
  border:1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
}

.bookmark-header {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  margin-bottom: 0.5rem;
  flex-wrap:wrap;
}

.bookmark-code {
  font-size: 1rem;
}

.bookmark-id {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.bookmark-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.creator-logo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.creator-name {
  font-size: 0.9rem;
  flex-grow: 1;
  color: var(--text);
}

.unbookmark-btn {
  background: var(--primary);
  border: none;
  cursor: pointer;
}

.unbookmark-btn img {
  width: 20px;
  height: 20px;
  filter: grayscale(50%);
  transition: transform 0.2s;
}

.unbookmark-btn:hover img {
  transform: scale(1.2);
  filter: grayscale(0%);
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 0.5rem;
}

.page-btn {
  background-color: var(--primary);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 1rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  text-decoration: none;
  color:var(--bg);
  transition: background-color 0.2s;
}

.page-btn:hover {
  background-color: #d0dff5;
}

/*BROADCASTS*/

.broadcasts-container {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.broadcast-box {
  padding: 1rem 2rem;
  font-size: 1rem;
  color:#fff;
}

/* Type-specific styling */
.broadcast-box.info{
  background-color: var(--info);
  color:#fff;
}
.broadcast-box.warning {
  background-color: var(--warning);
  color:#fff;
}
.broadcast-box.alert {
  background-color: var(--danger);
  color:#fff;
}

/*MODALS*/
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding:2rem;
}

.modal-content {
  background: var(--gradient);
  border: var(--border-card);
  border-top: 1px solid var(--highlight);
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap:1rem;
}

.hidden {
  display: none;
}

.confirm-btn {
  background: var(--danger);
  color: var(--bg);
  padding: 0.5rem 1rem;
  border: none;
}

.cancel-btn {
  margin-left: 1rem;
}

/* ------------------ */
/* 📱 Responsive Styles */
/* ------------------ */

/* Tablet (≤768px) */
@media (max-width: 780px) {
  body {
    font-size: 0.95rem;
  }
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .submit-wrapper,
  .sponsors-section {
    padding: 1rem;
  }

  .dashboard-container{
    display: flex;
    flex-direction: column;
  }

  .dashboard-container section{
    flex:1;
  }

  .dashboard-section,
  .dashboard-container2 {
    padding: 1rem;
  }

  .broadcast-box {
    padding: 0.75rem 1.5rem;
  }

  input, textarea, select {
    font-size: 0.95rem;
    padding: 0.6rem;
  }

  .button--submit,
  button {
    font-size: 0.9rem;
    padding: 0.4rem 0.75rem;
  }

  .input {
    width: 60%;
  }

  .sponsor-card {
    padding: 0.75rem 1rem;
  }

  .code-value {
    font-size: 1.1rem;
  }
}

/* Mobile (≤480px) */
@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .hero h2 {
    font-size: 1.6rem;
  }

  .hero {
    padding: 2rem 1rem;
  }

  /* .submit-wrapper,
  .dashboard-container2,
  .sponsors-section {
    /* padding: 1rem 0.5rem;
  } */

  .dashboard-section {
    padding: 0.75rem;
  }

  .broadcast-box {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }

  .input {
    width: 100%;
  }

  .ranking{
     grid-template-columns: 1fr
     
  }
  .homepage-ranking{
    margin: 0 auto;
    width: 100%;
  }

  .sponsor-card p:last-child {
    font-size: 0.75rem;
  }

  .creator-card {
    min-width: 100px;
    padding: 0.75rem;
  }

  .bookmark-code {
    font-size: 0.9rem;
  }

  .creator-name {
    font-size: 0.85rem;
  }

  .page-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
  }

  .shelf-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
  .carousel-track{
    width: 95vw;
  }
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--bg);
  color: var(--text);
  position: relative;
}

nav {
  display: flex;
  gap: 1rem;
}

.hamburger {
  display: none;
  font-size: 1.8rem;
  background: none;
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-light);
    width: 200px;
    display: none;
    border: 1px solid var(--border-muted);
    padding: 1rem;
    z-index: 10;
  }

  nav.show {
    display: flex;
  }

  .hamburger {
    display: block;
    border: 1px solid var(--highlight);
  }

  body{
    margin:0;
    max-width: 100vw;
  }
  /* .ytsl_img{
    width: 100vw;
  } */
}

