body {
  padding-top:30px;
  background-color: #461e1e;
  color: #fff;
}

h1 {
  margin-bottom: 0;
}

a {
  text-decoration: underline;
  color: #fff;
}

a:hover {
  color: #fff;
}

input, select {
  color: #000;
}

input[type="submit"], input[type="submit"]:hover {
  color: #fff;
}

.small-up-column {
  display: none;
}

.medium-up-column {
  display: none;
}

@media (min-width: 550px) {
  .small-up-column {
    display: table-cell;
  }
}

@media (min-width: 750px) {
  .medium-up-column {
    display: table-cell;
  }
}

.u-hidden {
  display: none;
}

table {
  max-width: 100%;
}

.artist-desc {
  max-height: 190px;
  overflow: hidden;
}

.desc-more {
  text-align: center;
  margin-bottom: 20px;
}

.release-info-link {
  text-align: center;
  margin: 15px 0;
}

.js-release {
  background-color: #5a2a2a;
  border: 1px solid #7a3a3a;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.js-release h2.js-title {
  margin-top: 0;
  color: #fff;
  border-bottom: 1px solid #7a3a3a;
  padding-bottom: 10px;
}

.torrent-container {
  overflow: auto;
  padding-top: 10px;
}

/* Optimized table spacing */
table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  padding: 6px 8px !important;
  text-align: left;
  border-bottom: 1px solid #7a3a3a;
  line-height: 1.2;
  vertical-align: top;
}

th {
  font-weight: 600;
  background-color: #4a2222;
  white-space: nowrap;
}

td {
  font-size: 1.25rem;
}

/* Reduce spacing in torrent info cells */
.torrent-container td {
  padding: 4px 6px !important;
}

/* Compact button styling */
.torrent-container .button {
  padding: 2px 8px !important;
  font-size: 0.8rem !important;
  height: 24px !important;
  line-height: 20px !important;
  margin: 0 !important;
}

/* Optimized torrent info layout */
.torrent-info {
  line-height: 1.2;
}

.torrent-title {
  font-weight: 600;
  margin-bottom: 2px;
}

.torrent-details {
  font-size: 0.8rem;
  color: #ccc;
  line-height: 1.1;
}

/* Remove bottom margin from table rows */
tr {
  margin: 0;
  padding: 0;
}

/* Reduce table row height */
tbody tr {
  height: auto;
  min-height: 32px;
}

.brand-link {
  margin-top:50px;
  text-decoration:none;
  color: #fff;
}

.brand-link:hover {
  color: #fff;
}

.settings-link {
  float:right;
  text-decoration:none;
  color:#000;
}


.search-loading {
  text-align: center;
  display: none;
}

/* alerts */
.alert {
    display: block;
    padding: 20px;
    border-left: 5px solid;
}

.alert-success {
    background-color: #D5F5E3;
    border-left-color: #2ECC71;
    color: #2ECC71;
}

.alert-info {
    background-color: #D6EAF8;
    border-left-color: #3498DB;
    color: #3498DB;
}

.alert-warning {
    background-color: #FCF3CF;
    border-left-color: #F1C40F;
    color: #F1C40F;
}

.alert-error {
    background-color: #F2D7D5;
    border-left-color: #C0392B;
    color: #C0392B;
}

.button, .button:hover {
  color: #fff;
}

.button:disabled {
  border: 1px solid #E3E3E3;
  color: #888;
  cursor: not-allowed;
}

.button-small {
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}


.loader,
.loader:before,
.loader:after {
  border-radius: 50%;
  width: 2.5em;
  height: 2.5em;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation: load7 1.8s infinite ease-in-out;
  animation: load7 1.8s infinite ease-in-out;
}
.loader {
  color: #ffffff;
  font-size: 10px;
  margin: 80px auto;
  position: relative;
  text-indent: -9999em;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
}
.loader:before,
.loader:after {
  content: '';
  position: absolute;
  top: 0;
}
.loader:before {
  left: -3.5em;
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}
.loader:after {
  left: 3.5em;
}
@-webkit-keyframes load7 {
  0%,
  80%,
  100% {
    box-shadow: 0 2.5em 0 -1.3em;
  }
  40% {
    box-shadow: 0 2.5em 0 0;
  }
}
@keyframes load7 {
  0%,
  80%,
  100% {
    box-shadow: 0 2.5em 0 -1.3em;
  }
  40% {
    box-shadow: 0 2.5em 0 0;
  }
}

/* Image expansion styles */
.expandable-image {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.expandable-image:hover {
  transform: scale(1.02);
}

.image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  cursor: pointer;
}

.image-overlay.expanded {
  display: flex;
}

.image-overlay img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
