/*
Theme Name: RicoYSuabe Limpio
Theme URI: https://example.invalid/
Author: Estanislao
Description: Plantilla limpia de video en modo oscuro con metabox en el editor (MP4, tráiler, imagen, miniaturas, descarga, anuncios), reproductor profesional y menús en header y footer.
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: ricoysuabe-limpio
*/

:root {
  --bg-main: #110f14;
  --bg-card: #191620;
  --bg-elev: #231f2d;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --accent: #e11d48;
  --accent-hover: #be123c;
  --border: #2c2738;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-main);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.rys-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.rys-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.rys-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
  padding: 10px 0;
}

.rys-brand {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.rys-brand-badge {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.rys-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.rys-nav a {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
}

.rys-nav a:hover,
.rys-nav .current-menu-item > a {
  color: #ffffff;
}

.rys-search-form {
  display: flex;
  align-items: center;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.rys-search-form input[type="search"] {
  background: transparent;
  border: 0;
  color: var(--text-main);
  padding: 8px 12px;
  min-width: 200px;
  outline: none;
}

.rys-search-form button {
  background: var(--accent);
  color: #ffffff;
  border: 0;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
}

.rys-search-form button:hover {
  background: var(--accent-hover);
}

/* Section title & Grid */
.rys-section-title {
  margin: 22px 0 14px;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rys-section-title h1 {
  margin: 0;
  font-size: inherit;
}

.rys-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1100px) {
  .rys-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .rys-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 460px) {
  .rys-grid {
    grid-template-columns: 1fr;
  }
}

.rys-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.rys-card:hover {
  transform: translateY(-2px);
  border-color: #463d5a;
}

.rys-thumb {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  background: #090a0d;
  overflow: hidden;
}

.rys-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}

.rys-thumb img.thumb-secondary {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.rys-card:hover .rys-thumb img.thumb-secondary.has-alt {
  opacity: 1;
}

.rys-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
}

.rys-card-body {
  padding: 10px 12px 12px;
}

.rys-card-title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.rys-card-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

/* Single Video & Pro Player */
.rys-single-wrap {
  margin: 20px 0 36px;
}

.rys-player-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.rys-source-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rys-tab-btn {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.rys-tab-btn.is-active,
.rys-tab-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.rys-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: #ffffff;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.rys-download-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.rys-player-box {
  background: #000000;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  width: 100%;
  position: relative;
}

.rys-player-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.rys-pro-player {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000000;
  user-select: none;
}

.rys-pro-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000000;
  cursor: pointer;
}

.rys-center-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.72);
  color: #ffffff;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  transition: transform 0.15s ease, background 0.15s ease;
}

.rys-center-play:hover {
  background: var(--accent);
  transform: translate(-50%, -50%) scale(1.06);
}

.rys-pro-player.is-playing .rys-center-play {
  opacity: 0;
  pointer-events: none;
}

.rys-pro-player:hover .rys-center-play {
  opacity: 1;
  pointer-events: auto;
}

.rys-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.92));
  padding: 24px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 5;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.rys-pro-player.is-playing:not(:hover):not(.show-controls) .rys-controls {
  opacity: 0;
  pointer-events: none;
}

.rys-progress-wrap {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.rys-progress-wrap:hover {
  height: 8px;
}

.rys-progress-buffered {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: rgba(255, 255, 255, 0.35);
}

.rys-progress-fill {
  position: relative;
  height: 100%;
  width: 0%;
  background: var(--accent);
  z-index: 2;
}

.rys-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rys-controls-left,
.rys-controls-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rys-ctrl-btn {
  background: transparent;
  border: 0;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: 4px;
  cursor: pointer;
  line-height: 1;
}

.rys-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.rys-time {
  font-size: 12px;
  color: #e5e7eb;
  font-variant-numeric: tabular-nums;
}

.rys-vol-slider {
  width: 76px;
  accent-color: var(--accent);
  cursor: pointer;
}

.rys-speed-select {
  background: var(--bg-elev);
  color: #ffffff;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 12px;
  padding: 3px 6px;
  cursor: pointer;
}

.rys-ad-below-player {
  margin: 14px 0 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  overflow: hidden;
}

.rys-ad-below-player img,
.rys-ad-below-player iframe {
  max-width: 100%;
  margin: 0 auto;
}

.rys-single-title {
  margin: 16px 0 8px;
  font-size: 1.4rem;
  line-height: 1.3;
}

.rys-tax-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}

.rys-pill {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;
}

.rys-desc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--text-main);
}

/* Pagination */
.rys-pagination {
  margin: 26px 0 36px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.rys-pagination .page-numbers {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 0.88rem;
}

.rys-pagination .current {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  font-weight: 700;
}

/* Footer */
.rys-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 22px 0;
  margin-top: 32px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.rys-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.rys-footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.rys-footer-nav a {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.rys-footer-nav a:hover {
  color: #ffffff;
}
