/* ===========================
   CSS VARIABLES
   =========================== */
:root {
  /* Colors */
  --color-text: #f9f4ff;
  --color-bg: #000000;
  --color-link: #ffffff;
  --color-link-hover: #ffafe5;
  --color-link-shadow: rgba(0, 0, 0, 0.81);
  --color-primary: #060506;
  --color-primary-dark: #190d26;
  --color-gradient-start: #4e3c65;
  --color-gradient-end: #2a1d3d;
  --color-secondary: #230f44;
  --color-secondary-light: #442d66;
  --color-breadcrumb-bg: #2c174d;
  --color-breadcrumb-text: #ffffff;
  --color-breadcrumb-link: #fff0c6;
  --color-breadcrumb-link-hover: #0056b3;
  --color-thumb-overlay: rgba(85, 85, 85, 0.8);
  --color-thumb-ad: rgba(255, 255, 255, 0.8);

  /* Shadows & Effects */
  --shadow-text-base: 0 1px 1px rgba(101, 72, 72, 0.73);
  --shadow-text-strong: 0 1px 1px rgba(0, 0, 0, 0.81);
  --shadow-btn-hover: 0 0 3px rgba(255, 255, 255, 0.42);

  /* Layout */
  --max-width: 1650px;
  --gutter: 10px;
}

/* ===========================
   RESET & BASE STYLES
   =========================== */
*, *::before, *::after {
  padding-bottom: 2px;
  list-style: none;
  border: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  text-shadow: var(--shadow-text-base);
}

a {
  color: var(--color-link);
  text-decoration: none;
  text-shadow: var(--shadow-text-strong);
}

a:hover {
  color: var(--color-link-hover);
}

/* ===========================
   UTILITY CLASSES
   =========================== */
.clearfloat {
  clear: both;
  height: 0;
  font-size: 1px;
  line-height: 0;
}

.mainWrap {
  margin: 0 auto;
  max-width: var(--max-width);
  white-space: nowrap;
}

/* ===========================
   HEADER
   =========================== */
.header {
  max-width: var(--max-width);
  margin: 1em auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.header h1 {
  display: inline-block;
  font-size: 1.4em;
  vertical-align: middle;
}

.header #topBanner {
  display: inline-block;
  font-size: 0.9em;
  vertical-align: middle;
  white-space: normal;
  width: 71%;
}

.header img {
  width: 60px;
  height: auto;
  display: block;
  margin-bottom: 10px;
}

#topBanner{
  font-size:12px;
}
/* ===========================
   BREADCRUMB NAVIGATION
   =========================== */
nav[aria-label="breadcrumb"] {
  background-color: var(--color-breadcrumb-bg);
  border-radius: 4px;
  font-size: 15px;
  margin: 1em 0;
  padding: 0.5em 1em;
}

nav[aria-label="breadcrumb"] ol {
  display: flex;
  flex-wrap: wrap;
}

nav[aria-label="breadcrumb"] li {
  align-items: center;
  color: var(--color-breadcrumb-text);
  display: flex;
}

nav[aria-label="breadcrumb"] li + li::before {
  color: var(--color-breadcrumb-text);
  content: "›";
  margin: 0 8px;
}

nav[aria-label="breadcrumb"] a {
  color: var(--color-breadcrumb-link);
  text-decoration: none;
  transition: color 0.2s;
}

nav[aria-label="breadcrumb"] a:hover {
  color: var(--color-breadcrumb-link-hover);
}

/* ===========================
   NAVIGATION & BUTTONS
   =========================== */
.leftNichesTop a,
#navigation a,
.content a.button,
.hardLinkTopWrap {
  background-color: var(--color-gradient-end);
  background-image: linear-gradient(to bottom, var(--color-gradient-start), var(--color-gradient-end));
  border: 1px solid var(--color-primary-dark);
  text-shadow: var(--shadow-text-strong);
}

.leftNichesTop a:hover,
.content a.button:hover,
#topControls #navigation a:hover {
  border-color: #493c58;
  box-shadow: var(--shadow-btn-hover);
}

.leftNichesTop a.currentNiche {
  background-color: var(--color-bg);
  color: #8b7a9d;
  text-shadow: var(--shadow-text-base);
}

#navigation a {
  border-radius: 3px;
}

.sectionTitle {
  background-color: var(--color-secondary);
  background-image: linear-gradient(to bottom, var(--color-secondary-light), var(--color-secondary));
  border-radius: 7px 7px 0 0;
  font-size: 1.2em;
  padding: 0.25em 0;
  text-align: center;
}

.leftColumn .sectionTitle {
  border-radius: 0;
}

/* ===========================
   THUMBNAILS
   =========================== */
.thumbs,
.thumbNichesTop {
  display: block;
  margin: 0 auto;
  max-width: var(--max-width);
  text-align: center;
}

.thumbs a,
.thumbNichesTop a {
  background-color: var(--color-primary);
  border-radius: 5px;
  box-sizing: border-box;
  display: inline-block;
  margin: 3px;
  padding: 4px 1px;
  vertical-align: middle;
  width: 324px;
  max-width: 324px;
  color: #8b7a9d;
  text-shadow: var(--shadow-text-base);
}

.thumbs a:hover,
.thumbNichesTop a:hover {
  color: var(--color-link);
  text-shadow: var(--shadow-text-strong);
}

.thumbs a > div:first-child,
.thumbNichesTop a > div:first-child {
  height: 0;
  padding-bottom: 75%;
  position: relative;
}

.thumbs a img,
.thumbNichesTop a img {
  border-radius: 7px;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  transition: transform 0.3s ease-in-out;
  width: 100%;
}

.thumbs a:hover img,
.thumbNichesTop a:hover img {
  transform: scale(1.05);
}

.thumbs a div + div {
  line-height: 0;
  margin: -25px 0 3px;
  position: relative;
  text-align: right;
  z-index: 1;
}

.thumbs a div span {
  background-color: var(--color-thumb-overlay);
  border: 1px solid #dddddd;
  border-radius: 3px;
  color: #dddddd;
  display: inline-block;
  font-size: 16px;
  height: 18px;
  line-height: normal;
  margin-right: 1px;
  padding: 1px 3px;
}

.thumbs a div span[data-length="AD"] {
  background-color: var(--color-thumb-ad);
  color: #de2600;
  font-family: sans-serif;
}

.thumbs p {
  font-family: sans-serif;
  height: 1.35em;
  line-height: 1.35;
  overflow: hidden;
  padding: 6px 5px 2px;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: calc(100% - 10px);
}

/* ===========================
   ICON CONTAINER (STATS)
   =========================== */
.icon-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.25rem 2rem;
  background-color: var(--color-secondary);
  background-image: linear-gradient(to bottom, var(--color-secondary-light), var(--color-secondary));
  border-radius: 8px;
  border: 1px solid #333;
  margin: 1.5rem 0;
}

.icon-container .stat,
.icon-container > span:first-child {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  justify-content: center;
  text-decoration: none;
  color: #e0e0e0;
}

.icon-container .icon {
  width: 18px;
  height: 18px;
  fill: #e0e0e0;
  transition: fill 0.2s ease;
}

.icon-container span {
  font-size: 0.95rem;
  color: #b0b0b0;
  white-space: nowrap;
}

.icon-container strong {
  color: #ffffff;
  font-weight: 600;
  margin-left: 0.25rem;
}

.icon-container a.stat:hover {
  color: #ffffff;
}

.icon-container a.stat:hover .icon {
  fill: #ffffff;
}

/* ===========================
   LOADING & PAGINATION
   =========================== */
#loading {
  color: #333;
  display: none;
  font-size: 16px;
  margin-bottom: 10px;
  text-align: center;
}

#load-more-btn {
  background-color: var(--color-secondary);
  background-image: linear-gradient(to bottom, var(--color-secondary-light), var(--color-secondary));
  border: none;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  display: block;
  font-size: 16px;
  margin: 0 auto;
  padding: 10px 20px;
  position: relative;
  width: 100%;
}

#load-more-btn:hover {
  background-color: #544341;
}

.arrow {
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #007bff;
  height: 0;
  margin-top: 10px;
  width: 0;
}

#pagination {
  margin: 15px 0 40px;
  display: flex;
  justify-content: center;
}

#pagination-controls a,
#pagination-controls span {
  font-size: 1.3em;
  margin: 2px 4px;
  padding: 9px 13px;
}

#pagination a {
  color: #fff;
  text-decoration: none;
}

#pagination .current {
  background-color: #ff0000;
  border-radius: 4px;
  color: #fff;
  font-weight: bold;
}

/* ===========================
   VIDEO PAGE & PLAYER
   =========================== */
.video-page {
  max-width: 900px;
  margin: 30px auto;
  padding: 0 15px;
  font-family: inherit;
}

.video-title {
  font-size: 26px;
  font-weight: bold;
  color: #fff;
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.45);
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fluid_video_wrapper {
  aspect-ratio: 16 / 9;
  height: auto !important;
}

.sprite-preview {
            position: absolute;
            bottom: 60px;
            left: 0;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.15s;
            z-index: 1000;
        }

        .sprite-preview.show {
            opacity: 1;
        }

        .sprite-box {
            background: #fff;
            border: 2px solid #fff;
            border-radius: 3px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.4);
            overflow: hidden;
        }

        .sprite-image {
            width: 160px;
            height: 90px;
            background-repeat: no-repeat;
            display: block;
            background-color: #000;
        }

        .sprite-time {
            position: absolute;
            bottom: 3px;
            right: 3px;
            background: rgba(0,0,0,0.75);
            color: #fff;
            padding: 2px 5px;
            border-radius: 2px;
            font-size: 11px;
            font-weight: bold;
        }

        @media (max-width: 768px) {
            .sprite-preview {
                bottom: 50px;
            }

            .sprite-image {
                width: 120px;
                height: 67.5px;
            }

            .sprite-time {
                font-size: 10px;
            }
        }

        @media (max-width: 480px) {
            .sprite-preview {
                bottom: 45px;
            }

            .sprite-image {
                width: 100px;
                height: 56.25px;
            }

            .sprite-time {
                font-size: 9px;
                padding: 1px 4px;
            }
        }

/* ===========================
   RESPONSIVE MEDIA QUERIES
   =========================== */

/* Desktop Large (1395px+) */
@media (min-width: 1395px) {
  .thumbs,
  .thumbNichesTop {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

/* Desktop (1065px+) */
@media (min-width: 1065px) {
  .header img {
    width: 60px;
  }
}

/* Tablets & Below (1024px) */
@media (max-width: 1024px) {
  .icon-container {
    padding: 1rem 1.5rem;
    gap: 1.5rem;
  }

  .icon-container span {
    font-size: 0.9rem;
  }
}

/* Tablets & Small Desktops (961px) */
@media (max-width: 961px) {
  .leftColumn,
  .textNichesTop {
    display: none;
  }

  .mainColumn {
    width: 100%;
  }

  .header img {
    width: 60px;
  }
}
#topBanner{
  font-size:10px;
}

/* Tablets (959px) */
@media (max-width: 959px) {
  .content {
    float: none;
    margin: auto;
    max-width: none;
  }

  .header {
    margin: 0.8em auto 1em;
  }

  .header h1,
  .header #topBanner {
    width: 100%;
  }

  .header img {
    width: 50px;
  }
}
#topBanner{
  font-size:10px;
}

/* Small Tablets (768px) */
@media (max-width: 768px) {
  .icon-container {
    padding: 1rem;
    gap: 1rem;
  }

  .icon-container .icon {
    width: 16px;
    height: 16px;
  }

  .icon-container span {
    font-size: 0.85rem;
  }

  #comments-section {
    padding: 1.5rem;
    margin-top: 2rem;
  }

  #comments-section h2 {
    font-size: 1.6rem;
  }

  #comments-list li {
    padding: 1rem;
  }

  .comment-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .comment-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  #comment-form {
    padding: 1.5rem;
  }

  #comment-form input,
  #comment-form textarea {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
}
#topBanner{
  font-size:10px;
}

/* Mobile Large (640px) */
@media (max-width: 640px) {
  .icon-container {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .icon-container .stat,
  .icon-container > span:first-child {
    flex: 1 1 45%;
    min-width: 140px;
  }
}
#topBanner{
  font-size:10px;
}

/* Mobile (607px) */
@media (max-width: 607px) {
  .header img {
    width: 40px;
  }

#topBanner{
  font-size:10px;
}

  nav[aria-label="breadcrumb"] {
    font-size: 13px;
    padding: 0.4em 0.8em;
  }

  nav[aria-label="breadcrumb"] li + li::before {
    margin: 0 5px;
  }

  #comments-section {
    padding: 1.2rem;
    border-radius: 16px;
  }

  #comments-section h2 {
    font-size: 1.4rem;
  }

  #comments-section h3 {
    font-size: 1.2rem;
    padding-left: 0.75rem;
  }

  #comments-list {
    gap: 1.2rem;
  }

  #comments-list li {
    padding: 0.9rem;
  }

  .comment-date {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
  }

  .comment-avatar {
    width: 30px;
    height: 30px;
  }

  .comment-content {
    font-size: 0.9rem;
  }
}

/* Mobile Small (480px) */
@media (max-width: 480px) {
  .icon-container {
    flex-direction: column;
    padding: 0.875rem;
    gap: 0.875rem;
  }

  .icon-container .stat,
  .icon-container > span:first-child {
    width: 100%;
    flex: none;
    justify-content: flex-start;
    padding: 0.5rem;
    background: #222;
    border-radius: 6px;
  }

  .icon-container span {
    font-size: 0.9rem;
  }
}

/* Mobile Tiny (449px) */
@media (max-width: 449px) {
  .controls {
    font-size: 100%;
  }

  .controls a {
    width: 25%;
  }

  #status {
    width: 3.5em;
  }

  .header img {
    width: 40px;
  }

  nav[aria-label="breadcrumb"] {
    font-size: 12px;
    padding: 0.3em 0.7em;
  }

  nav[aria-label="breadcrumb"] ol {
    flex-wrap: wrap;
  }

  nav[aria-label="breadcrumb"] li {
    margin-bottom: 3px;
  }
}
#topBanner{
  font-size:10px;
}

/* Mobile Extra Small (360px) */
@media (max-width: 360px) {
  .icon-container {
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .icon-container .stat,
  .icon-container > span:first-child {
    padding: 0.4rem;
  }

  .icon-container .icon {
    width: 15px;
    height: 15px;
  }

  .icon-container span {
    font-size: 0.85rem;
  }

  #comments-section {
    padding: 0.8rem;
  }

  .comment-avatar {
    width: 26px;
    height: 26px;
    font-size: 0.7rem;
  }

  #comments-section h2 {
    font-size: 1.1rem;
  }

  .comment-content {
    font-size: 0.8rem;
  }
}

#topBanner{
  font-size:12px;
}