body {
  color: #fff;
  background: #222;
  background: radial-gradient(circle, rgba(65,65,65,1) 0%, rgba(37,37,37,1) 100%);
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="file"],
textarea,
select {
  background-color: #4e4e4e;
  color: #fff;
  border: 1px solid #222;
  padding: 10px;
}

table {
  width: 100%;
}

#wrapper {
  
}

#header {
  width: 100%;
  background-color: #222;
}

#header > div {
  max-width: 1400px;
  padding-left: 20px;
  padding-right: 20px;
  margin: auto;
}

#menu > ul > li > a {
  color: #eee;
  padding: 0;
  margin: 0 20px 0 0;
}

#school-header {
  width: calc(100% - 40px);
  padding: 8px 20px;
  top: 60px;
  color: var(--light-grey);
  border-bottom: 2px solid #111;
  background: rgb(48,47,69);
  background: linear-gradient(162deg, rgba(48,47,69,1) 0%, rgba(75,97,98,1) 100%);
}

#school-header > div:nth-child(2) > a {
  text-decoration: none;
  background-color: rgba(255,255,255,0.3);
  padding: 4px 10px;
  border-radius: 6px;
  color: #000
}

.podcast-series > h2 {
  background-color: #ccc;
  line-height: 2em;
  padding-left: 10px;
}

.podcast-episode {
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dotted #ccc;
  list-style-type: none;
}

.episode-meta {
  font-size: 0.8em;
  color: #666;
}

.account-header {
  display: grid;
  grid-template-columns: 1fr 330px;
  margin-bottom: 10px;
}

.account-header-school {
  margin: 0;
  padding: 0;
  font-size:0.9em;
  font-weight: bold;
  color: #555;
  margin-bottom: -2px !important;
}

.account-header-admin-menu {
  margin-bottom: 5px;
}

.account-header-admin-menu > ul {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  list-style: none;
  padding-left: 0;
  border-radius: 22px;
  font-size: 1.2em;
}

.account-header-admin-menu > ul > li {
  margin-bottom: 0;
}

.account-header-admin-menu > ul > li > a {
  display: block;
  text-align: center;
  text-decoration: none;
  background-color: rgba(0, 0, 0, 0.281);
  border-radius: 12px;
  font-weight: bold;
  color: var(--text-color);
  line-height: 2em;
  color: #fff;
}

.account-header-admin-menu > ul > li > a:hover {
  background-color: #ffffff14;
}

.class-container > div:nth-child(2) {
  text-align: right;
}

.class-container > div:nth-child(2) > p {
  margin-bottom: 0px;
}

.class-container > div:nth-child(2) > p > a:nth-child(2) {
  margin-left: 20px;
}

.class-header {
  display: grid;
  grid-template-columns: auto 170px 150px;
}

.class-header > div:nth-child(1) > h4 {
  margin-bottom: 0;
  margin-top: 0;
}

.class-teacher {
  margin-bottom: 0 !important;
}

.class-header > div:nth-child(1) > p > strong {
  display: block;
  font-size: 0.8em;
  line-height: 0.8em;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.428);
}

.class-header > div:nth-child(2) > p {
  line-height: 2.3em;
}

.class-header > div:nth-child(3) > p {
  background: rgb(154,124,162);
  background: linear-gradient(124deg, rgba(154,124,162,0.21332282913165268) 0%, rgba(91,64,108,0.29735644257703087) 100%);
  color: #fff;
  border-radius: 12px;
  line-height: 1em;
  display: block;
  padding:10px 20px;
  text-align: center;
}

#network-episodes {
  display: grid;
  grid-template-columns: 1fr 350px;
}

#clear-filters {
  border-radius: 10px;
  padding: 8px 12px;
  background-color: rgba(0,0,0,0.2);
  margin-top: 10px;
  width: calc(100% - 20px);
  font-size: 0.9em;
}

#network-left {
  width: calc(100% - 20px);
}

#episode-list {
  margin-right: 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 30vh;
}

#episode-list > div {
  margin-bottom: 35px;
  background: rgb(99,99,99);
  background: linear-gradient(38deg, rgba(86,100,93,1) 0%, rgb(61, 64, 61) 100%);
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.2);
  padding: 20px;
  -webkit-box-shadow: 14px 13px 29px -25px rgba(0,0,0,0.99);
  -moz-box-shadow: 14px 13px 29px -25px rgba(0,0,0,0.99);
  box-shadow: 14px 13px 29px -25px rgba(0,0,0,0.99);
  width: calc(100% - 40px);
}

#episode-list > div a {
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,0.1);
}

#episode-list > div > h4 {
  margin-top: 0;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
  margin-bottom: 4px;
  background: initial;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
}

#episode-list > div > div.episode-meta {
  padding-left: 12px;
  background: url('../img/episode-line.svg') left bottom no-repeat;
  margin-bottom: 10px;
  background-position: left bottom 7px;
}

#episode-list > div > div > p {
  margin-bottom: 0;
  font-size: 1.1em;
  line-height: 1.1em
}

#episode-list > div > div > p.episode-class-name {
  color: #CCC;
  margin-bottom: 0;
  font-size: 1.4em;
}

#episode-list > div > div > p.episode-school-name {
  color: #b4b9b5;
  margin-bottom: 2px;
  font-size: 1.4em;
}

#episode-list > div > div > p.episode-school-name > a {
  color: #b4b9b5;
}

.episode-button {
  text-align: right;
  padding-right: 20px;
  margin-bottom: -36px;
}

#episode-list > div > div > p.episode-tags {
  color: #9c9c9c;
  padding-left: 10px;
  font-size: 1em;
}

#episode-list > div > div > p.episode-tags > strong {
  color: #eeeeee;
}

#episode-list-title {
  font-size: 1.2em;
  text-transform: uppercase;
  margin-right: 20px;
}

#episode-list > div > div > p.episode-description {
  color: #eee;
  margin-left: 10px;
}

#episode-details {
  padding: 20px;
  border-radius: 12px;
  background: rgb(101,101,101);
  background: linear-gradient(180deg, rgba(14, 14, 14, 0) 0%, rgba(2, 2, 2, 0.224) 100%);
  width: calc(100% - 40px);
  box-shadow: 2px 3px 9px -4px rgba(255, 179, 39, 0.205);
  -webkit-box-shadow: 2px 3px 9px -4px rgba(255, 179, 39, 0.205);
  -moz-box-shadow: 2px 3px 9px -4px rgba(255, 179, 39, 0.205);
}

#episode-details > h4 {
  margin-bottom: 4px;
  font-size: 1.3em;
  padding-bottom: 5px;
}

#episode-details > p:nth-child(2) {
  border-top: 1px dashed rgba(255,255,255,0.2);
  padding-top: 10px;
  margin-bottom: 5px;
  line-height: 0.5em;
}

#episode-details > p:nth-child(3) {
  margin-bottom: 5px;
}

#episode-details > p:nth-child(4) > strong,
#episode-details > p:nth-child(5) > strong,
#episode-details > p:nth-child(6) > strong {
  font-size: 0.9em;
  color: #828282;
}

/* Admin */
#admin-menu {
  width: calc(100% - 60px);
  margin: auto;
  margin-bottom: 1em;
  text-align: center;
  padding-top: 20px;
}

#admin-menu > ul {
  display: inline-block;
  padding: 0;
}

#admin-menu > ul > li {
  display: inline;
  margin: 0;
  padding-right: 10px;
  border-right: 1px solid #666;
}

.admin-header {
  display: grid;
  grid-template-columns: auto auto;
}

.admin-header > :nth-child(2) {
  text-align: right;
}

.admin-table {
  width: 100%;
}

.audio-player {
  width: 100%;
  max-width: 600px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(6, 107, 101, 1);
  background: rgb(91,91,91);
  background: rgb(77,130,67);
  background: linear-gradient(329deg, rgba(77,130,67,1) 0%, rgba(190,255,135,1) 100%);
  box-shadow: 2px 3px 9px -4px rgba(0,0,0,0.95);
  -webkit-box-shadow: 2px 3px 9px -4px rgba(0,0,0,0.95);
  -moz-box-shadow: 2px 3px 9px -4px rgba(0,0,0,0.95);
}

.player-content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  display: grid;
  grid-template-columns: 60px 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "left right"
    "bottom bottom";
  width: calc(100% - 24px);
}

.player-content > :nth-child(1) {
  grid-area: left;
  width: 60px;
}

.player-content > :nth-child(2) {
  grid-area: right;
  padding-left: 5px;
}

.player-content > :nth-child(3) {
  grid-area: bottom;
}

.play-button-on > button {
  background: url("../img/play-btn.svg") center center no-repeat #3d8d4b;
  background-size: 40%;
  background-position: center right 14px;
}

.pause-button-on > button {
  background: url("../img/pause-btn.svg") center center no-repeat #f0ad04;
  background-size: 40%;
}

.play-pause-btn {
  background-color: #3d8d4b;
  color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.player-content > button {
  -webkit-box-shadow: 0px 4px 22px -12px rgba(0,0,0,0.93);
  -moz-box-shadow: 0px 4px 22px -12px rgba(0,0,0,0.93);
  box-shadow: 0px 4px 22px -12px rgba(0,0,0,0.93);
}

.play-pause-btn:hover {
  background-color: rgb(45, 160, 123);
}

.play-pause-btn span {
  display: none;
}

.track-info {
  text-align: center;
  background: rgb(125,154,108);
  background: radial-gradient(circle, rgba(158,184,143,1) 0%, rgba(79,140,44,0.3575805322128851) 100%);
  border-radius: 8px;
  padding: 6px;
  padding-top: 10px;
  margin-left: 5px;
  -webkit-box-shadow: -2px 2px 14px -4px rgba(255, 255, 255, 0.7);
  -moz-box-shadow: -2px 2px 14px -4px rgba(255, 255, 255, 0.7);
  box-shadow: -2px 2px 14px -4px rgba(255, 255, 255, 0.7);
  height: 57px;
  display: grid;
  place-items: center center;
}

.track-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.progress-container {
  display: flex;
  align-items: center;
  width: 100%;
  height: 10px;
  position: relative;
  margin-top: 10px;
  border-radius: 2px;
}

.time-info {
  font-size: 12px;
  color: #ffffffa8;
  margin: 0 10px;
}

.progress-bar {
  flex-grow: 1;
  position: relative;
  height: 100%;
  background: rgb(236, 249, 208);
  z-index: 1;
  border-radius: 2px;
}

#total-bar {
  width: 100%;
  height: 100%;
  background: rgb(77,130,67);
  background: linear-gradient(329deg, rgba(77,130,67,1) 0%, rgba(33,56,14,1) 100%);
  opacity: 0.7;
}

#audioPlayer {
  display: none;
}

#track-title {
  color: #fff;
  text-shadow: 2px 2px 2px rgba(0,0,0,0.26);
}

#network-episodes > div:nth-child(2) {
  height: auto;
  left: calc(50% + 110px);
  position: fixed;
  max-width: 320px;
}

#map {
  width: 100%;
  height: 200px;
  background-color: #ffffff;
  border-radius: 12px;
  margin-bottom: 20px;
}

#load-more-button {
  margin-bottom: 150px;
}

.dashboard-grid {
  width: 95%;
  margin: auto;
  max-width: 1400px;
}

.dashboard-grid-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.dashboard-grid-cell {
  padding-top: 200px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.dashboard-grid-column {
  border-radius: 12px;
  background-color: #222;
}

.content {
  padding-top: 20px;
}

.content-cell {
  padding: 12px 20px 20px 20px;
  text-align: center;
}

.dashboard-grid-column > div > h3 {
  margin-bottom:1px;
  margin-top: 0;
}

.content-cell > button {
  background-color: #3d8d4b;
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 6px 20px;
  font-size: 16px;
  cursor: pointer;
}

.school-period {
  background-color: rgba(0,0,0,0.2);
  border-radius: 12px;
  height: 50px;
  width: 100%;
}

.school-period > p {
  padding: 5px;
  padding-left: 20px;
  margin-bottom: 0;
  padding-bottom: 0;
}

.school-period > p:nth-child(2) {
  margin-bottom: 0;
  padding-bottom: 0;
  font-size: 0.8em;
  line-height: 0.8em;
  color: rgba(184, 184, 184, 0.7);
  padding-top: 11px;
}

.school-period-tracker {
  height: inherit;
  width: 5px;
  background-color: #101711a5;
  position: absolute;
  z-index: -1;
  border-radius: 12px;
  height: 50px;
}

.class-container {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.class-container > h4 {
  margin-bottom: 0;
  margin-top: 5px;
}

.class-container > p {
  margin-bottom: 0;
}

#lessons {
  width: calc(100% - 40px);
  margin: auto;
}

.lesson-content {
  border: 1px solid #555;
}

.toc-block {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #555;
}

.toc-block, .toc-unit {
  margin-bottom: 8px;
}

.toc-block > h4 {
  font-size: 1.1em;
  margin-bottom: 5px;
}

#lessons-mobile {
  display: none;
  text-align: center;
  padding-top: 40px;
}

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

.filter-controls > input {
  font-size: 0.8em;
}

#school-filter {
  font-size: 0.8em;
  width: 180px;
}

#search-input {
  font-size: 0.9em;
}

#search-button {
  padding: 3px 10px;
  font-size: 0.8em;
}

.sfx-group {
  border-radius: 12px;
  padding: 20px;
  background-color: rgba(0,0,0,0.1);
}

.sfx-group ul {
  padding-left: 0;
}

.sfx-group ul li {
  list-style: none;
  border-bottom: 1px dotted #666;
  padding: 2px 0;
}

.sfx-group h2 {
  border-bottom: none;
}

.audio-file-cols {
  display: grid;
  grid-template-columns: 1fr 50px;
}

/* =============================================
   RESPONSIVE STYLES - ONE CLEAN SECTION
   ============================================= */

@media screen and (max-width: 1100px) {
  .dashboard-grid-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 768px) {
  #lessons .toc {
    width: 100%;
    padding: 10px;
  }
}

@media screen and (max-width: 700px) {
  #header {
    display: block;
  }

  .account-header {
    grid-template-columns: 1fr;
  }

  .audio-player {
    max-width: 100%;
    border-radius: 0;
  }

  #footer {
    display: none;
  }

  #network-left {
    width: 100%;
  }

  #network-episodes {
    display: block;
  }

  #network-episodes > div:nth-child(2) {
    width: 100%;
    height: 116px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    max-width: 100%;
  }

  #map {
    display: none;
  }

  #episode-list {
    margin-right: 0;
  }

  .dashboard-grid-row {
    grid-template-columns: 1fr;
  }

  .school-period {
    margin: 10px auto 20px auto;
    width: 100%;
  }

  .mw-2, .mw-3 {
    width: 100%;
  }

  .account-header > div:nth-child(2) {
    display: none;
  }
}

@media screen and (max-width: 400px) {
  #school-filt