/* ============================
   CONTENITORE PRINCIPALE
   ============================ */
.yti-lrev-container {
  max-width: 100%;
  margin: 30px 0;
}

.yti-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 25px;
  align-items: end;
}

.yti-filter-group {
  display: flex;
  flex-direction: column;
  min-width: 180px;
}

.yti-filter-group label {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
}

.yti-filter-group select {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  background: #fff;
}

/* ============================
   TABELLA
   ============================ */
.yti-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-top: 20px;
}

.yti-table {
  width: 100%;
  min-width: 900px; /* larghezza comoda per mobile */
  border-collapse: collapse;
  font-size: 15px;
}

.yti-table th {
  background: #ff0100 !important;
  color: white !important;
  font-weight: 700;
  text-align: center;
  padding: 14px 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap; /* evita a capo nei titoli */
}

.yti-table td {
  padding: 12px 10px;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid #eee;
}

/* Colonne che NON devono andare a capo */
.yti-table th:nth-child(1),
.yti-table th:nth-child(2),
.yti-table th:nth-child(3),
.yti-table th:nth-child(4),
.yti-table td:nth-child(1),
.yti-table td:nth-child(2),
.yti-table td:nth-child(3),
.yti-table td:nth-child(4) {
  white-space: nowrap;
  min-width: 100px;
}

/* Titolo più largo */
.yti-table th:nth-child(5),
.yti-table td:nth-child(5) {
  min-width: 200px;
  text-align: left;
}

/* Link */
.yti-table td:nth-child(6) {
  min-width: 140px;
}

/* Thumbnail più piccola su mobile */
.yti-thumbnail {
  width: 160px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.yti-table td:nth-child(7) {
  min-width: 180px;
}

.yti-table tbody tr:hover {
  background-color: #fff5f5;
}

.yti-title-cell {
  font-weight: 600;
  text-align: left;
}

.yti-btn-watch {
  display: inline-block;
  background: #ff0100;
  color: white !important;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s;
}

.yti-btn-watch:hover {
  background: #cc0000;
}

/* ============================
   PAGINAZIONE
   ============================ */
.yti-pagination {
  margin: 20px 0;
  text-align: center;
}

/* ============================
   MOBILE OPTIMIZATIONS
   ============================ */
@media (max-width: 768px) {
  .yti-filters-row {
    flex-direction: column;
    align-items: stretch;
  }

  .yti-table {
    min-width: 800px; /* scorrimento fluido senza troppa larghezza */
    font-size: 14px;
  }

  .yti-table th,
  .yti-table td {
    padding: 10px 8px;
  }

  /* Thumbnail più piccola su mobile */
  .yti-thumbnail {
    width: 120px;
  }

  .yti-table td:nth-child(7) {
    min-width: 140px;
  }

  .yti-btn-watch {
    padding: 8px 12px;
    font-size: 13px;
  }

  .yti-title-cell {
    font-size: 14px;
  }
}

/* TASTO RESET */
.yti-reset-group {
  margin-left: auto;
  align-self: end;
}

.yti-reset-btn {
  background: #ff0100;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: background 0.3s;
  box-shadow: 0 4px 8px rgba(255, 0, 0, 0.2);
}

.yti-reset-btn:hover {
  background: #cc0000;
}

@media (max-width: 768px) {
  .yti-reset-group {
    margin-left: 0;
    margin-top: 15px;
    width: 100%;
  }

  .yti-reset-btn {
    width: 100%;
    padding: 14px;
    font-size: 17px;
  }
}

/* Nessun risultato */
.yti-no-results {
  padding: 50px;
  text-align: center;
  color: #666;
  font-size: 18px;
  font-style: italic;
}