@import url("this-week.css");
@import url("community.css");
@import url("submit.css");
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');

@font-face {
  font-family: "Satoshi";
  src: url("/fonts/Satoshi/Satoshi-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("/fonts/Satoshi/Satoshi-LightItalic.otf") format("opentype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("/fonts/Satoshi/Satoshi-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("/fonts/Satoshi/Satoshi-Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("/fonts/Satoshi/Satoshi-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("/fonts/Satoshi/Satoshi-MediumItalic.otf") format("opentype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("/fonts/Satoshi/Satoshi-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("/fonts/Satoshi/Satoshi-BoldItalic.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("/fonts/Satoshi/Satoshi-Black.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("/fonts/Satoshi/Satoshi-BlackItalic.otf") format("opentype");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #F8F8F4;
  --text: #0b0b0b;
  --chip: rgba(255, 255, 255, 0.92);
  --accent: #000;
    /* -5% tracking */
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Satoshi", "Helvetica Neue", Helvetica, system-ui, -apple-system, Arial, sans-serif;
}

.serif {
  font-family: "Instrument Serif", 'Times New Roman', Times, serif;
}

a {
  color: inherit;
  text-decoration: underline
}

p {
  font-size: 1.1rem;
}

.container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 4rem auto;
  padding: 0 1.25rem
}

.container-lg {
  max-width: 1100px;
}

.container-sm {
  max-width: 900px;
}

.container-card {
  max-width: 400px;
}

.rounded {
  border-radius: 1rem;
}

h1 {
  font-weight: 700;
  font-size: 3.5rem;
}

h2 {
  font-weight: 500;
  font-size: 2.5rem;
}

h1, h2, h3, h4, p, ul {
  margin-block-start: 0;
  margin-block-end: 0;
}

p {
  font-size: 1.1rem;
}

.header-pair {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}


input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  background-color: #F4EFE7;
  font-family: "Satoshi", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  color: #111;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #3f816d;
  box-shadow: 0 0 0 2px rgba(63, 129, 109, 0.15);
}

textarea {
  resize: vertical;
  min-height: 6rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

label {
  display: flex;
  flex-direction: column;
}

.sub {
  font-weight: 200;
  font-size: 1.25rem
}

.header-emphasis {
  background-image: linear-gradient(#a3d0ff, #a3d0ff);
  background-repeat: no-repeat;
  background-size: 100% 0.3em; 
  background-position: 0 0.9em; 
}

.rules {
  line-height: 1.9
}

select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #F4EFE7;
  font-family: inherit;
  font-size: 1rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='12' viewBox='0 0 20 20' width='12' xmlns='http://www.w3.org/2000/svg'><path d='M7 7l3 3 3-3'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 0.8rem;
  cursor: pointer;
}

select:focus {
  outline: none;
  border-color: #3f816d;
  box-shadow: 0 0 0 2px rgba(63, 129, 109, 0.15);
}


.button {
  display: inline-block;
  padding: 0.75rem 2rem;
border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  color: #F4EFE7;
  cursor: pointer;
  transition: background 0.2s ease;  
  text-decoration: none;
}

.btn-main {
  background: var(--accent);
  border: none;
  color: var(--bg);
}
.btn-main:disabled {
  background: #aaa;
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn-secondary-white {
    background: transparent;
  border: 1px solid #F4EFE7;
  color: #F4EFE7;
}

      label {
        font-weight: 600;
      }

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

th, td {
  border: 1px solid #ccc;
  padding: 0.5rem;
  text-align: left;
}

th {
  background: #f5f5f5;
}

.tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #ddd;
  flex-wrap: wrap;
}

/* Base tab style */
.tab {
  text-decoration: none;   /* no underline */
  padding: 0.5rem;
  font-weight: bold;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}

/* Active tab */
.tab.active {
  border-bottom-color: currentColor; /* match text color */
}

      .tab-content {
        display: none;
      }
      .tab-content.active {
        display: block;
      }
      table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 1rem;
      }
      th,
      td {
        border: 1px solid #ccc;
        padding: 0.5rem;
        text-align: left;
      }
      th {
        background: #f5f5f5;
      }
      .account-info {
        line-height: 1.6;
      }



      .upload-zone {
  border: 2px dashed #aaa;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  width: 100%;
}

.upload-zone.dragover {
  background: #f9f9f9;
  border-color: #333;
}

.upload-zone p {
  margin: 0;
  font-size: 1rem;
  color: #444;
}

.upload-zone .accepted {
  font-style: italic;
  font-size: 0.8rem;
  color: #666;
}

.upload-link, .review-link {
  text-decoration: underline;
  color: var(--music-color);
  cursor: pointer;
}

#fileName {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #222;
}

.upload-preview {
  text-align: center;
}

.preview-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.preview-wrapper p {
  font-size: 0.8rem;
}

.preview-img {
  max-width: 64px;
  max-height: 64px;
  object-fit: cover;
  border: 1px solid #ccc;
}

.file-name {
  font-size: 1rem;
  font-weight: 500;
  color: #333;
}

.choose-different {
  display: block;
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #0073e6;
  text-decoration: underline;
  cursor: pointer;
}

/* --- judge panel small controls --- */
.tag {
  /* override global button defaults */
  background: #F4EFE7 !important;
  color: #111 !important;
  border: 1px solid #111 !important;
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
}

.tag[aria-pressed="true"] {
  background: #111 !important;
  color: #F4EFE7 !important;
}

.muted {
  color: #666;
  font-size: 0.9rem;
}


@media (max-width: 768px) {
  .container, .container-sm {
    margin: 3rem auto;
  }
  .hero-text {
    font-size: 2rem;
  }
  textarea {
    min-height: 150px;
  }
}




.google-container {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.gsi-material-button {
  background-color: #F4EFE7;
  background-image: none;
  border: 1px solid #747775;
  -webkit-border-radius: 20px;
  border-radius: 20px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: #1f1f1f;
  cursor: pointer;
  font-family: 'Roboto', arial, sans-serif;
  font-size: 14px;
  height: 40px;
  letter-spacing: 0.25px;
  outline: none;
  overflow: hidden;
  padding: 0 12px;
  position: relative;
  text-align: center;
  -webkit-transition: background-color .218s, border-color .218s, box-shadow .218s;
  transition: background-color .218s, border-color .218s, box-shadow .218s;
  vertical-align: middle;
  white-space: nowrap;
  width: auto;
  max-width: 400px;
  min-width: min-content;
}

.gsi-material-button .gsi-material-button-icon {
  height: 20px;
  margin-right: 12px;
  min-width: 20px;
  width: 20px;
}

.gsi-material-button .gsi-material-button-content-wrapper {
  -webkit-align-items: center;
  align-items: center;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
  height: 100%;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

.gsi-material-button .gsi-material-button-contents {
  -webkit-flex-grow: 1;
  flex-grow: 1;
  font-family: 'Roboto', arial, sans-serif;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.gsi-material-button .gsi-material-button-state {
  -webkit-transition: opacity .218s;
  transition: opacity .218s;
  bottom: 0;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.gsi-material-button:disabled {
  cursor: default;
  background-color: #ffffff61;
  border-color: #1f1f1f1f;
}

.gsi-material-button:disabled .gsi-material-button-contents {
  opacity: 38%;
}

.gsi-material-button:disabled .gsi-material-button-icon {
  opacity: 38%;
}

.gsi-material-button:not(:disabled):active .gsi-material-button-state, 
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
  background-color: #303030;
  opacity: 12%;
}

.gsi-material-button:not(:disabled):hover {
  -webkit-box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
}

.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
  background-color: #303030;
  opacity: 8%;
}

/* --- header color logic --- */
#appbar.is-landing {
  color: #F4EFE7;
}


#appbar.is-landing .menu-toggle span {
  background: #F4EFE7;
}

#appbar:not(.is-landing) a,
#appbar:not(.is-landing) .iconbtn {
  color: black !important;
  stroke: black;
}

#appbar:not(.is-landing) .menu-toggle span {
  background: black;
}

/* Optional: fix header position for landing */
#appbar.is-landing {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
}


/* Poster grid — feels like a festival slate / Netflix wall */
      .poster-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
        gap: 1rem;
      }

      .tile {
        position: relative;
        overflow: hidden;
        border-radius: 1rem;
        background: #111;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(0, 0, 0, 0.06);
        transition: transform 0.25s ease, box-shadow 0.25s ease;
        aspect-ratio: 2/3; /* Poster ratio */
      }
      .tile:hover {
        transform: translateY(-2px);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
      }

      .tile img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        filter: saturate(1.02);
      }

      /* fallback “poster” if none provided */
      .tile .poster-fallback {
        width: 100%;
        height: 100%;
        background: linear-gradient(145deg, #202020, #111);
        display: grid;
        place-items: center;
        color: #F4EFE7;
        padding: 1rem;
        text-align: center;
      }
      .tile .poster-fallback .title {
        font-weight: 700;
        font-size: 1.1rem;
      }

      /* Top chips */
      .tile .chips {
        position: absolute;
        top: 10px;
        left: 10px;
        right: 10px;
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
        z-index: 2;
        justify-content: end;
      }
      .chip-lite {
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        background: var(--chip);
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 999px;
        padding: 5px 8px;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.02em;
      }

      /* Gradient info panel */
      .tile .veil {
        position: absolute;
        inset: 0;
        background: linear-gradient(
          to top,
          rgba(0, 0, 0, 0.75) 0%,
          rgba(0, 0, 0, 0.02) 55%
        );
        opacity: 0.96;
        pointer-events: none;
      }
      .tile .meta {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        color: #F4EFE7;
        padding: 14px 14px 12px;
        z-index: 3;
        display: grid;
        gap: 6px;
      }
      .meta h3 {
        font-size: 1.5rem;
        line-height: 1.15;
        margin: 0;
      }
      .meta .logline {
        font-size: 0.9rem;
        color: #ddd;
      }
      .meta .byline {
        font-size: 0.85rem;
        color: #cfcfcf;
      }

      /* Hover actions */
      .tile .action {
        position: absolute;
        inset: auto 12px 12px auto;
        z-index: 4;
        opacity: 0;
        transform: translateY(6px);
        transition: 0.2s ease;
      }
      .tile:hover .action {
        opacity: 1;
        transform: none;
      }
      .play-btn {
        position: absolute;
        inset: 0;
        display: grid;
        place-items: center;
        opacity: 0;
        transition: opacity 0.2s ease, transform 0.2s ease;
        z-index: 4;
        text-decoration: none;
      }
      .play-btn i {
        width: 66px;
        height: 66px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.55);
        color: #F4EFE7;
        font-size: 28px;
        line-height: 1;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
      }
      .tile:hover .play-btn {
        opacity: 1;
        transform: scale(1.02);
      }

      /* Skeletons */
      .skeleton {
        animation: pulse 1.2s ease-in-out infinite;
        background: linear-gradient(90deg, #eee, #f6f6f6 48%, #eee);
        background-size: 200% 100%;
      }
      @keyframes pulse {
        0% {
          background-position: 200% 0;
        }
        100% {
          background-position: -200% 0;
        }
      }
      .skeleton.tile {
        border: 1px solid #f0f0f0;
      }
