:root {
  color-scheme: dark;
  --lt-bg: #111;
  --lt-panel: #242424;
  --lt-panel-soft: #2d2d2d;
  --lt-border: #444;
  --lt-text: #efefef;
  --lt-muted: #b8b8b8;
  --lt-orange: #ff5d1a;
  --lt-blue: #4d89c7;
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html,
body {
  background: var(--lt-bg);
  color: var(--lt-text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  height: 100%;
  margin: 0;
  padding: 0;
}

body#login-page {
  align-items: center;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 93, 26, 0.14), transparent 26%),
    linear-gradient(#151515, #050505);
  display: flex;
  justify-content: center;
  min-height: 100%;
}

a,
a:focus {
  color: #f2f2f2;
  outline: none;
}

::-webkit-scrollbar { height: 7px; width: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background-color: var(--lt-orange); border-radius: 10px; }

.lt-master-panel {
  background: linear-gradient(#2f2f2f, #1b1b1b);
  border-bottom: 1px solid #000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
  height: 102px;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1000;
}

#master-panel {
  align-items: center;
  display: flex;
  flex-flow: row nowrap;
  gap: 10px;
  height: 102px;
  overflow: hidden;
  padding: 0;
}

.logo-container {
  align-items: center;
  display: flex;
  flex: 0 0 150px;
  height: 100px;
  justify-content: center;
  text-align: center;
}

.lt-logo {
  color: #fff;
  display: block;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
}

.lt-logo .logo {
  display: block;
  max-height: 86px;
  max-width: 132px;
  padding: 6px;
}

.now-playing-artwork {
  background: linear-gradient(90deg, #161616, #2a2a2a);
  flex: 0 0 92px;
  height: 100px;
  padding: 12px 3px 13px 14px;
}

.now-playing-artwork_containter {
  background: #3a3a3a;
  border: 1px solid #242424;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.55);
  height: 75px;
  width: 75px;
}

.now-playing-block {
  flex: 1 1 360px;
  min-width: 260px;
  overflow: hidden;
}

.show-block {
  flex: 0 1 210px;
  min-width: 160px;
  overflow: hidden;
}

#master-panel .text-row {
  color: #dfdfdf;
  font-size: 11px;
  height: 28px;
  line-height: 28px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-row.next-song {
  color: #bababa;
}

.now-playing-info {
  background: #3a3a3a;
  border: 1px solid #242424;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45);
  color: #efefef;
  font-size: 12px;
  height: 25px;
  line-height: 24px;
  overflow: hidden;
  padding: 0 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progressbar {
  background: #1f1f1f;
  border: 1px solid #242424;
  border-top: 0;
  height: 8px;
  overflow: hidden;
}

.progress-song {
  background: #ff611f;
  height: 8px;
}

.progress-show {
  background: #02cef9;
  height: 8px;
}

.source-info-block {
  background: linear-gradient(90deg, #161616, #2a2a2a);
  flex: 0 0 190px;
  height: 100px;
  padding: 0;
}

.source-info-block h3,
.on-air-block h3 {
  background: rgba(0, 0, 0, 0.10);
  border-bottom: 1px solid #494949;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07);
  color: #acacac;
  font-size: 10px;
  margin: 0 0 8px;
  padding: 3px 0 2px 8px;
  text-shadow: 0 -1px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
}

.source-info-block ul {
  margin: 0 0 0 7px;
  padding: 0;
}

.source-info-block li {
  color: #bdbdbd;
  display: flex;
  font-size: 10px;
  height: 18px;
  list-style: none;
  margin: 3px 0;
  overflow: hidden;
}

.source-label {
  align-items: center;
  background: #3e3e3e;
  border-radius: 2px 0 0 2px;
  display: flex;
  gap: 4px;
  height: 15px;
  line-height: 14px;
  min-width: 95px;
  padding: 0 3px 0 0;
}

.source-info-block li.active .source-label {
  background: #2f2e2e;
  color: #fff;
}

.line-to-switch,
.line-to-on-air {
  background: #2b2b2b;
  border-top: 1px solid #555;
  height: 8px;
  margin-top: 4px;
  width: 14px;
}

.line-to-on-air {
  width: 20px;
}

.line-to-on-air.on {
  background: #ff611f;
  border-top-color: #ff8451;
}

.source-switch-button {
  background: linear-gradient(#555, #434343);
  border: 1px solid #2d2d2d;
  border-radius: 2px;
  display: block;
  height: 15px;
  width: 27px;
}

.source-switch-button span {
  background: linear-gradient(#959595, #7c7c7c);
  display: block;
  height: 13px;
  margin-left: 13px;
  width: 13px;
}

.source-switch-button.active {
  background: linear-gradient(#ff8451, #ff611f);
}

.source-switch-button.active span {
  margin-left: 0;
}

.source-kick-button {
  background: #262626;
  border-radius: 2px;
  display: inline-block;
  flex: 0 0 15px;
  height: 15px;
  position: relative;
  width: 15px;
}

.source-kick-button::before,
.source-kick-button::after {
  background: #999;
  content: "";
  height: 9px;
  left: 7px;
  position: absolute;
  top: 3px;
  width: 1px;
}

.source-kick-button::before {
  transform: rotate(45deg);
}

.source-kick-button::after {
  transform: rotate(-45deg);
}

.source-kick-button.is-read-only {
  cursor: not-allowed;
  opacity: 0.7;
}

.on-air-block {
  background: linear-gradient(90deg, #161616, #2a2a2a);
  flex: 0 0 96px;
  height: 100px;
  padding-right: 2px;
}

.on-air-info {
  background: linear-gradient(#575050, #3f3a3a);
  border: 1px solid #242424;
  border-bottom: 0;
  color: #a5a5a5;
  font-size: 16px;
  font-weight: bold;
  height: 36px;
  line-height: 36px;
  margin-top: 19px;
  min-width: 85px;
  text-align: center;
  text-shadow: #242424 0 -1px;
}

.on-air-info.on {
  background: linear-gradient(#d74535, #9b1e18);
  color: #fff;
}

.listen-control-button {
  background: #303030;
  border: 1px solid #242424;
  color: #dfdfdf;
  display: block;
  font-size: 11px;
  padding: 3px 0;
  text-align: center;
  text-decoration: none;
}

.plc-panel {
  flex: 0 0 156px;
  font-size: 10px;
}

.plc-matrix {
  align-items: center;
  display: grid;
  gap: 3px;
  grid-template-columns: 50px repeat(4, minmax(29px, 1fr));
}

.plc-row-title {
  color: #aaa;
  font-size: 9px;
  font-weight: bold;
  text-transform: uppercase;
}

.plc-lamp {
  background: #333;
  border: 1px solid #555;
  border-radius: 2px;
  color: #bbb;
  font-size: 10px;
  font-weight: bold;
  min-width: 29px;
  padding: 3px 4px;
  text-align: center;
}

.plc-lamp.lamp-on,
.plc-lamp.lamp-green {
  background: #365f27;
  color: #fff;
}

.plc-lamp.lamp-off,
.plc-lamp.lamp-red {
  background: #6a2824;
  color: #fff;
}

.plc-lamp.lamp-yellow {
  background: #7a6424;
  color: #fff;
}

.plc-step {
  color: #aaa;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plc-anomaly {
  color: #ffb199;
  font-size: 10px;
  min-height: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.time-info-block {
  flex: 0 0 145px;
  margin-left: auto;
  padding-right: 10px;
  text-align: right;
}

.time {
  color: #fff;
  font-size: 40px;
  line-height: 56px;
}

.personal-block,
.personal-block a {
  color: #cecece;
  font-size: 11px;
  text-decoration: none;
}

.personal-block a:hover,
.lt-side-nav a:hover {
  color: var(--lt-orange);
}

.lt-side-nav {
  background: #353535;
  border-right: 1px solid #242424;
  border-top: 1px solid #7e7e7e;
  bottom: 0;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.35);
  left: 0;
  padding: 0;
  position: fixed;
  top: 102px;
  width: 152px;
  z-index: 900;
}

.lt-side-nav .btn-group {
  padding: 4px;
}

.lt-side-nav .btn-group.new-media-bar {
  align-items: stretch;
  display: flex;
  gap: 4px;
}

.lt-side-nav .btn-group.new-media-bar .btn-new {
  flex: 1 1 auto;
}

.lt-side-nav details.new-media-menu {
  position: relative;
}

.lt-side-nav details.new-media-menu summary.new-media-menu-toggle {
  background: linear-gradient(#3a3a3a, #2a2a2a);
  border: 1px solid #555;
  border-radius: 2px;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-size: 11px;
  font-weight: bold;
  list-style: none;
  padding: 4px 10px;
  text-align: center;
}

.lt-side-nav details.new-media-menu summary.new-media-menu-toggle::-webkit-details-marker {
  display: none;
}

.lt-side-nav details.new-media-menu[open] summary.new-media-menu-toggle {
  background: linear-gradient(#ff8451, #ff611f);
  border-color: #ff611f;
}

.lt-side-nav details.new-media-menu .new-media-menu-list {
  background: #1f1f1f;
  border: 1px solid #444;
  display: flex;
  flex-direction: column;
  left: 0;
  min-width: 180px;
  padding: 4px 0;
  position: absolute;
  top: 100%;
  z-index: 200;
}

.lt-side-nav details.new-media-menu .new-media-menu-list a {
  color: #ddd;
  display: block;
  padding: 6px 12px;
  text-decoration: none;
}

.lt-side-nav details.new-media-menu .new-media-menu-list a:hover {
  background: #2c2c2c;
  color: #fff;
}

.radio-page-link[hidden] {
  display: none !important;
}

.source-switch-button,
.source-kick-button {
  appearance: none;
  cursor: pointer;
  font: inherit;
  margin: 0;
  padding: 0;
}

.source-switch-button:focus-visible,
.source-kick-button:focus-visible {
  outline: 2px solid var(--lt-orange);
  outline-offset: 1px;
}

.media_type_selector {
  background: transparent;
  border-right: 4px solid transparent;
  color: #cecece;
  display: block;
  font-size: 16px;
  font-weight: 400;
  margin: 0;
  padding: 10px 0 10px 10px;
  text-decoration: none;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.media_type_selector.top-link {
  background: transparent;
}

.media_type_selector:hover {
  background-color: #3a3a3a;
  color: #fff;
}

.media_type_selector.active,
.media_type_selector.parent-active {
  background: #3d3d3d;
  border-right-color: #1adeff;
  color: #fff;
  font-weight: bold;
}

.lt-side-nav hr {
  border: 0;
  border-top: 1px solid #444;
  margin: 10px 4px;
}

#disk_usage {
  color: #999;
  font-size: 11px;
  margin: 16px 8px 0;
}

.disk_usage_progress_bar {
  background: #111;
  border: 1px solid #444;
  height: 9px;
  margin-bottom: 4px;
  overflow: hidden;
}

.disk_usage_used {
  background: var(--lt-orange);
  height: 7px;
  width: 0;
}

.disk_usage_text {
  color: #777;
  font-size: 10px;
}

.wrapper {
  bottom: 0;
  left: 152px;
  margin-left: 0;
  overflow: auto;
  padding: 10px 10px 40px;
  position: absolute;
  right: 0;
  top: 102px;
}

.wrapper.has-sub-menu {
  left: 304px;
}

.wrapper.wrapper-bare {
  display: flex;
  gap: 10px;
}

.lt-sub-menu {
  background: #262626;
  border-right: 1px solid #111;
  border-top: 1px solid #5a5a5a;
  bottom: 0;
  box-shadow: inset -1px 0 rgba(255, 255, 255, 0.04);
  left: 152px;
  position: fixed;
  top: 102px;
  width: 152px;
  z-index: 880;
}

.lt-sub-menu h3 {
  background: #333;
  border-bottom: 1px solid #111;
  color: #ccc;
  font-size: 13px;
  margin: 0;
  padding: 10px 8px;
  text-transform: uppercase;
}

.lt-sub-menu .navigation {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lt-sub-menu .navigation li {
  border-bottom: 1px solid #333;
}

.lt-sub-menu .navigation a {
  color: #d8d8d8;
  display: block;
  font-size: 12px;
  padding: 8px 9px;
  text-decoration: none;
}

.lt-sub-menu .navigation li.active a,
.lt-sub-menu .navigation a:hover {
  background: #3d3d3d;
  color: #ff8a4d;
}

.content-pane {
  background: var(--lt-panel);
  border: 1px solid #202020;
  border-left-color: #2a2a2a;
  border-top-color: #353535;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.65);
  min-height: 100%;
  padding: 10px;
  position: relative;
}

.wide-panel {
  max-width: none;
}

.login_box {
  background: #252525;
  border: 1px solid #444;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.75), inset 0 1px rgba(255, 255, 255, 0.06);
  color: #eee;
  margin: 30px auto;
  padding: 22px;
  width: 360px;
}

.login-content {
  border-bottom: 1px solid #3a3a3a;
  margin-bottom: 16px;
  padding-bottom: 12px;
  text-align: center;
}

.login-content h1 {
  font-size: 26px;
  margin: 0 0 5px;
}

.login-content p {
  color: #aaa;
  margin: 0;
}

.login_box .edit-form {
  max-width: none;
}

.login_box input {
  background: #141414;
  border: 1px solid #777;
  color: #fff;
  padding: 6px;
}

.hero,
.domain-hero {
  border-bottom: 1px solid #3a3a3a;
  margin-bottom: 10px;
  padding: 0 0 8px;
}

.eyebrow,
.label {
  color: var(--lt-orange);
  display: block;
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 3px;
  text-transform: uppercase;
}

h1 {
  color: #efefef;
  font-size: 22px;
  font-weight: normal;
  line-height: 1.2;
  margin: 0 0 6px;
}

h2 {
  color: #efefef;
  font-size: 18px;
  font-weight: normal;
  margin: 0;
}

.lede {
  color: var(--lt-muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.button {
  background: linear-gradient(#555, #333);
  border: 1px solid #111;
  border-radius: 3px;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font: 12px Arial, Helvetica, sans-serif;
  font-weight: bold;
  line-height: 1.2;
  padding: 5px 9px;
  text-decoration: none;
}

.button:hover {
  background: linear-gradient(#666, #3a3a3a);
}

.button.secondary {
  background: #303030;
  color: #ddd;
}

.button.btn-new {
  background: #246b86;
  display: block;
  text-align: center;
}

.button.btn-new:hover {
  background: #185b6e;
}

.cards,
.health-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 10px;
}

.cards article,
.panel,
.summary-card {
  background: var(--lt-panel-soft);
  border: 1px solid var(--lt-border);
  border-radius: 2px;
  padding: 10px;
}

.cards strong,
.summary-card strong {
  color: #fff;
  display: block;
  font-size: 15px;
  font-weight: normal;
  margin-top: 2px;
}

.cards small,
.panel p,
.summary-card small,
.service-row small {
  color: var(--lt-muted);
}

.panel {
  line-height: 1.45;
  margin-top: 10px;
}

.dashboard-grid,
.lamp-grid,
.settings-grid,
.catalog-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-top: 10px;
}

.settings-zend-form > h2 {
  margin-bottom: 4px;
}

.settings-zend-form form > .button {
  float: right;
}

.collapsible-header {
  background: #303030;
  border: 1px solid #555;
  color: #efefef;
  font-size: 14px;
  margin: 12px 0 0;
  padding: 7px 9px;
}

.collapsible-header .arrow-icon::before {
  content: "v";
  display: inline-block;
  margin-right: 6px;
}

.collapsible-header.closed .arrow-icon::before {
  content: ">";
}

.zend-fieldset {
  border: 1px solid #555;
  margin: 12px 0;
  padding: 10px;
}

.zend-fieldset legend {
  color: #efefef;
  cursor: default;
  font-size: 14px;
  font-weight: bold;
  padding: 0 6px;
}

.zend-form-list {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
  margin: 8px 0 0;
}

.zend-form-list dt {
  color: #ddd;
  font-size: 12px;
  padding: 7px 10px 7px 0;
  text-align: right;
}

.zend-form-list dd {
  margin: 0;
  padding: 4px 0;
}

.zend-form-list input[type="text"],
.zend-form-list input[type="file"],
.zend-form-list select,
.zend-form-list textarea {
  background: #151515;
  border: 1px solid #777;
  color: #ddd;
  max-width: 560px;
  padding: 5px;
  width: 100%;
}

.zend-form-list input:disabled,
.zend-form-list select:disabled,
.zend-form-list textarea:disabled {
  opacity: 0.85;
}

.radio-inline-list {
  display: inline-block;
  margin-right: 12px;
}

.warning {
  background: #302119;
  border: 1px solid #7a4b2a;
  color: #f0d0bd;
  margin-bottom: 10px;
  padding: 8px;
}

.warning-label {
  margin: 0;
}

.control-room-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1.1fr 1fr;
  margin-top: 10px;
}

.lamp-card {
  align-items: center;
  background: #252525;
  border: 1px solid #444;
  border-radius: 2px;
  display: flex;
  gap: 8px;
  min-height: 54px;
  padding: 8px;
}

.lamp-card strong,
.lamp-card span,
.lamp-card small {
  display: block;
}

.lamp-card strong {
  font-size: 13px;
  letter-spacing: 0.04em;
}

.lamp-card small {
  color: var(--lt-muted);
  margin-top: 2px;
}

.lamp-dot {
  border-radius: 50%;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.35), 0 0 7px currentColor;
  flex: 0 0 12px;
  height: 12px;
  width: 12px;
}

.lamp-card.is-on .lamp-dot,
.summary-card.is-ok .lamp-dot {
  background: #78b948;
  color: #78b948;
}

.lamp-card.is-off .lamp-dot,
.summary-card.is-bad .lamp-dot {
  background: #c74135;
  color: #c74135;
}

.lamp-card.is-unknown .lamp-dot {
  background: #aaa;
  color: #aaa;
}

.summary-card {
  display: grid;
  gap: 3px;
}

.summary-card strong {
  font-size: 14px;
}

.summary-card.is-ok,
.service-row.is-ok {
  border-left: 3px solid #78b948;
}

.summary-card.is-bad,
.service-row.is-bad {
  border-left: 3px solid #c74135;
}

.panel-heading,
.panel-header {
  align-items: center;
  background: linear-gradient(#3a3a3a, #262626);
  border-bottom: 1px solid #111;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin: -10px -10px 10px;
  min-height: 34px;
  padding: 7px 10px;
}

.panel-heading h2,
.panel-header h2 {
  margin: 0;
}

.pill {
  background: #1f1f1f;
  border: 1px solid #555;
  border-radius: 3px;
  color: #eee;
  display: inline-block;
  font-size: 11px;
  font-weight: bold;
  padding: 3px 6px;
}

.service-list {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.service-row {
  align-items: center;
  background: #242424;
  border: 1px solid #3c3c3c;
  border-radius: 2px;
  display: flex;
  justify-content: space-between;
  padding: 6px 8px;
}

.service-row strong,
.service-row small {
  display: block;
}

.service-row span {
  font-weight: bold;
  text-transform: uppercase;
}

.next-list {
  color: #ddd;
  display: grid;
  gap: 5px;
  margin: 8px 0 0;
  padding-left: 18px;
}

.next-list li::marker {
  color: var(--lt-orange);
  font-weight: bold;
}

.metadata-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 8px 0 0;
}

.metadata-list div {
  background: #252525;
  border: 1px solid #3c3c3c;
  border-radius: 2px;
  padding: 7px;
}

.metadata-list dt {
  color: var(--lt-orange);
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}

.metadata-list dd {
  color: #eee;
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}

.search-form {
  display: grid;
  gap: 6px;
}

.search-form label,
.edit-form label {
  color: #e6e6e6;
  font-weight: bold;
}

.search-form div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.search-form input,
.search-form select,
.edit-form input {
  background: #181818;
  border: 1px solid #555;
  border-radius: 2px;
  color: #eee;
  font: 12px Arial, Helvetica, sans-serif;
  min-width: 0;
  padding: 5px 6px;
}

.search-form input {
  flex: 1 1 280px;
}

.settings-field-grid {
  display: grid;
  gap: 8px 12px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.settings-field-grid label {
  color: #e6e6e6;
  display: grid;
  font-weight: bold;
  gap: 4px;
}

.settings-field-grid input {
  background: #181818;
  border: 1px solid #555;
  border-radius: 2px;
  color: #eee;
  font: 12px Arial, Helvetica, sans-serif;
  min-width: 0;
  padding: 5px 6px;
}

.settings-write-block {
  background: #2d261d;
  border: 1px solid #6a4a21;
  color: #e6d5bf;
  margin-top: 10px;
  padding: 8px;
}

.library-tab-panel[hidden] {
  display: none;
}

.library-tab-heading {
  color: #f4f4f4;
  font-size: 14px;
  font-weight: bold;
  margin: 0 12px 0 0;
}

.draggable-row {
  cursor: grab;
}

.draggable-row.dragging {
  opacity: 0.55;
}

tr.dragover {
  background: rgba(255, 93, 26, 0.18) !important;
  outline: 1px dashed #ff8451;
}

.timeline-dragover {
  background: rgba(255, 93, 26, 0.12);
  outline: 2px dashed #ff8451;
  outline-offset: -3px;
}

th.column-grabbing {
  cursor: grabbing;
  background: rgba(255, 93, 26, 0.18);
}

th.column-droptarget {
  background: rgba(255, 93, 26, 0.32);
  box-shadow: inset 0 0 0 2px #ff611f;
}

.advanced-search-row {
  background: rgba(0, 0, 0, 0.2);
  display: grid;
  gap: 6px 14px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  padding: 8px 12px;
}

.advanced-search-row .control-group {
  align-items: center;
  display: flex;
  gap: 6px;
}

.advanced-search-row .control-label {
  color: #cfcfcf;
  font-size: 11px;
  white-space: nowrap;
}

.advanced-search-row input[type="search"] {
  background: #1a1a1a;
  border: 1px solid #444;
  color: #efefef;
  flex: 1 1 auto;
  font-size: 11px;
  padding: 3px 6px;
}

.playlist-editor-panel {
  margin: 12px;
  max-width: 980px;
}

.inner_editor_title h2 {
  color: #333;
  font-size: 20px;
  margin: 0 0 10px;
}

.title_obj_name {
  color: #d85f21;
}

.playlist_editor dt,
.zend_form dt {
  clear: left;
  float: left;
  font-weight: 700;
  padding: 6px 10px 6px 0;
  text-align: right;
  width: 150px;
}

.playlist_editor dd,
.zend_form dd {
  margin: 0 0 8px 165px;
}

.playlist_name_display,
.playlist_editor input,
.playlist_editor textarea,
.zend_form input,
.zend_form textarea,
.zend_form select {
  border: 1px solid #b8b8b8;
  border-radius: 2px;
  box-sizing: border-box;
  font-size: 13px;
  padding: 5px;
}

.playlist-toolbar {
  align-items: center;
  background: linear-gradient(#f5f5f5, #dfdfdf);
  border: 1px solid #c2c2c2;
  display: flex;
  gap: 8px;
  margin: 12px 0;
  padding: 7px;
}

.obj_length,
.obj_length_label {
  color: #444;
  font-size: 14px;
  margin: 0;
}

.crossfade-main,
.smart-block-criteria-clone {
  background: #f5f5f5;
  border: 1px solid #ccc;
  margin: 8px 0;
  padding: 10px;
}

.smart-criteria-fieldset {
  border: 1px dashed #c8c8c8;
  margin: 8px 0;
  padding: 8px;
}

.smart-criteria-fieldset legend {
  color: #555;
  font-size: 12px;
  font-weight: 700;
  padding: 0 4px;
}

table.smart-criteria-table {
  background: #fff;
  border-collapse: collapse;
  width: 100%;
}

table.smart-criteria-table th,
table.smart-criteria-table td {
  border: 1px solid #ddd;
  padding: 4px 6px;
  vertical-align: middle;
}

.smart-criteria-actions {
  width: 40px;
}

.smart-criteria-add {
  margin-top: 8px;
}

.smart-criteria-value-wrap input,
.smart-criteria-value-wrap select {
  width: 100%;
}

.spl_sortable .ui-state-default[draggable="true"] {
  cursor: grab;
}

.spl_sortable .ui-state-default.dragging {
  opacity: 0.6;
}

.spl_sortable .ui-state-default.dragover {
  outline: 2px dashed var(--lt-orange);
}

.spl_sortable .ui-state-default.pending-removal {
  opacity: 0.55;
  text-decoration: line-through;
}

.spl_sortable.details-collapsed .cue-edit {
  display: none;
}

.big_play {
  appearance: none;
  border: 0;
  cursor: pointer;
}

.big_play.playing {
  background: var(--lt-orange);
  color: #1a1a1a;
}

.spl_remove {
  appearance: none;
  background: transparent;
  border: 0;
  color: #b04040;
  cursor: pointer;
}

.spl_sortable {
  list-style: none;
  margin: 8px 0;
  padding: 0;
}

.spl_sortable .ui-state-default {
  background: #f7f7f7;
  border: 1px solid #c9c9c9;
  margin: 4px 0;
  padding: 8px;
}

.list-item-container {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 48px 1fr auto;
}

.big_play {
  background: #333;
  border-radius: 3px;
  color: #fff;
  font-size: 11px;
  padding: 6px;
  text-align: center;
}

.spl_playlength {
  color: #777;
  display: inline-block;
  min-width: 80px;
}

.spl_title {
  font-weight: 700;
}

.spl_artist,
.spl_offset,
.field-hint {
  color: #777;
  font-size: 12px;
}

.schedule-dialog-surface,
.zend-settings-map,
.podcast-url-dialog form {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.schedule-add-show-clone {
  margin: 12px;
  max-width: 900px;
}

.show-form-repeats,
.show-form-autoload,
.show-form-custom-auth {
  margin-top: 8px;
}

.show-form-days {
  border: 1px dashed #c8c8c8;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
}

.show-form-days legend {
  color: #555;
  font-size: 11px;
  font-weight: 700;
  padding: 0 4px;
}

.radio-inline-list {
  align-items: center;
  display: inline-flex;
  gap: 4px;
  margin-right: 12px;
}

.schedule-add-show-clone .edit-form label,
.podcast-metadata-row {
  display: grid;
  gap: 8px;
  grid-template-columns: 170px minmax(240px, 1fr);
  margin: 6px 0;
}

.schedule-add-show-clone input,
.schedule-add-show-clone textarea,
.schedule-add-show-clone select,
.podcast-metadata-row input,
.podcast-metadata-row textarea,
.podcast-metadata-row select,
.podcast-url-dialog input {
  border: 1px solid #b8b8b8;
  border-radius: 2px;
  box-sizing: border-box;
  padding: 5px;
}

.zend-pending-fieldset,
.apple-readiness-panel {
  background: #fff8dd;
  border: 1px solid #d8c170;
  margin: 8px 0;
  padding: 10px;
}

.search-form small {
  color: #999;
}

.data-table-wrap {
  margin-top: 8px;
  overflow-x: auto;
}

.library-grid {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 560px;
  position: relative;
}

.library-grid[hidden] {
  display: none !important;
}

.grid-toolbar,
.grid-footer {
  align-items: center;
  background: #4a4a4a;
  border: 1px solid #222;
  color: #efefef;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  min-height: 34px;
  padding: 5px 6px;
}

.library-grid-toolbar {
  gap: 4px;
  justify-content: flex-start;
  min-height: 25px;
  padding: 2px 4px;
}

.library-grid-toolbar .dataTables_filter {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  gap: 4px;
  margin: 0;
  min-width: 120px;
}

.library-grid-toolbar .dataTables_filter input {
  height: 19px;
  width: 115px;
}

.library-grid-toolbar .btn,
.library-grid-toolbar .ColVis > summary {
  background: linear-gradient(#4f4f4f, #2d2d2d);
  border: 1px solid #111;
  border-radius: 2px;
  color: #eee;
  cursor: pointer;
  font: 10px Arial, Helvetica, sans-serif;
  line-height: 15px;
  min-height: 18px;
  padding: 1px 5px;
  text-decoration: none;
  white-space: nowrap;
}

.library-grid-toolbar .btn:hover,
.library-grid-toolbar .ColVis > summary:hover {
  background: linear-gradient(#626262, #333);
}

.library-grid-toolbar .btn:disabled {
  color: #888;
  cursor: default;
  opacity: 1;
}

.library-grid-toolbar .btn-danger {
  color: #ffb0a5;
}

.grid-toolbar input,
.grid-footer select,
.advanced_search input {
  background: #181818;
  border: 1px solid #777;
  color: #eee;
  font: 12px Arial, Helvetica, sans-serif;
  padding: 3px 5px;
}

.dataTables_scrolling {
  border: 1px solid #5b5b5b;
  flex: 1 1 auto;
  min-height: 380px;
  overflow: auto;
}

.dt-process-rel {
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  display: none;
  font-weight: bold;
  left: 50%;
  padding: 8px 12px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
}

#filter_options {
  border: 0;
  border-top: 1px solid #555;
  margin: 0 0 2px;
  padding: 0;
}

#filter_options legend {
  color: #efefef;
  cursor: pointer;
  display: inline-block;
  font-size: 11px;
  line-height: 17px;
  padding: 0 6px 2px 0;
  width: 118px;
}

#filter_options.closed {
  margin-bottom: -1px;
}

#filter_options.closed .advanced_search {
  display: none;
}

.advanced_search {
  background: #303030;
  display: grid;
  gap: 3px 8px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  padding: 4px 6px 5px;
}

.control-group {
  align-items: center;
  display: grid;
  gap: 4px;
  grid-template-columns: 72px minmax(0, 1fr);
}

.control-label {
  color: #efefef;
  font-size: 10px;
  text-align: right;
}

.controls input,
.controls select {
  background: #181818;
  border: 1px solid #777;
  color: #eee;
  font: 12px Arial, Helvetica, sans-serif;
  padding: 3px 5px;
  width: 100%;
}

.filter_number_range {
  display: grid;
  gap: 4px;
  grid-template-columns: 1fr 1fr;
}

.ColVis {
  position: relative;
}

.ColVis > summary {
  cursor: pointer;
  list-style: none;
}

.ColVis_collection {
  background: #2b2b2b;
  border: 1px solid #555;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.55);
  max-height: 360px;
  min-width: 260px;
  overflow: auto;
  padding: 6px;
  position: absolute;
  right: 0;
  top: 30px;
  z-index: 30;
}

.grid-column-option {
  align-items: center;
  display: grid;
  gap: 5px;
  grid-template-columns: 16px minmax(120px, 1fr) auto auto;
  padding: 2px 0;
}

.grid-column-option button,
.grid-page,
.grid-sort {
  background: linear-gradient(#555, #333);
  border: 1px solid #111;
  color: #fff;
  cursor: pointer;
  font: 11px Arial, Helvetica, sans-serif;
  padding: 2px 5px;
}

.grid-page:disabled,
.grid-column-option button:disabled {
  cursor: default;
  opacity: 0.45;
}

.grid-sort {
  background: transparent;
  border: 0;
  color: #ccc;
  font-weight: bold;
  padding: 0;
  text-align: left;
  width: 100%;
}

.data-table {
  border-collapse: collapse;
  font-size: 11px;
  line-height: 15px;
  min-width: 720px;
  width: 100%;
}

.data-table th,
.data-table td {
  border: 1px solid #3b3b3b;
  padding: 2px 4px;
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  background: linear-gradient(#3a3a3a, #282828);
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  white-space: nowrap;
}

.data-table td {
  background: #202020;
  color: #ddd;
}

.data-table tr:nth-child(even) td {
  background: #252525;
}

.data-table tr.lib-selected td,
.data-table tr.lib-selected:nth-child(even) td {
  background: #4a341f;
  box-shadow: inset 0 0 0 1px #ff611f;
  color: #fff;
}

.data-table td strong,
.data-table td small {
  display: block;
}

.data-table td small {
  color: #aaa;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.table-badge {
  background: #333;
  border: 1px solid #555;
  border-radius: 2px;
  color: #eee;
  display: inline-block;
  font-size: 11px;
  font-weight: bold;
  margin: 1px 2px 1px 0;
  padding: 2px 5px;
  text-decoration: none;
  white-space: nowrap;
}

.file_type {
  background: linear-gradient(#555, #2e2e2e);
  border: 1px solid #777;
  border-radius: 2px;
  display: inline-block;
  height: 13px;
  position: relative;
  width: 16px;
}

.file_type.audioclip::before {
  border-bottom: 4px solid transparent;
  border-left: 6px solid #e7e7e7;
  border-top: 4px solid transparent;
  content: "";
  height: 0;
  left: 5px;
  position: absolute;
  top: 2px;
  width: 0;
}

.file_type.webstream::before {
  color: #fff;
  content: "w";
  display: block;
  font-size: 10px;
  line-height: 11px;
  text-align: center;
}

.library_checkbox {
  padding-left: 2px !important;
  padding-right: 2px !important;
  text-align: center;
  width: 18px;
}

.library_artwork {
  padding-left: 2px !important;
  padding-right: 2px !important;
  text-align: center;
  width: 20px;
}

.img_small,
.library-artwork-placeholder {
  background: #151515;
  border: 1px solid #555;
  display: inline-block;
  height: 14px;
  vertical-align: middle;
  width: 14px;
}

.library-artwork-placeholder::before {
  color: #777;
  content: "-";
  display: block;
  font-size: 10px;
  line-height: 12px;
  text-align: center;
}

.library_track_type_btn {
  background: #333;
  border: 1px solid #666;
  border-radius: 2px;
  color: #efefef;
  display: inline-block;
  font-size: 10px;
  font-weight: bold;
  line-height: 14px;
  min-width: 20px;
  padding: 0 4px;
  text-align: center;
}

.small-icon {
  display: inline-block;
  height: 16px;
  width: 20px;
}

.small-icon.is_scheduled {
  background: #ff9f1a;
  border-radius: 50%;
  height: 10px;
  margin-left: 4px;
  width: 10px;
}

.library_actions_btn {
  background: #303030;
  border: 1px solid #ccc;
  border-radius: 50%;
  color: #eee;
  display: inline-block;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  height: 17px;
  line-height: 12px;
  padding: 0 0 3px;
  text-decoration: none;
  width: 17px;
}

.library_actions_btn:hover {
  background: #555;
}

button.table-badge {
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
}

.zend-library-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: flex-end;
}

.library-selection-count {
  color: #cfcfcf;
  font-size: 10px;
  margin-left: 4px;
  white-space: nowrap;
}

#library_display .library_type,
#library_display .library_actions,
#library_display .library_is_scheduled {
  text-align: center;
  width: 20px;
}

#library_display .library_length {
  white-space: nowrap;
  width: 48px;
}

#library_display .library_title {
  min-width: 130px;
}

#library_display .library_creator {
  min-width: 95px;
}

.button.danger {
  border-color: #8f4034;
  color: #ffb0a5;
}

.button:disabled,
.table-badge:disabled {
  cursor: default;
  opacity: 0.45;
}

.table-badge.danger {
  border-color: #8f4034;
  color: #ffb0a5;
}

.table-badge.is-active {
  background: var(--lt-orange);
  border-color: #ff8a4d;
  color: #111;
}

a.table-badge:hover {
  color: var(--lt-orange);
}

a.table-badge.is-active:hover {
  color: #111;
}

.lt-section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.showbuilder-shell {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(390px, 0.9fr) minmax(520px, 1.1fr);
  height: calc(100vh - 130px);
}

.lib-content,
.sb-content {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  overflow: hidden;
}

#show_builder .sb-head {
  min-height: 32px;
}

.showbuilder-filter-form {
  align-items: end;
  background: #333;
  border: 1px solid #1f1f1f;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, minmax(130px, 1fr)) auto auto;
  margin-bottom: 6px;
  padding: 6px;
}

.showbuilder-filter-form label {
  color: #ddd;
  display: grid;
  font-size: 11px;
  gap: 3px;
}

.showbuilder-filter-form input,
.showbuilder-filter-form select {
  background: #171717;
  border: 1px solid #666;
  color: #eee;
  font: 12px Arial, Helvetica, sans-serif;
  padding: 4px;
}

.showbuilder-filter-form .checkbox-row {
  align-items: center;
  display: flex;
  gap: 5px;
  padding-bottom: 5px;
}

.showbuilder-grid {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  position: relative;
}

.showbuilder-scroller {
  min-height: 420px;
}

.showbuilder-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

#show_builder_table tr.sb-selected td {
  background: #5a3a20;
  color: #fff;
}

#show_builder_table .sb-header td,
#show_builder_table .sb-footer td,
#show_builder_table .sb-empty td {
  font-weight: bold;
}

#show_builder_table .sb-header td {
  background: #272727;
  border-top: 1px solid #666;
  color: #fff;
}

#show_builder_table .sb-footer td {
  background: #373737;
  color: #cfe8ba;
}

#show_builder_table .sb-footer.ui-state-error td {
  color: #ffb0a5;
}

#show_builder_table .sb-empty td {
  background: #2f2f2f;
  color: #b9b9b9;
  font-style: italic;
  height: 34px;
}

.sb-checkbox {
  text-align: center;
  width: 36px;
}

.sb-title {
  min-width: 210px;
}

.sb-starts,
.sb-ends {
  min-width: 128px;
}

.sb-length {
  min-width: 72px;
}

.sb-creator,
.sb-album {
  min-width: 150px;
}

.schedule-block {
  flex: 1 1 auto;
  min-height: calc(100vh - 130px);
  min-width: 0;
  width: 100%;
}

.schedule-toolbar {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 150px);
  position: relative;
  width: 100%;
}

.fc-header {
  align-items: center;
  background: #414141;
  border: 1px solid #222;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(230px, 1fr) auto minmax(330px, 1fr);
  min-height: 42px;
  padding: 5px 6px;
}

.fc-header h2 {
  font-size: 18px;
  margin: 0;
  text-align: center;
}

.fc-header-left,
.fc-header-right {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.fc-header-right {
  justify-content: flex-end;
}

.schedule-slot-control {
  align-items: center;
  color: #d8d8d8;
  display: inline-flex;
  font: 11px Arial, Helvetica, sans-serif;
  gap: 4px;
  margin-right: 4px;
  white-space: nowrap;
}

.schedule-slot-control select {
  background: #1b1b1b;
  border: 1px solid #666;
  color: #eee;
  font: 11px Arial, Helvetica, sans-serif;
  height: 20px;
  padding: 1px 3px;
}

.fc-header .button.is-active {
  background: linear-gradient(#ff7a36, #c94c18);
  border-color: #ff8a4d;
  color: #111;
}

.schedule-zend-actions {
  align-items: center;
  background: #343434;
  border-left: 1px solid #222;
  border-right: 1px solid #222;
  border-bottom: 1px solid #222;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px 7px;
}

.schedule-action-label {
  color: #bfbfbf;
  font-size: 11px;
  font-weight: bold;
  margin-right: 3px;
  text-transform: uppercase;
}

.schedule-zend-actions .field-hint {
  margin: 0 0 0 5px;
}

#schedule_calendar_cell {
  border: 1px solid #565656;
  flex: 1 1 auto;
  min-height: 560px;
  overflow: auto;
  width: 100%;
}

.schedule-calendar {
  background: #1f1f1f;
  min-height: 560px;
  min-width: 100%;
  width: 100%;
}

.schedule-month-view {
  display: grid;
  grid-auto-rows: minmax(105px, 1fr);
  grid-template-columns: repeat(7, minmax(130px, 1fr));
}

.fc-day,
.fc-agenda-day {
  background: #292929;
  border-bottom: 1px solid #555;
  border-right: 1px solid #555;
  padding: 4px;
}

.fc-other-month {
  background: #202020;
  color: #777;
}

.fc-day-number {
  color: #bdbdbd;
  font-weight: bold;
  margin-bottom: 3px;
  text-align: right;
}

.schedule-agenda-view {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.fc-agenda-day h3 {
  background: #3b3b3b;
  color: #fff;
  font-size: 13px;
  margin: -4px -4px 5px;
  padding: 5px;
}

.schedule-agenda-grid {
  --day-height: 1440px;
  display: grid;
  grid-template-rows: 32px 1fr;
}

.fc-agenda-header {
  background: #232323;
  border-bottom: 1px solid #444;
  display: grid;
  grid-template-columns: 56px repeat(var(--days), 1fr);
  position: sticky;
  top: 0;
  z-index: 6;
}

.fc-agenda-corner {
  border-right: 1px solid #3a3a3a;
}

.fc-agenda-day-heading {
  border-right: 1px solid #3a3a3a;
  color: #d8d8d8;
  font-size: 12px;
  font-weight: bold;
  padding: 6px 8px;
}

.fc-agenda-body {
  display: grid;
  grid-template-columns: 56px repeat(var(--days), 1fr);
  height: var(--day-height);
  position: relative;
}

.fc-agenda-times {
  background: #1f1f1f;
  border-right: 1px solid #3a3a3a;
  display: grid;
  grid-template-rows: repeat(var(--slots), 1fr);
}

.fc-agenda-time {
  border-bottom: 1px solid #2a2a2a;
  color: #888;
  font-size: 10px;
  line-height: 1;
  min-height: 1px;
  overflow: hidden;
  padding: 2px 6px 0;
  text-align: right;
}

.fc-agenda-day-column {
  border-right: 1px solid #2a2a2a;
  display: grid;
  grid-template-rows: repeat(var(--slots), 1fr);
  position: relative;
}

.fc-agenda-slot {
  border-bottom: 1px dashed #2a2a2a;
}

.fc-event-block {
  background: #3f6f9f;
  border-radius: 3px;
  cursor: grab;
  left: 4px;
  margin: 0;
  position: absolute;
  right: 4px;
  user-select: none;
}

.fc-event-block.dragging,
.fc-event-block.resizing {
  cursor: grabbing;
  opacity: 0.85;
  outline: 2px dashed #fff;
}

.fc-event-resize {
  bottom: 0;
  cursor: ns-resize;
  height: 6px;
  left: 0;
  position: absolute;
  right: 0;
  background: rgba(0, 0, 0, 0.18);
}

.fc-event-resize:hover {
  background: rgba(255, 255, 255, 0.25);
}

.fc-empty {
  color: #999;
  font-style: italic;
  margin: 8px;
}

.fc-event {
  border: 1px solid rgba(0, 0, 0, 0.55);
  border-radius: 2px;
  cursor: pointer;
  display: block;
  font: 11px Arial, Helvetica, sans-serif;
  margin: 2px 0;
  overflow: hidden;
  padding: 2px 4px;
  text-align: left;
  text-overflow: ellipsis;
  width: 100%;
}

.fc-event-empty {
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.12) 4px,
    rgba(0, 0, 0, 0.05) 4px,
    rgba(0, 0, 0, 0.05) 8px
  );
}

.fc-event-time {
  font-weight: bold;
  margin-right: 4px;
}

.fc-event-title {
  white-space: nowrap;
}

#schedule_event_dialog {
  position: relative;
}

.schedule-event-dialog {
  background: #2a2a2a;
  border: 1px solid #777;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.65);
  max-width: 460px;
  padding: 10px;
  position: absolute;
  right: 10px;
  top: -540px;
  z-index: 40;
}

.schedule-message-dialog {
  max-width: 360px;
}

.show-content-dialog {
  max-height: 520px;
  max-width: 760px;
  overflow: auto;
  width: min(760px, calc(100vw - 360px));
}

.schedule-event-dialog h3 {
  margin: 6px 0 8px;
}

.schedule-event-dialog dl {
  display: grid;
  gap: 4px 10px;
  grid-template-columns: 90px 1fr;
  margin: 0;
}

.schedule-event-dialog dt {
  color: #aaa;
  font-weight: bold;
}

.schedule-event-dialog dd {
  margin: 0;
}

.show-content-meta {
  color: #bbb;
  margin: 0 0 8px;
}

.show-content-table {
  min-width: 650px;
}

#show_time_info {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: auto 1fr auto;
  margin-top: 10px;
}

#show_progressbar {
  background: #151515;
  border: 1px solid #555;
  height: 12px;
  overflow: hidden;
}

#show_progressbar span {
  background: #ff611f;
  display: block;
  height: 100%;
}

.schedule-context-menu {
  background: #252525;
  border: 1px solid #777;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.7);
  min-width: 170px;
  padding: 4px;
  position: fixed;
  z-index: 60;
}

.context-menu-item {
  background: transparent;
  border: 0;
  color: #eee;
  cursor: pointer;
  display: block;
  font: 12px Arial, Helvetica, sans-serif;
  padding: 6px 8px;
  text-align: left;
  width: 100%;
}

.context-menu-title {
  border-bottom: 1px solid #444;
  color: #bbb;
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 3px;
  overflow: hidden;
  padding: 5px 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modern-floating-notice {
  background: #2a2a2a;
  border: 1px solid #777;
  color: #e5e5e5;
  max-width: 390px;
  padding: 10px;
  position: fixed;
  z-index: 80;
}

.modern-floating-notice h3 {
  font-size: 15px;
  margin: 6px 0;
}

.modern-floating-notice p {
  color: #cfcfcf;
  margin: 0;
}

.context-menu-item:hover {
  background: #3b3b3b;
  color: #ff8a4d;
}

.context-menu-item.disabled {
  color: #777;
  cursor: default;
}

.context-menu-item.disabled:hover {
  background: transparent;
  color: #777;
}

.context-menu-item.pending {
  color: #c9c9c9;
}

.context-menu-item.pending:hover {
  background: #3b3328;
  color: #ffb76a;
}

.edit-form {
  display: grid;
  gap: 8px;
  max-width: 640px;
}

.edit-form label {
  display: grid;
  gap: 3px;
}

.edit-form .checkbox-row {
  align-items: center;
  display: flex;
  gap: 6px;
}

.inline-form {
  display: inline;
}

.form-error {
  color: #ff9b8d;
  font-weight: bold;
}

.upload-panel {
  margin-bottom: 12px;
}

#upload_wrapper {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) 220px;
}

#track_type_selection {
  grid-column: 1 / -1;
}

#upload_form h2 {
  color: #fff;
  font-size: 18px;
  margin: 0;
}

#add-media-dropzone {
  background: #1d1d1d;
  border: 2px dashed #696969;
  border-radius: 3px;
  min-height: 150px;
  padding: 18px;
}

#add-media-dropzone .dz-message {
  align-items: center;
  color: #ddd;
  cursor: pointer;
  display: flex;
  font-size: 16px;
  justify-content: center;
  min-height: 72px;
  text-align: center;
}

#add-media-dropzone input[type="file"] {
  display: block;
  margin: 10px auto;
  max-width: 100%;
}

#uploads_disk_usage {
  background: #1b1b1b;
  border: 1px solid #3a3a3a;
  border-radius: 3px;
  padding: 10px;
}

#uploads_disk_usage .disk_usage_progress_bar {
  background: #090909;
  border: 1px solid #555;
  height: 13px;
  margin: 5px 0;
  position: relative;
}

#uploads_disk_usage .disk_usage_used {
  background: var(--lt-orange);
  height: 100%;
}

#plupload_error {
  margin-top: 10px;
}

.muted {
  color: #999;
}

@media (max-width: 760px) {
  .lt-master-panel {
    height: auto;
    position: static;
  }

  #master-panel {
    align-items: flex-start;
    flex-wrap: wrap;
    height: auto;
    padding: 6px;
  }

  .logo-container,
  .now-playing-artwork,
  .now-playing-block,
  .show-block,
  .source-info-block,
  .on-air-block,
  .plc-panel,
  .time-info-block {
    flex: 1 1 100%;
    height: auto;
  }

  .lt-side-nav {
    border-right: 0;
    position: static;
    padding: 8px;
    width: auto;
  }

  .wrapper {
    margin-left: 0;
    position: static;
    padding: 8px;
  }

  .control-room-grid {
    grid-template-columns: 1fr;
  }

  .showbuilder-shell {
    grid-template-columns: 1fr;
  }
}

.podcast-subscribe-dialog {
  background: #f6f6f6;
  border: 1px solid #b8b8b8;
  border-radius: 4px;
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.35);
  color: #333;
  max-width: 480px;
  padding: 18px 22px;
  width: calc(100% - 32px);
}

.podcast-subscribe-dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.podcast-subscribe-dialog form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.podcast-subscribe-dialog h2 {
  font-size: 18px;
  margin: 0 0 4px;
}

.podcast-subscribe-help {
  color: #555;
  font-size: 12px;
  margin: 0;
}

.podcast-subscribe-dialog label {
  font-size: 12px;
  font-weight: 700;
}

.podcast-subscribe-dialog input[type="url"] {
  border: 1px solid #b8b8b8;
  border-radius: 2px;
  box-sizing: border-box;
  padding: 6px 8px;
  width: 100%;
}

.podcast-subscribe-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 6px;
}

.podcast-subscribe-dialog .errors {
  background: #fff1d6;
  border: 1px solid #d8c170;
  color: #663;
  font-size: 12px;
  margin: 0;
  padding: 6px 8px;
}

.podcast-editor-panel .inner_editor_title {
  margin-bottom: 12px;
}

.podcast-editor-panel .podcast-metadata-row label {
  align-self: start;
  color: #444;
  font-size: 12px;
  font-weight: 700;
  padding-top: 4px;
}

.podcast-editor-panel .podcast-url {
  color: #2761c2;
  word-break: break-all;
}

.podcast-editor-panel .podcast-metadata-row .checkbox-row {
  align-items: center;
  display: inline-flex;
  font-weight: 400;
  gap: 6px;
}

.podcast-editor-panel .btn-toolbar {
  align-items: center;
  border-top: 1px solid #d8d8d8;
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
}

.podcast-editor-panel .btn-toolbar .btn-group {
  display: flex;
  gap: 6px;
}

.podcast-editor-panel .btn-toolbar .pull-right {
  margin-left: auto;
}

.podcast-editor-panel .pc-sb-success,
.podcast-editor-panel .pc-save-success {
  color: #2c7d2c;
  font-size: 12px;
  font-weight: 700;
  margin-left: 8px;
}

.podcast-episodes-panel {
  margin-top: 18px;
}

.podcast-episodes-panel h3 {
  border-bottom: 1px solid #d8d8d8;
  font-size: 14px;
  margin: 0 0 8px;
  padding-bottom: 6px;
}

.podcast-episodes-panel table.datatable {
  border-collapse: collapse;
  width: 100%;
}

.podcast-episodes-panel table.datatable th,
.podcast-episodes-panel table.datatable td {
  border-bottom: 1px solid #e6e6e6;
  font-size: 12px;
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
}

.podcast-episodes-panel table.datatable th {
  background: #ececec;
  color: #444;
  font-weight: 700;
}

.stream-settings-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stream-settings-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

@media (max-width: 1100px) {
  .stream-settings-grid {
    grid-template-columns: 1fr;
  }
}

.stream-settings-column fieldset {
  border: 1px solid #d8d8d8;
  border-radius: 3px;
  margin-bottom: 12px;
  padding: 10px;
}

.stream-settings-column fieldset legend {
  color: #444;
  font-size: 12px;
  font-weight: 700;
  padding: 0 4px;
}

.stream-settings-column .checkbox-row {
  align-items: center;
  display: inline-flex;
  font-size: 12px;
  gap: 6px;
  margin: 4px 12px 4px 0;
}

.replay-gain-control {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: 140px 1fr 80px auto;
  margin-top: 6px;
}

.replay-gain-control input[type="range"] {
  width: 100%;
}

.master-show-source .settings-field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.output-stream-block {
  background: #fafafa;
}

.output-stream-block .settings-field-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 6px;
}

.output-stream-block .settings-field-grid label {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  font-size: 12px;
  gap: 4px;
}

.output-stream-block .settings-field-grid input,
.output-stream-block .settings-field-grid select {
  border: 1px solid #b8b8b8;
  border-radius: 2px;
  padding: 4px 6px;
}

.output-stream-details {
  margin-top: 8px;
}

.output-stream-details summary {
  color: #555;
  cursor: pointer;
  font-size: 12px;
}

.stream-settings-actions {
  align-items: center;
  background: #f4f4f4;
  border: 1px solid #d8d8d8;
  border-radius: 3px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 14px;
}

.history-templates-toolbar {
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
}

.history-templates-toolbar label {
  align-items: center;
  display: inline-flex;
  font-size: 12px;
  gap: 4px;
}

.listener-chart-wrap {
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 3px;
  height: 240px;
  margin-bottom: 12px;
  padding: 6px;
  width: 100%;
}

.listener-chart-wrap canvas {
  display: block;
  height: 100%;
  width: 100%;
}

.show-listener-filters {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.show-listener-filters label {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  gap: 3px;
}

.show-listener-filters input,
.show-listener-filters select {
  border: 1px solid #b8b8b8;
  border-radius: 2px;
  padding: 4px 6px;
}

.widgets-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.widget-card {
  background: #fafafa;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  color: inherit;
  display: block;
  padding: 14px;
  text-decoration: none;
  transition: box-shadow 0.15s ease;
}

.widget-card:hover,
.widget-card:focus {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.widget-card h2 {
  font-size: 16px;
  margin: 0 0 6px;
}

.widget-card p {
  color: #555;
  font-size: 12px;
  margin: 0 0 10px;
}

.widget-player-form fieldset,
.widget-schedule-form fieldset {
  border: 1px solid #d8d8d8;
  border-radius: 3px;
  margin-bottom: 12px;
  padding: 10px;
}

.widget-player-form label,
.widget-schedule-form label {
  align-items: center;
  display: grid;
  font-size: 12px;
  font-weight: 700;
  gap: 6px;
  grid-template-columns: 140px minmax(200px, 1fr);
  margin: 6px 0;
}

.widget-player-form input,
.widget-player-form select,
.widget-player-form textarea,
.widget-schedule-form input,
.widget-schedule-form select,
.widget-schedule-form textarea {
  border: 1px solid #b8b8b8;
  border-radius: 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  padding: 5px 7px;
}

.widget-player-form textarea,
.widget-schedule-form textarea {
  background: #fdfdfd;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  width: 100%;
}

.widget-player-form .actions,
.widget-schedule-form .actions {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.widget-player-preview {
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 3px;
  padding: 10px;
}

.widget-player-preview audio {
  width: 100%;
}

.widget-schedule-preview iframe {
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 3px;
  width: 100%;
}

.help-getting-started h2 {
  border-bottom: 1px solid #e0e0e0;
  font-size: 14px;
  margin: 14px 0 6px;
  padding-bottom: 4px;
}

.help-getting-started p {
  color: #444;
  font-size: 13px;
  line-height: 1.4;
}

.help-getting-started .help-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.help-getting-started .help-links a {
  color: #2761c2;
  text-decoration: none;
}

.help-getting-started .help-links a:hover,
.help-getting-started .help-links a:focus {
  text-decoration: underline;
}

/* Zend parity pass: keep modern controllers, restore the compact operational shell. */
.prefpanel,
.simple-formblock,
.podcast-index-panel,
.analytics-zend-panel {
  background: #242424;
  border: 1px solid #202020;
  border-left-color: #2a2a2a;
  border-top-color: #353535;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.65);
  color: #efefef;
  margin: 0;
  padding: 10px;
}

.prefpanel > h2,
.podcast-index-panel > .panel-heading h2,
.analytics-zend-panel > h2 {
  font-size: 18px;
  font-weight: normal;
  margin: 0 0 8px;
}

.pending-backend-note {
  background: #2d261d;
  border: 1px solid #6a4a21;
  color: #e6d5bf;
  font-size: 12px;
  margin: 0 0 8px;
  padding: 6px 8px;
}

.panel,
.cards article,
.summary-card,
.widget-card,
.listener-chart-wrap,
.widget-player-preview {
  background: #2d2d2d;
  border-color: #444;
  color: #efefef;
}

.panel p,
.widget-card p,
.help-getting-started p,
.help-getting-started li,
.field-hint,
.podcast-subscribe-help {
  color: #b8b8b8;
}

.panel-heading,
.panel-header,
.collapsible-header,
.grid-toolbar,
.grid-footer,
.fc-header,
.schedule-zend-actions {
  background: linear-gradient(#3a3a3a, #262626);
  border-color: #111;
}

.showbuilder-library-head {
  min-height: 30px;
}

#library_title {
  padding: 5px 5px 0;
}

.showbuilder-zend-tabs {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.showbuilder-zend-tabs li {
  background: #333;
  border: 1px solid #555;
  border-bottom-color: #242424;
  margin-right: 4px;
  padding: 4px 8px;
}

.showbuilder-zend-tabs li.active {
  background: #242424;
  border-top-color: #ff611f;
}

.showbuilder-zend-tabs a {
  color: #efefef;
  font-size: 12px;
  font-weight: bold;
  text-decoration: none;
}

.stream-settings-column fieldset,
.widget-player-form fieldset,
.widget-schedule-form fieldset,
.podcast-metadata fieldset,
.zend-fieldset {
  background: #252525;
  border: 1px solid #555;
  border-radius: 0;
  color: #efefef;
}

.stream-settings-column fieldset legend,
.widget-player-form fieldset legend,
.widget-schedule-form fieldset legend,
.podcast-metadata fieldset legend,
.zend-fieldset legend {
  color: #efefef;
  font-size: 12px;
  font-weight: bold;
}

input,
select,
textarea,
.settings-field-grid input,
.settings-field-grid select,
.output-stream-block .settings-field-grid input,
.output-stream-block .settings-field-grid select,
.show-listener-filters input,
.show-listener-filters select,
.widget-player-form input,
.widget-player-form select,
.widget-player-form textarea,
.widget-schedule-form input,
.widget-schedule-form select,
.widget-schedule-form textarea,
.podcast-metadata-row input,
.podcast-metadata-row textarea,
.podcast-metadata-row select {
  background: #181818;
  border: 1px solid #777;
  color: #eee;
  font: 12px Arial, Helvetica, sans-serif;
}

input:disabled,
select:disabled,
textarea:disabled,
button:disabled {
  opacity: 0.72;
}

.stream-settings-actions,
.history-templates-toolbar {
  background: #333;
  border: 1px solid #222;
  color: #efefef;
}

.output-stream-block {
  background: #252525;
}

.listener-chart-wrap {
  height: 210px;
}

.listener-chart-wrap canvas,
.widget-player-preview,
.widget-schedule-preview iframe {
  background: #1f1f1f;
}

.widget-card {
  border-radius: 0;
  padding: 10px;
}

.widget-card:hover,
.widget-card:focus {
  background: #333;
  box-shadow: inset 0 0 0 1px #ff611f;
}

.widget-card h2 {
  color: #efefef;
}

.help-getting-started.text-content {
  font-size: 13px;
  line-height: 1.45;
}

.help-getting-started h2 {
  border-bottom: 1px solid #555;
  color: #efefef;
  font-size: 18px;
  font-weight: normal;
}

.help-getting-started h4 {
  color: #efefef;
  font-size: 13px;
  margin: 8px 0 2px;
}

.help-getting-started .help-links a,
.podcast-url,
.help-getting-started a {
  color: #ff8a4d;
}

.podcast-subscribe-dialog {
  background: #2d2d2d;
  border-color: #777;
  color: #efefef;
}

/* Login keeps the Zend screen geometry: vertical labels, full-width fields, compact panel. */
body#login-page {
  align-items: flex-start;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 93, 26, 0.13), transparent 24%),
    linear-gradient(#151515, #050505);
  display: flex;
  justify-content: center;
  min-height: 100%;
  padding-top: 9vh;
}

body#login-page .login_box {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #181818;
  box-shadow: none;
  color: #eee;
  margin: 0 auto;
  padding: 0;
  text-align: center;
  width: 420px;
}

body#login-page .logobox {
  align-items: center;
  color: #f2f2f2;
  display: flex;
  font-size: 26px;
  font-weight: bold;
  height: 112px;
  justify-content: center;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 5px #000;
}

body#login-page .logobox::before {
  content: "LibreTime";
}

body#login-page .login_box h2 {
  background: linear-gradient(#2c2c2c, #1f1f1f);
  border: 1px solid #181818;
  border-top-color: #4f4f4f;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.10);
  color: #bebebe;
  font-size: 15px;
  font-weight: bold;
  margin: 0;
  padding: 8px 0 8px 20px;
  text-align: left;
}

body#login-page .login-content {
  background: #252525;
  border: 1px solid #181818;
  border-top: 0;
  margin: 0;
  padding: 12px 20px 16px;
  text-align: left;
}

body#login-page .login-content dl,
body#login-page .login-content dl.zend_form {
  margin: 0;
  padding: 0;
  width: 100%;
}

body#login-page .login-content dt,
body#login-page .login-content .zend_form dt {
  clear: none;
  color: #a8a8a8;
  display: block;
  float: none;
  font-size: 12px;
  font-weight: bold;
  margin: 0;
  min-width: 0;
  padding: 0 0 5px;
  text-align: left;
  width: auto;
}

body#login-page .login-content dd,
body#login-page .login-content .zend_form dd {
  display: block;
  font-size: 12px;
  margin: 0;
  padding: 0 0 9px;
}

body#login-page .login-content input,
body#login-page .login-content select,
body#login-page .login-content textarea,
body#login-page .login-content dd .input_text,
body#login-page .login-content dd input[type="text"],
body#login-page .login-content dd input[type="password"] {
  background: #141414;
  border: 1px solid #777;
  border-radius: 0;
  color: #fff;
  display: block;
  font: 14px Arial, Helvetica, sans-serif;
  height: 30px;
  padding: 5px 6px;
  width: 100%;
}

body#login-page .login-content select {
  height: 30px;
}

body#login-page .login-content dd button.ui-button,
body#login-page .login-content dd button.btn,
body#login-page .login-content .ui-button {
  background: linear-gradient(#4b4b4b, #2c2c2c);
  border: 1px solid #111;
  border-top-color: #666;
  color: #efefef;
  cursor: pointer;
  display: block;
  font: bold 14px Arial, Helvetica, sans-serif;
  padding: 7px 10px;
  text-align: center;
  width: 100%;
}

body#login-page .login-content .ui-button:hover,
body#login-page .login-content .ui-button:focus {
  background: linear-gradient(#5a5a5a, #333);
}

body#login-page .login-content .hidden,
body#login-page .hidden {
  display: none;
}

body#login-page .login-content .text-right,
body#login-page .text-right {
  text-align: right;
}

body#login-page .login-content a {
  color: #ff5d1a;
  font-size: 11px;
  text-decoration: none;
}

body#login-page .login-content a:hover,
body#login-page .login-content a:focus {
  text-decoration: underline;
}

body#login-page .login-content p {
  color: #919191;
  font-size: 12px;
  margin: 0;
  padding: 8px 0 16px;
  text-align: left;
}

body#login-page .form-error {
  color: #ff9b8d;
  font-weight: bold;
}
