/* Midnight slate — visual layer over style.css */

:root {
  --color-primary: #3dd6c6;
  --color-primary-hover: #2bb8a9;
  --color-on-primary: #0c111c;
  --bg: #0c111c;
  --bg-mid: #151c2c;
  --surface: #1a2336;
  --surface-raised: #222c42;
  --surface-hover: #2a354f;
  --text: #e8edf7;
  --text-muted: #9aa8c2;
  --border: rgba(61, 214, 198, 0.25);
  --border-strong: rgba(61, 214, 198, 0.45);
  --border-subtle: rgba(154, 168, 194, 0.2);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 18px;
  --font-body: "Figtree", system-ui, sans-serif;
  --font-display: "Outfit", system-ui, sans-serif;
  --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.35);
  --transition: 0.22s ease;
}

html {
  font-size: 15px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 50% at 50% -20%, rgba(61, 214, 198, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-mid) 45%, var(--bg) 100%);
  background-attachment: fixed;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a {
  transition: color var(--transition), border-color var(--transition), background-color var(--transition), transform var(--transition), opacity var(--transition);
}

.brand-color,
.brand-list,
.brand-list:hover,
.brand-list:focus {
  color: var(--color-primary);
}

/* Layout shell */
.center-bl {
  max-width: 1080px;
  padding: 0 16px;
}

.wrapper-fixed-footer {
  padding-bottom: 120px;
}

footer {
  height: auto;
  min-height: 76px;
  padding: 20px 0;
  background-color: var(--surface);
  border-top: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}

footer .logo,
.footer-copyright .text,
.mail-to-link {
  color: var(--text-muted);
}

.footer-copyright {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-disclaimer {
  font-size: 12px;
  line-height: 1.45;
  max-width: 720px;
  color: var(--text-muted);
}

.footer-disclaimer a,
.footer-copyright .text a,
.mail-to-link:hover {
  color: var(--color-primary);
}

/* Header */
header {
  height: 72px;
  background-color: rgba(12, 17, 28, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

header .logo {
  width: 240px;
  margin-left: 0;
  filter: drop-shadow(0 0 12px rgba(61, 214, 198, 0.15));
}

header .next-movie .caption-next-movie {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid var(--border);
  background-color: var(--surface);
  border-radius: var(--radius-sm);
}

header .next-movie .caption-next-movie:hover {
  border-color: var(--border-strong);
  background-color: var(--surface-raised);
  color: var(--color-primary);
}

header .next-movie .dropdown-series {
  background-color: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

header .next-movie .dropdown-series a {
  color: var(--text);
}

header .next-movie .dropdown-series a:hover {
  color: var(--color-primary);
}

.list-menu > li > a {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.list-menu > li > a:hover,
.drop-list:hover > a,
.drop-list .hover > a {
  color: var(--color-primary);
}

.list-menu .drop-menu,
.schedule-menu {
  background-color: rgba(26, 35, 54, 0.96) !important;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.list-menu .drop-menu a,
.schedule-block a,
.schedule-block li {
  color: var(--text);
}

.list-menu .drop-menu a:hover {
  color: var(--color-primary);
}

/* Main content card */
.box-dark-gray {
  margin-top: 24px;
  margin-bottom: 48px;
  padding: 28px 32px 48px;
  background-color: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.box-dark-gray .name-serials,
.box-dark-gray.one-serial-dark .name-serials {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 4vw, 34px);
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.25;
}

/* Season tabs */
.translation-slider {
  background-color: transparent;
  margin-bottom: 8px;
}

.translation-slider .wrapper-item .one-item {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background-color: transparent;
}

.translation-slider .wrapper-item .one-item.active,
.translation-slider .wrapper-item .one-item:hover,
.one-serial-dark .translation-slider .one-item.active {
  border-color: transparent;
  background-color: var(--color-primary);
  color: var(--color-on-primary) !important;
  font-weight: 600;
}

.translation-slider .btn-next-tr:hover .ico-slick-one,
.translation-slider .btn-prev-tr:hover .ico-slick-one,
.translation-slider .ico-slick-one {
  border-color: var(--border-subtle);
  background-color: var(--surface-raised);
}

.translation-slider .btn-next-tr:hover .ico-slick-one,
.translation-slider .btn-prev-tr:hover .ico-slick-one {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Episode cards */
.one-item-series .box-img,
.one-item-series .box-img:after,
.object-fit,
.serial-wall img,
.mobile-serial-wall img,
.trailer-youtube img,
.player-serial,
.player-serial iframe {
  border-radius: var(--radius) !important;
}

.one-item-series:hover .box-img:after,
.one-item-series.hover .box-img:after {
  border: 2px solid var(--color-primary);
  background-color: rgba(12, 17, 28, 0.45);
}

.one-item-series .series-number {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-muted);
}

.one-item-series:hover .series-number,
.one-item-series.hover .series-number {
  color: var(--color-primary);
}

.serial-wall {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Description / meta */
.caption-desc h2,
.description-serials .right-desc h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.caption-desc.border-b {
  border-bottom: 1px solid var(--border);
}

.caption-desc .under-caption,
.caption-desc .mobile-caption,
.caption-desc .under-caption span.left,
.caption-desc .mobile-caption span.left {
  color: var(--text-muted);
}

.caption-desc .under-caption span.right,
.caption-desc .mobile-caption span.right {
  color: var(--text);
}

.box-rating-info .one-rating span,
.rating-sites .one-rating span {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
}

.star-rating__ico,
.icon-star {
  color: var(--color-primary);
}

.counter.aftermath,
#vote-count {
  color: var(--text-muted);
}

.description-serials .one-line,
.description-serials .one-block,
.description-serials .list-margin {
  color: var(--text-muted);
}

.description-serials .one-line span,
.description-serials strong,
.description-serials b {
  color: var(--text);
}

/* Buttons */
.first-series-btn,
.home-trailer,
.description-serials .left-desc .first-series-btn,
.description-serials .mobile-desc .first-series-btn {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-on-primary);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background-color: var(--color-primary);
  padding: 12px 16px;
  text-decoration: none;
}

.first-series-btn:hover,
.home-trailer:hover,
.description-serials .left-desc .first-series-btn:hover,
.description-serials .mobile-desc .first-series-btn:hover {
  background-color: var(--color-primary-hover);
  color: var(--color-on-primary);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .first-series-btn:hover,
  .home-trailer:hover {
    background-color: var(--color-primary-hover);
    color: var(--color-on-primary);
  }
}

.home-first-series {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-on-primary);
  border-radius: var(--radius-sm);
  background-color: var(--color-primary);
}

.home-first-series:hover {
  border: 1px solid var(--border-strong);
  background-color: var(--surface-raised);
  color: var(--color-primary);
}

/* Player & play icon — kill yellow */
.play-ico,
.player-serial .play-ico {
  border-color: var(--color-primary) !important;
}

.play-ico:before,
.player-serial .play-ico:before {
  border-color: transparent transparent transparent var(--color-primary) !important;
}

.player-serial {
  background-color: #05080f;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.tg_link {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 40px;
  margin: 10px 0 16px;
  padding: 0 12px 1px;
  box-sizing: border-box;
  background: #27A7E7;
  border: 2px solid #27A7E7;
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.tg_link:hover {
  background: var(--surface);
  color: #27A7E7;
  text-decoration: none;
}

.tg_link:hover svg path {
  fill: #27A7E7;
}

.tg_link svg {
  flex-shrink: 0;
}

.slider-btn-bottom {
  background-color: transparent;
  margin-top: 4px;
}

.slider-btn-bottom .prev-series,
.slider-btn-bottom .next-series {
  color: var(--text-muted);
  font-family: var(--font-display);
}

.slider-btn-bottom .prev-series strong,
.slider-btn-bottom .next-series strong {
  color: var(--color-primary);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.slider-btn-bottom .prev-series:hover,
.slider-btn-bottom .next-series:hover,
.slider-btn-bottom .prev-series.hover,
.slider-btn-bottom .next-series.hover {
  color: var(--color-primary);
}

.slider-btn-bottom .prev-series:hover strong,
.slider-btn-bottom .next-series:hover strong,
.slider-btn-bottom .prev-series.hover strong,
.slider-btn-bottom .next-series.hover strong {
  color: var(--color-on-primary);
  background-color: var(--color-primary);
}

.slider-btn-bottom .prev-series:hover span:before,
.slider-btn-bottom .next-series:hover span:before {
  background-color: var(--color-primary);
}

/* Trailer play overlay */
.trailer-youtube span:before,
.trailer-youtube span {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.trailer-desktop,
.trailer-youtube {
  border-radius: var(--radius);
  overflow: hidden;
}

/* Hardcoded yellow / gray leftovers */
[style*="#f5e74b"],
.border-yellow {
  border-color: var(--color-primary) !important;
}

.translate-ul li a:hover:before,
.translate-ul li a.hover:before,
.main-list-series .owl-dots > *.active span,
.main-list-series .owl-dots > *:hover span {
  background-color: var(--color-primary);
}

.box-dark-gray .sort-ico {
  border-radius: var(--radius-sm);
  border-color: var(--border-subtle);
}

.box-dark-gray .sort-ico:hover {
  border-color: var(--color-primary);
}

/* Breadcrumbs / misc links */
#dle-speedbar,
#dle-speedbar a,
.breadcrumbs,
.breadcrumbs a {
  color: var(--text-muted);
}

#dle-speedbar a:hover,
.breadcrumbs a:hover {
  color: var(--color-primary);
}

/* Modal (trailer) if present */
.modal__container,
.micromodal-slide .modal__container {
  background-color: var(--surface) !important;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

/* Soften sticky yellow accents often set via primary fallbacks */
* {
  scrollbar-color: var(--color-primary) var(--surface);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--surface-raised);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Mobile polish */
@media (max-width: 768px) {
  .box-dark-gray {
    margin-top: 12px;
    padding: 18px 14px 36px;
    border-radius: var(--radius);
  }

  header {
    padding: 0 12px;
  }

  header .logo {
    width: 160px;
    margin-right: 8px;
  }

  .center-bl {
    padding: 0 10px;
  }
}

@media (max-width: 992px) {
  header .next-movie .caption-next-movie {
    font-size: 12px;
  }
}

/* Kill remaining hardcoded yellow (#f5e74b) */
.player-promo {
  font-family: var(--font-display);
  color: var(--color-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
}

.player-promo:hover {
  background: var(--color-primary);
  color: var(--color-on-primary);
}

.slider-btn-bottom .prev-series span:before,
.slider-btn-bottom .next-series span:before {
  background-color: var(--color-primary) !important;
}

.new-movie-box .box-dark .one-item .number {
  font-family: var(--font-display);
}

/* Explicit PT Sans replacements */
body,
.box-dark-gray,
.list-menu,
.description-serials,
.caption-desc,
.name-serials {
  font-family: var(--font-body);
}

h1, h2, h3,
.box-dark-gray .name-serials,
.caption-desc h2,
.first-series-btn,
.home-trailer,
.home-first-series,
.list-menu > li > a,
.translation-slider .wrapper-item .one-item,
header .next-movie .caption-next-movie {
  font-family: var(--font-display);
}

/* Rating / info strip */
.box-rating-info {
  background-color: var(--surface-raised);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

/* Episode page surfaces that stay #1b1b1d in base CSS */
.one-serial-dark,
.box-dark-gray.one-serial-dark,
.slider-main-box {
  background-color: transparent;
}

.movie_video {
  border-radius: var(--radius);
  overflow: hidden;
}

/* Schedule dropdown list items */
.schedule-list .schedule-drop,
.schedule-drop .schedule-menu {
  background-color: var(--surface-raised) !important;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.schedule-block li a,
.schedule-block li {
  color: var(--text-muted);
}

/* Breadcrumb bar on episode pages */
.speedbar,
#dle-speedbar {
  color: var(--text-muted);
  font-family: var(--font-body);
}

/* Schedule / data-vyhoda page */
.schedule-page .schedule-intro {
  max-width: 720px;
  margin: 0 auto 28px;
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.55;
}

.schedule-page .schedule-intro strong {
  color: var(--text);
  font-weight: 600;
}

.schedule-table-wrap {
  overflow-x: auto;
  margin: 0 auto 28px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--surface-raised);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.schedule-table th,
.schedule-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.schedule-table th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(61, 214, 198, 0.08);
}

.schedule-table td {
  color: var(--text);
}

.schedule-table td:first-child {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  width: 110px;
}

.schedule-table td:last-child {
  color: var(--text-muted);
  white-space: nowrap;
}

.schedule-table tbody tr:last-child td {
  border-bottom: 0;
}

.schedule-table tbody tr:hover td {
  background: rgba(61, 214, 198, 0.06);
}

.schedule-table a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.schedule-table a:hover {
  text-decoration: underline;
}

.schedule-page .schedule-note {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.schedule-page .schedule-note a {
  color: var(--color-primary);
}

.schedule-block {
  max-height: 320px;
  overflow-y: auto;
  padding: 8px 0;
  min-width: 260px;
}

.schedule-block li {
  padding: 6px 16px;
}

.schedule-block li a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
}

.schedule-block li a[href]:hover {
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .schedule-table th,
  .schedule-table td {
    padding: 12px 12px;
    font-size: 14px;
  }

  .schedule-table td:first-child {
    width: auto;
  }
}
