:root {
  /* Color Palette */
  --primary-highlight: #FFFF00;
  --accent-color: #FEA42A;
  --header-bg: #F9622F;
  --tab-active-bg: #f97316;
  --tab-bg: #fbbf24;
  --tab-hover-bg: #f59e0b;
  --page-bg: #f4f1ea;
  --panel-border: #222;
  --panel-bg: #ffffff;
  --text-color: #222;
  --dark-grey: #333;

  /* Font Stacks */
  --font-body: 'Rubik', sans-serif;
  --font-heading-comic: 'Bangers', cursive;
  --font-heading-fun: 'Boogaloo', cursive;
  --font-marker: 'Permanent Marker', cursive;

  /* Patterns */
  --comic-dot-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23000' fill-opacity='0.08'/%3E%3Ccircle cx='7' cy='7' r='1' fill='%23000' fill-opacity='0.08'/%3E%3C/svg%3E");
  --manga-lines-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%23555555' fill-opacity='0.1'%3E%3Cpath fill-rule='evenodd' d='M11 0l5 20H6l5-20zm42 31l5 20H48l5-20zm-30 25l5 20H18l5-20zm41 6l5 20H58l5-20zM0 70l5 20H-5l5-20zM15 53l5 20H10l5-20zm43-16l5 20H53l5-20zm-13 5l5 20H35l5-20zm-22 25l5 20H13l5-20zM65 4l5 20H60l5-20zM38 15l5 20H33l5-20zM0 23l5 20H-5l5-20z'/%3E%3C/g%3E%3C/svg%3E");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--dark-grey);
  color: var(--text-color);
  line-height: 1.6;
  flex-direction: column;
  padding: 10px;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.5)), url("../assets/images/bg.webp");
  background-size: 820px;
}

.manga-page {
  position: relative;
  width: 92vmin;
  height: 92vmin;
  max-width: 1000px;
  max-height: 1000px;
  background-color: var(--page-bg);
  border-radius: 3px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(0, 0, 0, 0.1);
  display: grid;
  gap: 10px;
  padding: 15px;
}

.panel {
  background-color: var(--panel-bg);
  border: 3px solid var(--panel-border);
  border-radius: 2px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 5px 5px 0px 0px rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  transform: skew(-1deg, -0.5deg);
}

.panel:hover {
  box-shadow: 6px 6px 0px 0px rgba(0, 0, 0, 0.3);
}

.header-panel {
  grid-column: 1 / 7;
  grid-row: 1 / 2;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary-highlight);
  padding: 5px 15px;
  border-width: 3px;
  border-color: var(--panel-border);
  background-color: var(--header-bg);
  background-image: var(--comic-dot-pattern);
  text-shadow: 1px 1px 0 var(--dark-grey);
  overflow: visible;
  z-index: 10;
  height: 90px;
  min-height: 0;
}

.header-panel .logo {
  display: block;
  height: 72px;
  width: auto;
  max-width: 750px;
  overflow: visible;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
  flex-shrink: 1;
  position: relative;
  z-index: 1;
}

body.index-page .manga-page {
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: auto 1fr 1fr 1fr 1fr;
}

.index-page .input-panel h1,
.index-page .input-panel .speech-bubble,
.index-page .input-panel .date-selects,
.index-page .input-panel .manga-button,
.index-page .mascot-panel .speech-bubble,
.index-page .mascot-panel-2 .speech-bubble,
.index-page .mascot,
.index-page .mascot2,
.index-page .error-message {
  transform: skew(1deg, 0.5deg);
  transition: transform 0.2s ease;
}

.index-page .input-panel {
  grid-column: 1 / 5;
  grid-row: 2 / 6;
  padding: 20px;
  background-image: var(--comic-dot-pattern);
  text-align: center;
}

.index-page .input-panel h1 {
  font-family: var(--font-heading-comic);
  color: var(--header-bg);
  font-size: 2.8rem;
  letter-spacing: 2px;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
  padding: 0 10px;
  margin-bottom: 1.5rem;
}

.index-page .date-selects {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 340px;
  margin: 15px 0;
}

.index-page .date-select {
  flex: 1;
  min-width: 0;
  padding: 12px 6px;
  font-size: 1rem;
  border: 3px solid var(--panel-border);
  border-radius: 8px;
  background-color: var(--panel-bg);
  font-family: var(--font-body);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  appearance: none;
  -webkit-appearance: none;
}

#monthSelect {
  flex: 1.4;
}

.index-page .date-select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.index-page .error-message {
  color: #FF0000;
  font-weight: bold;
  margin-top: 10px;
  font-size: .8rem;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
  min-height: 1.5em;
}

.index-page .mascot-panels-wrapper {
  grid-column: 5 / 7;
  grid-row: 2 / 6;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.index-page .mascot-panels-wrapper>.panel {
  flex: 1;
  width: 95%;
  margin-left: .2rem;
  min-height: 0;
  background-image: var(--comic-dot-pattern);
}

.index-page .mascot,
.index-page .mascot2 {
  order: 2;
  width: 100%;
  max-width: 100%;
  height: 70%;
  object-fit: contain;
  background-size: contain;
  background-position: left bottom;
  background-repeat: no-repeat;
  animation: breathe 3s ease-in-out infinite;
  margin-top: auto;
  z-index: 1;
}

.index-page .speech-bubble {
  position: relative;
  background: var(--panel-bg);
  border: 2px solid var(--panel-border);
  border-radius: 15px;
  padding: 10px 15px;
  margin: 15px auto;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  width: calc(100% - 20px);
  max-width: 90%;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='5' cy='5' r='1' fill='%23000' fill-opacity='0.05'/%3E%3C/svg%3E");
  background-size: 10px 10px;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
  text-align: center;
  z-index: 2;
}

.index-page .mascot-panels-wrapper .speech-bubble {
  order: 1;
}

.index-page .speech-bubble::after,
.index-page .speech-bubble::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-style: solid;
  display: block;
  width: 0;
}

.index-page .speech-bubble::after {
  bottom: -12px;
  border-width: 12px 8px 0;
  border-color: var(--panel-bg) transparent;
  z-index: 1;
}

.index-page .speech-bubble::before {
  bottom: -15px;
  border-width: 14px 10px 0;
  border-color: var(--panel-border) transparent;
  z-index: 0;
}

.manga-button {
  padding: 10px 25px;
  background-color: var(--accent-color);
  color: var(--dark-grey);
  border: 3px solid var(--panel-border);
  border-radius: 8px;
  font-family: var(--font-heading-fun);
  font-size: 1.3rem;
  cursor: pointer;
  margin: 15px 0;
  transition: all 0.2s ease;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.1));
  text-shadow: none;
}

.manga-button:hover {
  filter: brightness(1.1);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35)
}

.manga-button:active {
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
  filter: brightness(0.95);
}

a.manga-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--dark-grey);
}

body.results-page .manga-page {
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: auto repeat(4, 1fr) auto;
}


.results-page .panel-content-unskew {
  transform: none;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: inherit;
  align-items: inherit;
  padding: inherit;
}

.results-page .result-cover img {
  transform: skew(1deg, 0.5deg);
}

/* Botón Amazon bajo la portada */
.amazon-btn {
  background-color: #FF9900;
  color: #111 !important;
  font-size: 0.85rem;
  padding: 7px 10px;
  margin-top: 8px;
  width: calc(100% - 1.2rem);
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transform: skew(1deg, 0.5deg);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
}

.amazon-btn:hover {
  filter: brightness(1.08);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
  color: #111 !important;
  text-decoration: none;
}

/* Carrito inline fallback (series sin número de capítulo) */
.affiliate-toc-link {
  display: inline-flex;
  align-items: center;
  margin-left: 7px;
  color: var(--accent-color);
  font-size: 0.7rem;
  text-decoration: none;
  opacity: 0.55;
  transition: opacity 0.15s, color 0.15s;
  vertical-align: middle;
}

.affiliate-toc-link:hover {
  opacity: 1;
  color: #FF9900;
}

/* Badge de volumen para series con capítulo detectado */
.affiliate-vol-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 8px;
  background-color: #FF9900;
  color: #111 !important;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--font-body);
  padding: 2px 7px;
  border-radius: 10px;
  text-decoration: none !important;
  border: 1.5px solid #cc7700;
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.25);
  transition: background-color 0.15s, box-shadow 0.15s, transform 0.1s;
  white-space: nowrap;
  vertical-align: middle;
  line-height: 1.6;
}

.affiliate-vol-badge:hover {
  background-color: #e07b00;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
  color: #111 !important;
  text-decoration: none !important;
}

.affiliate-vol-badge:active {
  transform: translateY(0);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0.2);
}

/* TOC items con badge: flex para alineación limpia */
.results-page .tab-content li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  margin-bottom: 5px;
}

.results-page .cover-extra-wrapper {
  grid-column: 1 / 3;
  grid-row: 2 / 6;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.results-page .cover-extra-wrapper > .panel {
  width: 95%;
  left: .2rem;
}

.results-page .result-cover {
  flex: 2;
  min-height: 0;
  overflow: hidden;
  padding: .6rem;
}

.results-page .extra-panel {
  flex: 1;
  min-height: 0;
  transform: none !important;
}

.results-page .result-cover .cover-zoom-btn {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.results-page .magazine-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border: 2px solid var(--panel-border);
}

.results-page .extra-panel {
  padding: 1rem;
  align-items: flex-start;
  justify-content: flex-start;
}

.results-page .extra-panel-content {
  width: 100%;
  height: 100%;
  font-size: 0.9rem;
  line-height: 1.4;
  overflow-y: auto;
  overflow-wrap: break-word;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) transparent;
}

.results-page .extra-panel-content::-webkit-scrollbar { width: 4px; }
.results-page .extra-panel-content::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 2px;
}

.results-page .extra-panel-content h3 {
  font-family: var(--font-heading-fun);
  color: var(--header-bg);
  margin-bottom: 0.5rem;
  text-align: center;
}

.results-page .extra-panel-content p {
  margin-bottom: 0.5rem;
}

.results-page .result-info {
  grid-column: 3 / 7;
  grid-row: 2 / 6;
  padding: 0;
  justify-content: initial;
  align-items: initial;
  overflow: hidden;
  transform: none !important;
}

.results-page .result-info .panel-content-unskew {
  padding: 15px;
  justify-content: space-between;
  overflow: hidden;
}

.results-page .result-info-header {
  text-align: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px dashed var(--panel-border);
  width: 100%;
  flex-shrink: 0;
}

/* Botones duplicados: ocultos en desktop, visibles solo en móvil */
.result-header-actions {
  display: none;
}

.results-page .result-info-header .issue-number {
  font-family: var(--font-heading-comic);
  font-size: 1.8rem;
  color: var(--header-bg);
  margin-bottom: 5px;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.2), -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.results-page .result-info-header .cover-date {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--dark-grey);
}

.results-page .result-info-body {
  display: flex;
  flex-grow: 1;
  overflow: hidden;
  margin-bottom: 15px;
  width: 100%;
}

.results-page .tab-navigation {
  display: flex;
  flex-direction: column;
  margin-right: 15px;
  border-right: 2px solid var(--panel-border);
  padding-right: 15px;
  flex-shrink: 0;
}

.results-page .tab-navigation .tab {
  background-color: var(--tab-bg);
  color: var(--dark-grey);
  border: 2px solid var(--panel-border);
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 8px;
  cursor: pointer;
  font-family: var(--font-heading-fun);
  font-size: 1rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
  position: relative;
}

.results-page .tab-navigation .tab i,
.results-page .tab-navigation .tab .tab-icon {
  font-size: 1.2rem;
  font-style: normal;
  line-height: 1;
}

.results-page .tab-navigation .tab .tab-tooltip {
  display: none;
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background-color: var(--dark-grey);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  z-index: 20;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.results-page .tab-navigation .tab:hover .tab-tooltip,
.results-page .tab-navigation .tab:focus .tab-tooltip {
  display: inline-block;
}

.results-page .tab-navigation .tab.active {
  background-color: var(--tab-active-bg);
  color: white;
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.results-page .tab-navigation .tab:hover:not(.active) {
  background-color: var(--tab-hover-bg);
}

.results-page .tab-content-container {
  flex-grow: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) transparent;
}

.results-page .tab-content-container::-webkit-scrollbar { width: 4px; }
.results-page .tab-content-container::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 2px;
}

.results-page .tab-content {
  font-size: 0.9rem;
  line-height: 1.5;
}

.results-page .tab-content.hidden {
  display: none;
}

.results-page .tab-content ul {
  list-style: disc;
  padding-left: 0;
  margin-top: 5px;
}

.results-page .facts-list {
  list-style: none;
  padding: 0;
  margin-top: 5px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.results-page .facts-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  background: var(--page-bg);
  border: 1.5px solid var(--panel-border);
  border-radius: 4px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.results-page .fact-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  line-height: 1.4;
}

.results-page .fact-label {
  font-family: var(--font-heading-fun);
  color: var(--header-bg);
  font-size: 0.9rem;
  white-space: nowrap;
}

.results-page .tab-content h3 {
  font-family: var(--font-heading-fun);
  color: var(--header-bg);
  margin-top: 10px;
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.results-page .tab-content p:first-child {
  margin-top: 0;
}

.affiliate-notice {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: #888;
  text-align: center;
  margin: 8px 0 0;
  flex-shrink: 0;
}

.affiliate-notice a {
  color: #888;
}

.results-page .result-info-buttons {
  display: flex;
  justify-content: space-around;
  padding-top: 15px;
  border-top: 2px dashed var(--panel-border);
  width: 100%;
  flex-shrink: 0;
}

.results-page .result-info-buttons .manga-button {
  font-size: 1.1rem;
  padding: 8px 15px;
  margin: 0 5px;
}

.results-page .result-info-buttons .manga-button i {
  margin-right: 8px;
}

/* ---- Manga cards grid (TOC visual) ---- */
.manga-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 4px 2px 4px 0;
}

.manga-card {
  display: flex;
  flex-direction: column;
  border: 2px solid var(--panel-border);
  border-radius: 4px;
  background: white;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.15);
  outline: none;
}

.manga-card:hover,
.manga-card:focus {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 3px 4px 0 rgba(0,0,0,0.22);
}

.manga-card-img-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  background: var(--page-bg);
  overflow: hidden;
  flex-shrink: 0;
}

.manga-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.manga-card-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.manga-card-placeholder-text {
  color: white;
  font-family: var(--font-heading-comic);
  font-size: 0.85rem;
  text-align: center;
  line-height: 1.3;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  word-break: break-word;
  hyphens: auto;
}

.manga-card-info {
  padding: 5px 6px 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--page-bg);
  border-top: 1px solid var(--panel-border);
  flex: 1;
}

.manga-card-title {
  font-family: var(--font-heading-fun);
  font-size: 0.78rem;
  color: var(--text-color);
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.manga-card-meta {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.manga-card-chapter,
.manga-card-vol {
  font-size: 0.62rem;
  color: var(--dark-grey);
  background: rgba(0,0,0,0.06);
  border-radius: 3px;
  padding: 1px 4px;
}

.manga-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: auto;
  padding: 4px 6px;
  background: var(--accent-color);
  color: var(--dark-grey) !important;
  border: 1.5px solid var(--panel-border);
  border-radius: 4px;
  font-size: 0.68rem;
  font-family: var(--font-heading-fun);
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 1px 1px 0 rgba(0,0,0,0.2);
  transition: filter 0.15s;
}

.manga-card-btn:hover {
  filter: brightness(1.1);
  color: var(--dark-grey) !important;
}

.loading-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.95);
  z-index: 1000;
  background-image: var(--comic-dot-pattern);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.3s linear;
}

.loading-container.visible {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.loading-spinner {
  width: 80px;
  height: 80px;
  border: 8px solid var(--accent-color);
  border-top-color: var(--header-bg);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-text {
  margin-top: 20px;
  font-family: var(--font-heading-comic);
  font-weight: 400;
  font-size: 1.8rem;
  color: var(--header-bg);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.site-footer-info {
  text-align: center;
  margin-top: 5px;
  margin-bottom: 5px;
  padding: 5px;
  color: var(--page-bg);
  font-family: var(--font-body);
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.site-footer-info .tip-button {
  font-size: 0.70rem;
  padding: 2px 8px;
  background-color: var(--accent-color);
  color: var(--dark-grey);
  gap: 5px;
  margin: 0;
  border-width: 2px;
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
}

.site-footer-info .tip-button:hover {
  filter: brightness(1.1);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25);
}

.site-footer-info .tip-button:active {
  box-shadow: none;
  transform: translateY(1px);
}

.site-footer-info .author-info {
  font-size: 0.7rem;
  white-space: nowrap;
  background: black;
  white-space: nowrap;
  padding: 1px 5px;
  border-radius: 2.5px;
}

.site-footer-info .author-info a {
  color: var(--primary-highlight);
  text-decoration: none;
  font-weight: normal;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.site-footer-info .author-info a:hover {
  text-decoration: underline;
  color: var(--accent-color);
}

.site-footer-info .author-info .fa-github {
  font-size: 0.9em;
}

/* --- Panel compartir --- */
.share-panel {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--panel-bg);
  border: 3px solid var(--panel-border);
  border-radius: 8px;
  box-shadow: 6px 6px 0 rgba(0,0,0,0.25);
  padding: 16px 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
  min-width: 240px;
}

.share-panel[hidden] { display: none; }

.share-panel-title {
  font-family: var(--font-heading-fun);
  font-size: 1.05rem;
  color: var(--header-bg);
  margin: 0 0 4px;
  text-align: center;
}

.share-panel-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: var(--panel-border);
  line-height: 1;
  padding: 2px 4px;
}

.share-option-btn {
  display: block;
  width: 100%;
  padding: 9px 14px;
  background: var(--tab-bg);
  border: 2px solid var(--panel-border);
  border-radius: 6px;
  font-family: var(--font-heading-fun);
  font-size: 0.95rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s, box-shadow 0.15s;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.15);
}

.share-option-btn:hover {
  background-color: var(--accent-color);
  color: white;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
}

/* Toast confirmación */
.share-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--header-bg);
  color: white;
  font-family: var(--font-heading-fun);
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: 6px;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.25);
  z-index: 1100;
  animation: toastIn 0.2s ease;
}

.share-toast[hidden] { display: none; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===================== TIMELINE PAGE ===================== */

body.timeline-page .manga-page {
  grid-template-columns: 1fr;
  grid-template-rows: auto auto 1fr;
  min-width: 0;
  align-self: center;
  height: 90vmin;
  max-height: 900px;
}

body.timeline-page .header-panel {
  grid-column: 1;
  grid-row: 1;
  overflow: hidden;
  height: 90px;
  min-height: 0;
}

.timeline-page .header-panel img.logo {
  height: 72px;
  width: auto;
  max-width: 700px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}

/* --- Carrusel de años --- */
.timeline-page .year-nav {
  grid-column: 1;
  grid-row: 2;
  padding: 8px 10px;
  justify-content: center;
  min-height: 0;
}

.year-nav-inner {
  display: flex;
  align-items: center;
  width: auto;
  gap: 6px;
  transform: skew(1deg, 0.5deg);
}

.year-arrow {
  flex-shrink: 0;
  background: var(--accent-color);
  border: 2px solid var(--panel-border);
  border-radius: 6px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
  transition: filter 0.15s, box-shadow 0.15s;
}

.year-arrow::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2.5px solid var(--panel-border);
  border-top: 2.5px solid var(--panel-border);
}

#prevYear::before { transform: rotate(-135deg) translate(-1px, 1px); }
#nextYear::before { transform: rotate(45deg) translate(-1px, 1px); }

.year-arrow:hover:not(:disabled) {
  filter: brightness(1.1);
  box-shadow: 3px 3px 0 rgba(0,0,0,0.25);
}

.year-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.year-strip-wrapper {
  /* Show ~5 year buttons at a time: 5 × 62px + 4 × 5px gap = 330px */
  flex: none;
  width: 330px;
  min-width: 0;
  overflow: hidden;
}

.year-strip {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 2px;
  scrollbar-width: none;
}

.year-strip::-webkit-scrollbar { display: none; }

.year-btn {
  flex-shrink: 0;
  scroll-snap-align: center;
  background: var(--tab-bg);
  border: 2px solid var(--panel-border);
  border-radius: 6px;
  width: 62px;
  text-align: center;
  padding: 5px 0;
  font-family: var(--font-heading-fun);
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.15);
  transition: background-color 0.15s, box-shadow 0.15s, transform 0.15s;
  white-space: nowrap;
}

.year-btn:hover:not(.active) { background-color: var(--tab-hover-bg); }

.year-btn.active {
  background-color: var(--header-bg);
  color: white;
  font-weight: 700;
  transform: scale(1.12);
  z-index: 1;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

/* --- Sección de portadas --- */
.timeline-page .covers-section {
  grid-column: 1;
  grid-row: 3;
  padding: 0;
  justify-content: initial;
  align-items: initial;
  overflow: hidden;
  min-height: 0;
  transform: none !important;
}

.covers-section-inner {
  transform: none;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 15px 18px 20px;
}

.covers-year-title {
  font-family: var(--font-heading-comic);
  color: var(--header-bg);
  font-size: 1.5rem;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-bottom: 10px;
}

.covers-count-badge {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dark-grey);
  background: var(--page-bg);
  border: 1.5px solid var(--panel-border);
  border-radius: 20px;
  padding: 2px 9px;
  text-shadow: none;
  white-space: nowrap;
}

.covers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  align-content: start;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) transparent;
}

.covers-grid::-webkit-scrollbar { width: 4px; }
.covers-grid::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 2px;
}

.no-covers-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 30px;
  color: var(--dark-grey);
  font-family: var(--font-heading-fun);
  font-size: 1.1rem;
}

@keyframes coverFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Tarjeta de portada --- */
.cover-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-color);
  border: 2px solid var(--panel-border);
  border-radius: 4px;
  background: white;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .cover-card {
    opacity: 0;
    animation: coverFadeIn 0.25s ease forwards;
  }
}

.cover-card:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 4px 5px 0 rgba(0,0,0,0.25);
  text-decoration: none;
}

.cover-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  display: block;
  flex-shrink: 0;
}

.cover-card-info {
  padding: 6px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--page-bg);
  border-top: 1px solid var(--panel-border);
}

.cover-num {
  font-family: var(--font-heading-fun);
  font-size: 1rem;
  color: var(--header-bg);
  font-weight: bold;
  line-height: 1.3;
}

.cover-date-label {
  font-size: 0.8rem;
  color: var(--dark-grey);
  line-height: 1.3;
}

/* --- Botón zoom portada --- */
.cover-zoom-btn {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: zoom-in;
  position: relative;
}

.cover-zoom-btn .magazine-cover {
  display: block;
  width: 100%;
}

.cover-zoom-hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.cover-zoom-btn:hover .cover-zoom-hint {
  opacity: 1;
}

/* --- Lightbox --- */
.cover-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  animation: lightboxFadeIn 0.2s ease;
}

.cover-lightbox[hidden] {
  display: none;
}

@keyframes lightboxFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.cover-lightbox-img {
  max-width: min(90vw, 500px);
  max-height: 90vh;
  object-fit: contain;
  border: 3px solid var(--panel-border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  border-radius: 3px;
  animation: lightboxImgIn 0.25s ease;
  cursor: zoom-in;
  user-select: none;
  will-change: transform;
  transform-origin: center;
  -webkit-user-drag: none;
}

@keyframes lightboxImgIn {
  from { transform: scale(0.88); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.cover-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--header-bg);
  color: white;
  border: 2px solid var(--panel-border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
  transition: filter 0.15s;
}

.cover-lightbox-close:hover {
  filter: brightness(1.2);
}

.cover-lightbox-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.7rem;
  font-family: var(--font-body);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}


/* --- Botón cronología en portada --- */
.timeline-btn {
  background: var(--page-bg) !important;
  color: var(--dark-grey) !important;
  font-size: 1rem !important;
  padding: 7px 20px !important;
  margin-top: 0 !important;
  margin-bottom: 5px !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-color: var(--panel-border) !important;
}

.timeline-btn:hover {
  background: #e8e3d8 !important;
  color: var(--dark-grey) !important;
  text-decoration: none;
}

/* --- Responsive timeline --- */
@media (max-width: 768px) {
  .covers-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .year-strip-wrapper {
    flex: 1;
    width: auto;
    max-width: calc(5 * 58px + 4 * 5px); /* 310px = 5 botones exactos */
    overflow: hidden;
  }
  .year-btn {
    width: 58px;
  }
  .year-btn.active {
    transform: none;
    box-shadow: 0 0 0 3px var(--panel-border);
  }
}

@media (max-width: 480px) {
  .covers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .year-nav-inner {
    transform: none;
  }
  .covers-year-title {
    font-size: 1.1rem;
    margin-bottom: 6px;
  }
  .year-strip-wrapper {
    flex: 1;
    width: auto;
    max-width: calc(5 * 54px + 4 * 5px); /* 290px = 5 botones exactos */
    overflow: hidden;
  }
  .year-btn {
    width: 54px;
    font-size: 0.85rem;
    padding: 4px 0;
  }
  .year-arrow {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }
  .cover-num {
    font-size: 0.88rem;
  }
  .cover-date-label {
    font-size: 0.68rem;
  }
}

/* ===================== FIN TIMELINE ===================== */

/* ===================== ABOUT PAGE ===================== */

body.about-page {
  height: auto;
  min-height: 100dvh;
  overflow-y: auto;
}

.about-page .manga-page {
  display: flex;
  flex-direction: column;
  width: min(700px, 94vw);
  height: auto;
  min-height: auto;
  max-height: none;
  gap: 12px;
  padding: 12px;
  margin: 0 auto;
}

.about-panel {
  width: 100%;
  transform: skew(-1deg, -0.5deg);
}

.about-section {
  transform: skew(1deg, 0.5deg);
  padding: 20px 24px;
  width: 100%;
}

.about-section h2 {
  font-family: var(--font-heading-comic);
  color: #fff;
  background: var(--header-bg);
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  margin: 0 -24px 16px;
  padding: 7px 24px;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.25);
  border-bottom: 3px solid var(--panel-border);
}

.about-section p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.about-section p:last-child { margin-bottom: 0; }

.about-section a {
  color: var(--header-bg);
  font-weight: 700;
  text-decoration: underline;
}

.about-section a:visited {
  color: var(--header-bg);
}

.about-section .speech-bubble {
  margin: 0 0 14px;
  font-size: 0.95rem;
}

/* Pasos numéricos */
.about-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
}

.about-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--header-bg);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading-fun);
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}

/* Lista de series */
.about-series-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
}

.about-series-list li {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Grid de datos */
.about-data-grid {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.about-data-card {
  flex: 1;
  min-width: 100px;
  background: var(--panel-bg);
  border: 2px solid var(--panel-border);
  border-radius: 6px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.18);
}

.about-data-icon { font-size: 1.4rem; }
.about-data-label { font-family: var(--font-body); font-size: 0.75rem; color: #888; }
.about-data-value { font-family: var(--font-heading-fun); font-size: 1rem; color: var(--panel-border); font-weight: 700; }

/* Lista privacidad */
.privacy-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.privacy-list li {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.5;
  padding-left: 14px;
  border-left: 3px solid var(--accent-color);
}

/* CTA final */
.about-cta {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 4px 0 8px;
}

.about-cta .manga-button {
  white-space: nowrap;
}

/* Responsive about */
@media (max-width: 480px) {
  .about-page .manga-page {
    width: calc(100vw - 16px);
    padding: 8px;
    gap: 8px;
  }

  .about-panel {
    transform: none !important;
  }

  .about-section {
    transform: none !important;
    padding: 14px 16px;
  }

  .about-section h2 {
    margin: 0 -16px 14px;
    padding: 7px 16px;
  }

  .about-series-list {
    grid-template-columns: 1fr;
  }

  .about-cta .manga-button {
    max-width: 100%;
  }
}

/* ===================== FIN ABOUT ===================== */

/* --- Botón volver arriba (solo móvil) --- */
.back-to-top {
  position: fixed;
  bottom: 18px;
  right: 14px;
  width: 42px;
  height: 42px;
  background: var(--header-bg);
  color: white;
  border: 2px solid var(--panel-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s, transform 0.2s;
  z-index: 200;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top::before {
  content: '';
  display: block;
  width: 11px;
  height: 11px;
  border-right: 3px solid white;
  border-top: 3px solid white;
  transform: rotate(-45deg);
  margin-top: 4px;
}

.back-to-top:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}

@media (min-width: 769px) {
  .back-to-top {
    display: none !important;
  }
}

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@keyframes breathe {

  0%,
  100% {
    transform: scale(1) skew(1deg, 0.5deg);
  }

  50% {
    transform: scale(1.02) skew(1deg, 0.5deg);
  }
}

@media (max-width: 768px) {
  body {
    height: auto;
    min-height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px;
  }

  .manga-page {
    width: 96vmin;
    height: auto;
    min-height: 90vmin;
    padding: 12px;
    gap: 8px;
  }

  .panel {
    transform: none !important;
  }

  .covers-section-inner,
  .year-nav-inner,
  .amazon-btn,
  .panel-content-unskew,
  .result-cover img,
  .result-info-header,
  .result-info-body,
  .result-info-buttons .manga-button,
  .extra-panel-content {
    transform: none !important;
  }

  .header-panel {
    height: 90px;
  }

  .header-panel .logo {
    height: 72px;
    max-height: 72px;
    width: auto;
  }

  .index-page .manga-page {
    grid-template-rows: auto 1fr auto;
  }

  .index-page .input-panel {
    grid-column: 1 / 7;
    grid-row: 2 / 3;
  }

  .index-page .mascot-panels-wrapper {
    grid-column: 1 / 7;
    grid-row: 3 / 4;
    flex-direction: row;
    gap: 8px;
    height: 160px;
  }

  .index-page .input-panel h1 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
  }

  .index-page .speech-bubble {
    font-size: 0.85rem;
    padding: 8px 12px;
    margin: 8px auto;
  }

  .index-page .date-selects {
    max-width: 100%;
    margin: 10px auto;
  }

  .index-page .date-select {
    font-size: 1rem;
    padding: 10px 4px;
  }

  .index-page .manga-button {
    padding: 10px 20px;
    font-size: 1.1rem;
    margin: 8px auto;
  }

  .index-page .error-message {
    font-size: 0.9rem;
  }

  .index-page .mascot,
  .index-page .mascot2 {
    height: 75%;
  }

  .results-page .manga-page {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
  }

  .results-page .result-cover,
  .results-page .result-info,
  .results-page .extra-panel {
    grid-column: 1 / -1 !important;
  }

  .results-page .result-cover {
    grid-row: 2 / 3 !important;
    flex-direction: row !important;
    min-height: 28vh;
  }

  .results-page .result-info {
    grid-row: 3 / 6 !important;
  }

  .results-page .extra-panel {
    grid-row: 6 / 7 !important;
  }

  .results-page .result-info {
    grid-row: 3 / 4;
  }

  .results-page .result-info .panel-content-unskew {
    padding: 12px;
  }

  .results-page .result-info-header .issue-number {
    font-size: 1.6rem;
  }

  .results-page .result-info-header .cover-date {
    font-size: 1rem;
  }

  .results-page .result-info-body {
    flex-direction: column;
  }

  .results-page .tab-navigation {
    flex-direction: row;
    margin-right: 0;
    border-right: none;
    padding-right: 0;
    border-bottom: 2px solid var(--panel-border);
    padding-bottom: 10px;
    margin-bottom: 10px;
    justify-content: center;
  }

  .results-page .tab-navigation .tab {
    margin-bottom: 0;
    margin-right: 8px;
  }

  .results-page .tab-navigation .tab:last-child {
    margin-right: 0;
  }

  .results-page .tab-navigation .tab .tab-tooltip {
    display: none !important;
  }

  .results-page .tab-content-container {
    padding: 5px;
  }

  .results-page .result-info-buttons .manga-button {
    font-size: 1rem;
    padding: 8px 12px;
  }

  .site-footer-info {
    gap: 12px;
    margin: 0;
  }

  .site-footer-info .tip-button {
    font-size: 0.8rem;
    padding: 5px 10px;
  }

  .site-footer-info .author-info {
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 8px 8px 0;
  }

  .manga-page {
    display: flex;
    flex-direction: column;
    width: calc(100vw - 16px);
    max-width: none;
    height: auto;
    min-height: calc(100dvh - 50px);
    max-height: none;
    padding: 8px;
    gap: 6px;
  }

  body.timeline-page .manga-page {
    height: auto;
    min-height: calc(100dvh - 50px);
    max-height: none;
  }

  .timeline-page .covers-section {
    flex: 1;
    min-height: 320px;
  }

  .manga-page>.panel,
  .manga-page>.mascot-panels-wrapper,
  .manga-page>.cover-extra-wrapper,
  .manga-page>.result-info {
    width: 100%;
    transform: none !important;
    margin-bottom: 5px;
  }

  .manga-page>*:last-child {
    margin-bottom: 0;
  }

  .manga-page>.panel:hover {
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.15);
  }

  /* Desactivar todos los skews en móvil */
  .panel {
    transform: none !important;
  }

  .covers-section-inner,
  .year-nav-inner,
  .amazon-btn,
  .input-panel h1,
  .input-panel .speech-bubble,
  .input-panel .date-selects,
  .input-panel .manga-button,
  .mascot-panels-wrapper .speech-bubble,
  .mascot,
  .mascot2,
  .error-message,
  .panel-content-unskew,
  .result-cover img,
  .result-info-header,
  .result-info-body,
  .result-info-buttons .manga-button,
  .extra-panel-content {
    transform: none !important;
  }

  @keyframes breathe {

    0%,
    100% {
      transform: scale(1);
    }

    50% {
      transform: scale(1.02);
    }
  }

  .header-panel {
    order: -1;
    height: 80px;
    min-height: 0;
    padding: 0 10px;
  }

  .header-panel .logo {
    height: 62px;
    max-height: 62px;
    width: auto;
  }

  .index-page .input-panel {
    order: 0;
    flex: 1;
    min-height: 0;
    padding: 16px 14px;
    justify-content: center;
  }

  .index-page .input-panel h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .index-page .input-panel .speech-bubble {
    margin: 6px auto;
    font-size: 0.75rem;
    width: 100%;
    max-width: 100%;
  }

  .index-page .mascot-panels-wrapper {
    display: flex;
    flex-direction: row;
    gap: 6px;
    order: 1;
    flex: none;
    height: 300px;
    width: 100%;
  }

  .index-page .mascot-panels-wrapper > .panel {
    flex: 1;
    min-height: 0;
    margin-bottom: 0;
    overflow: hidden;
  }

  .index-page .mascot-panels-wrapper .speech-bubble {
    width: calc(100% - 10px);
    max-width: 95%;
    padding: 4px 7px;
    margin: 4px auto;
    font-size: 0.7rem;
  }

  .index-page .mascot,
  .index-page .mascot2 {
    height: 80%;
  }

  .index-page .speech-bubble {
    font-size: 0.75rem;
  }

  .index-page .date-selects {
    margin: 8px auto;
  }

  .index-page .date-select {
    font-size: 0.95rem;
    padding: 10px 4px;
  }

  .index-page .manga-button {
    font-size: 1rem;
    padding: 10px 15px;
    margin: 6px auto;
    width: 100%;
    max-width: 300px;
  }

  .index-page .error-message {
    font-size: 0.8rem;
    margin-top: 4px;
    min-height: 1.2em;
  }

  /* Cover y extra panel en columna (cada uno en su propia fila) */
  .results-page .cover-extra-wrapper {
    order: 0;
    flex-direction: column;
    gap: 5px;
    height: auto;
    flex-shrink: 0;
  }

  .results-page .cover-extra-wrapper>.panel {
    width: 100%;
    margin-bottom: 0;
    left: 0;
  }

  /* Portada: imagen arriba, botón Amazon abajo */
  .results-page .result-cover {
    flex-direction: column !important;
    padding: 6px;
    height: 240px;
    flex-shrink: 0;
  }

  .results-page .result-cover .cover-zoom-btn {
    flex: 1;
    min-height: 0;
    width: 100%;
  }

  .results-page .result-cover .amazon-btn {
    flex-shrink: 0;
    width: 100%;
    margin-top: 4px;
    font-size: 0.78rem;
    padding: 5px 6px;
  }

  /* Extra panel: altura automática */
  .results-page .extra-panel {
    padding: .6rem;
    min-height: 100px;
    height: auto;
    flex-shrink: 0;
  }

  .results-page .magazine-cover {
    border-width: 1px;
  }

  /* Botones rápidos tras la fecha — solo visibles en móvil */
  .result-header-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    width: 100%;
  }

  .result-header-actions .manga-button {
    flex: 1;
    font-size: 0.85rem;
    padding: 8px 6px;
    text-align: center;
  }

  .results-page .result-info {
    order: 1;
    flex: 1;
    min-height: 55dvh;
  }

  .results-page .result-info .panel-content-unskew {
    padding: 10px;
  }

  .results-page .result-info-header .issue-number {
    font-size: 1.4rem;
  }

  .results-page .result-info-header .cover-date {
    font-size: 0.9rem;
  }

  .results-page .tab-navigation .tab {
    padding: 6px 8px;
    font-size: 0.9rem;
  }

  .results-page .tab-navigation .tab i,
  .results-page .tab-navigation .tab .tab-icon {
    font-size: 1rem;
  }

  .results-page .tab-content {
    font-size: 0.8rem;
  }

  .results-page .result-info-buttons {
    flex-direction: row;
    gap: 10px;
  }

  .results-page .result-info-buttons .manga-button {
    width: auto;
    flex: 1;
    margin: 0;
    font-size: 0.85rem;
    padding: 8px 5px;
  }

  .results-page .extra-panel-content {
    font-size: 0.8rem;
  }

  .index-page .speech-bubble::after {
    bottom: -11px;
  }

  .site-footer-info {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 5px 8px;
    width: 100%;
    max-width: calc(100vw - 16px);
  }

  .site-footer-info .tip-button {
    font-size: 0.7rem;
    padding: 3px 8px;
    white-space: nowrap;
  }

  .site-footer-info .author-info {
    font-size: 0.6rem;
    text-align: right;
  }
}
