/* HeatClip light theme — 2026-07-27 (from visual refresh, light palette) */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Syne:wght@700;800&display=swap");

:root {
  --hc-bg: #e8edf3;
  --hc-bg-elevated: #f5f7fa;
  --hc-surface: #ffffff;
  --hc-surface-2: #f0f3f7;
  --hc-border: rgba(28, 42, 58, 0.1);
  --hc-border-strong: rgba(232, 107, 0, 0.45);
  --hc-text: #15202b;
  --hc-muted: #5c6b7a;
  --hc-accent: #e86b00;
  --hc-accent-hot: #ff4d00;
  --hc-accent-soft: #ff8a2b;
  --hc-danger: #d62828;
  --hc-radius: 12px;
  --hc-radius-sm: 8px;
  --hc-shadow: 0 14px 36px rgba(21, 32, 43, 0.1);
  --hc-font: "Outfit", system-ui, sans-serif;
  --hc-display: "Syne", "Outfit", sans-serif;
}

html {
  font-family: var(--hc-font);
  -webkit-font-smoothing: antialiased;
}

body {
  background:
    radial-gradient(1100px 480px at 8% -8%, rgba(255, 138, 43, 0.18), transparent 55%),
    radial-gradient(900px 420px at 92% 0%, rgba(80, 140, 220, 0.14), transparent 50%),
    linear-gradient(180deg, #f4f7fb 0%, var(--hc-bg) 32%, #dde5ef 100%);
  background-attachment: fixed;
  color: var(--hc-muted);
  font-family: var(--hc-font);
  font-size: 14px;
  line-height: 1.45;
}

a {
  transition: color 0.2s ease, opacity 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a:hover {
  color: var(--hc-accent-soft);
}

h1, h2, h3,
.btn-upload,
a.logo {
  font-weight: 700;
}

h1, h2, h3 {
  color: var(--hc-text);
  letter-spacing: -0.02em;
}

/* Header */
.header,
.nav {
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid var(--hc-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header {
  overflow: visible;
  position: relative;
  z-index: 3;
}

.header .nav-toggle,
.header .search-toggle {
  display: none;
  color: var(--hc-text);
}

a.logo {
  align-items: baseline;
  gap: 2px;
  max-width: none !important;
  white-space: nowrap !important;
  font-family: var(--hc-display) !important;
  font-size: 34px !important;
  line-height: 1 !important;
  letter-spacing: -0.04em;
  color: var(--hc-text) !important;
  text-shadow: none;
}

a.logo strong {
  white-space: nowrap !important;
  color: var(--hc-accent) !important;
  background: none;
}

@media screen and (min-width: 768px) {
  .header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 56px;
  }

  .header .clearfix {
    float: none !important;
    flex: 0 0 auto;
    width: auto !important;
  }

  a.logo {
    position: static !important;
    top: auto !important;
    left: auto !important;
    display: inline-flex !important;
    width: auto !important;
    margin: 0 !important;
    text-align: left !important;
  }

  .header .search {
    float: none !important;
    flex: 1 1 auto;
    max-width: 520px;
    margin: 0 0 0 auto !important;
  }
}

@media screen and (max-width: 767px) {
  .header .container {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    min-height: 56px;
  }

  .header .nav-toggle,
  .header .search-toggle {
    display: block;
    float: none;
    margin: 0;
  }

  .header .nav-toggle {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .header .search-toggle {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .header .clearfix {
    grid-column: 2;
    grid-row: 1;
    float: none !important;
    width: auto !important;
    text-align: center;
  }

  a.logo {
    position: static !important;
    display: inline-flex !important;
    width: auto !important;
    margin: 0 auto !important;
    text-align: center !important;
  }

  .header .search {
    grid-column: 1 / -1;
    grid-row: 2;
    float: none !important;
    width: 100%;
    max-width: none;
    margin: 12px 0 0 !important;
  }
}

.search {
  height: 44px;
}

.input-search {
  height: 44px;
  padding: 0 52px 0 18px;
  border: 1px solid var(--hc-border);
  border-radius: 999px;
  background: var(--hc-surface);
  color: var(--hc-text);
  box-shadow: 0 1px 2px rgba(21, 32, 43, 0.04);
}

.input-search::placeholder {
  color: rgba(92, 107, 122, 0.8);
}

.input-search:focus {
  opacity: 1;
  border-color: var(--hc-border-strong);
  background: var(--hc-surface);
  box-shadow: 0 0 0 3px rgba(232, 107, 0, 0.16);
}

.btn-search {
  top: 2px;
  right: 2px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: var(--hc-accent);
}

.btn-search:hover {
  opacity: 1;
  background: rgba(232, 107, 0, 0.1);
}

/* Nav */
.nav {
  clear: both;
  position: relative;
  z-index: 1;
}

.nav-main li {
  margin: 0 8px 0 0;
}

.btn-default {
  min-width: 32px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--hc-border);
  border-radius: 999px;
  background: transparent;
  color: var(--hc-muted);
  line-height: 34px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.btn-default.sel,
.btn-default:hover {
  border-color: var(--hc-border-strong);
  color: var(--hc-accent);
  background: rgba(232, 107, 0, 0.08);
}

.btn-default.sel {
  box-shadow: inset 0 0 0 1px rgba(232, 107, 0, 0.18);
}

.btn-default.active {
  border-color: var(--hc-accent);
  background: linear-gradient(135deg, var(--hc-accent) 0%, var(--hc-accent-hot) 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(232, 107, 0, 0.28);
}

.btn-default.active:hover {
  border-color: var(--hc-accent);
  background: linear-gradient(135deg, var(--hc-accent-soft) 0%, var(--hc-accent) 100%);
  color: #fff;
}

.paginator {
  margin: 18px 0 8px;
}

.paginator li {
  margin: 0 4px 8px;
}

.select {
  background-color: var(--hc-accent);
  border-color: var(--hc-accent);
  border-radius: 999px;
  color: #fff;
  font-family: var(--hc-font);
  font-weight: 600;
  height: 36px;
}

/* Language select in nav — main.css sets width:100% and breaks the row */
#lang_sel.select,
.nav-main .select {
  display: inline-flex;
  align-items: center;
  width: auto !important;
  min-width: 7.25rem;
  max-width: 12rem;
  height: 36px;
  margin: 0;
  padding: 0 2rem 0 0.85rem !important;
  vertical-align: middle;
  box-sizing: border-box;
  border: 1px solid var(--hc-border-strong);
  border-radius: 999px;
  background-color: var(--hc-surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath fill='%23e86b00' d='M8,0L4.141,6.993,0.012,0.156Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 8px 8px;
  color: var(--hc-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 34px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

#lang_sel.select.select--left,
.nav-main .select.select--left {
  background-position: right 0.75rem center;
  padding-left: 0.85rem !important;
  padding-right: 2rem !important;
}

.nav-main li:has(#lang_sel),
.nav-main li:has(> .select) {
  max-width: 12rem;
  vertical-align: middle;
}

.sidebar-nav #lang_sel.select,
.sidebar-nav .select {
  width: 100% !important;
  max-width: none;
  margin: 8px 0;
}

/* Categories list (static pages) */
.categories {
  color: var(--hc-text);
}

.categories a {
  color: var(--hc-text);
}

.categories a span {
  color: var(--hc-muted);
}

.categories a:hover,
.categories a:hover span {
  color: var(--hc-accent);
}

.categories li {
  border-bottom-color: var(--hc-border);
}

.categories > li > strong,
.categories > li > b,
.categories-letter strong,
.categories h3,
.categories .letter {
  color: var(--hc-accent);
}

/* Titles */
.title {
  margin: 22px 0 8px;
}

.title h1,
.title h2,
.title h3 {
  font-family: var(--hc-display);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

h1 span {
  border-left-color: var(--hc-accent);
  color: var(--hc-muted);
}

/* Thumb visuals — keep original .th / .thumbs float grid + 16:9 padding box from main.css */
.thumbs {
  display: block;
}

.th-image {
  position: relative;
  border-radius: var(--hc-radius);
  overflow: hidden;
  background: var(--hc-surface-2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), var(--hc-shadow);
  transform: translateZ(0);
}

.th-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(21, 32, 43, 0.35) 100%);
  opacity: 0.7;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.th-image img,
.th-image .lazy {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.th:hover .th-image {
  box-shadow: 0 0 0 1px rgba(232, 107, 0, 0.28), 0 18px 40px rgba(21, 32, 43, 0.16);
}

.th:hover .th-image img,
.th:hover .th-image .lazy {
  transform: scale(1.045);
  filter: brightness(1.05) saturate(1.05);
}

.th:hover .th-image::after {
  opacity: 0.4;
}

.th-duration,
.th-hd,
.th-rating,
.th-videos,
.th-views {
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(21, 32, 43, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 22px;
  color: #fff;
  z-index: 2;
}

.th-duration {
  left: 8px;
  bottom: 8px;
}

.th-hd {
  right: 8px;
  top: 8px;
  background: linear-gradient(120deg, var(--hc-accent), var(--hc-accent-hot));
  color: #fff;
}

.th-rating {
  left: 8px;
  top: 8px;
}

.th-views {
  right: 8px;
  bottom: 8px;
}

.th:hover .th-duration,
.th:hover .th-rating {
  left: 8px !important;
  right: auto !important;
}

.th:hover .th-hd,
.th:hover .th-views {
  right: 8px !important;
  left: auto !important;
}

.th-description,
.th-title {
  margin-top: 8px;
  color: var(--hc-text);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.th:hover .th-description,
.th:hover .th-title {
  color: var(--hc-accent);
}

.th-tags {
  color: var(--hc-muted);
}

.th-tags a {
  color: var(--hc-muted);
}

.th-tags a:hover {
  color: var(--hc-accent);
}

/* Categories / tags */
.tag {
  background: var(--hc-surface-2);
  border-radius: 999px;
  color: var(--hc-text);
}

.tag:hover,
.categories a:hover span {
  color: var(--hc-accent-soft);
}

.dropdown > a.active,
.dropdown > a.active > i,
.modal-close:hover,
.nav-toggle.toggled,
.search-toggle.toggled,
.sidebar-nav .dropdown-container li a:hover,
.th-rating-down i {
  color: var(--hc-accent-hot);
}

/* Video page accents */
.btn-primary,
.btn-upload,
.goup {
  background: linear-gradient(135deg, var(--hc-accent) 0%, var(--hc-accent-hot) 100%);
  color: #fff;
  border: 0;
  border-radius: var(--hc-radius-sm);
  font-weight: 700;
}

.btn-primary:hover,
.btn-upload:hover,
.goup:hover {
  opacity: 0.92;
  color: #fff;
}

.goup {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  line-height: 42px;
  box-shadow: 0 10px 24px rgba(232, 107, 0, 0.28);
}

.video-info p a {
  color: var(--hc-accent);
}

.video-info p a:hover {
  color: var(--hc-accent-hot);
}

/* Footer */
.bottom-blocks,
.footer {
  background: rgba(255, 255, 255, 0.78);
  border-top: 1px solid var(--hc-border);
}

.footer {
  padding: 28px 0 34px;
}

.footer-nav {
  margin: 0 auto 14px;
}

.footer-nav li {
  margin: 0 10px;
}

.footer-nav a {
  color: var(--hc-muted);
  font-weight: 500;
}

.footer-nav a:hover {
  color: var(--hc-accent);
}

.footer p {
  color: rgba(92, 107, 122, 0.9);
}

.footer p a {
  color: var(--hc-text);
}

/* hide empty 3-banner slot under content */
.bottom-blocks {
  display: none !important;
}

/* Sidebar / misc */
.sidebar-nav,
.dropdown-container,
.modal {
  background: var(--hc-bg-elevated);
  border-color: var(--hc-border);
}

.sidebar-nav li,
.sidebar-nav-title,
.categories li {
  border-bottom-color: var(--hc-border);
}

.message {
  border-color: var(--hc-border);
  background: var(--hc-surface);
}

.message a {
  color: var(--hc-accent-soft);
}

@media screen and (max-width: 767px) {
  a.logo {
    font-size: 28px !important;
  }
}

@media screen and (max-width: 560px) {
  .title h1,
  .title h2,
  .title h3 {
    font-size: 18px;
  }
}

/* player first-load fallback */
.player-load-fallback {
  position: absolute;
  inset: 0;
  display: none;
  pointer-events: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  background: rgba(21, 32, 43, 0.82);
  color: #fff;
  text-align: center;
  z-index: 2;
}

.player-load-fallback p {
  margin: 0;
  font-weight: 600;
}

.player-load-retry {
  border: 0;
  border-radius: var(--hc-radius-sm);
  padding: 10px 18px;
  background: var(--hc-accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.player-load-retry:hover {
  opacity: 0.92;
}

.player-load-open {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  text-decoration: underline;
}

.player-load-open:hover {
  color: #fff;
}

.player-reload-bar {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.player-reload-always {
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius-sm);
  padding: 6px 12px;
  background: var(--hc-surface);
  color: var(--hc-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.player-reload-always:hover {
  border-color: var(--hc-border-strong);
  color: var(--hc-accent);
}

/* ExoClick NTVA/NTVB — native widgets next to player, not clipped 300x250 boxes */
.video-aside {
  height: auto !important;
  overflow: visible !important;
}

.video-aside .block {
  width: 300px;
  max-width: 100%;
  height: auto !important;
  min-height: 0;
  overflow: visible;
  background: transparent;
  display: block;
}

.video-aside .block + .block {
  margin-top: 14px;
}

.video-aside .block ins {
  display: block;
  width: 100%;
}

@media screen and (max-width: 1279px) {
  .video-aside {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 14px;
  }

  .video-aside .block + .block {
    margin-top: 0;
  }
}
