/* =============================================================
   HOME TABS — Diseño Kotaru
   ============================================================= */

.ht-section {
    --ht-bg:       #0e0e14;
    --ht-bg2:      #16161f;
    --ht-bg3:      #1e1e2a;
    --ht-border:   rgba(255,255,255,.08);
    --ht-accent:   #e91e8c;
    --ht-text:     #f0f0f5;
    --ht-muted:    #7a7a90;
    --ht-radius:   10px;
    --ht-ease:     .22s ease;
}

.ht-section {
    max-width: 1280px;
    margin: 24px auto 0;
    padding: 0 20px 48px;
    position: relative;
    isolation: isolate;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.ht-section::before {
    display: none;
}

.ht-section::after {
    display: none;
}

.ht-section > * {
    position: relative;
    z-index: 1;
}

/* =============================================================
   TAB NAV
   ============================================================= */
.ht-tabs-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: min(100%, 860px);
    max-width: 860px;
    margin: 28px auto 0;
    padding: 0 18px;
    border-bottom: 1px solid var(--ht-border);
    overflow-x: auto;
    scrollbar-width: none;
    background: transparent;
}
.ht-tabs-nav::-webkit-scrollbar { display: none; }

.ht-home-banner-slot {
    margin: 22px auto 28px;
    max-width: 1180px;
}

.ht-home-banner-slot .lm-banner-zone,
.ht-bottom-banner-slot .lm-banner-zone {
    margin-bottom: 0;
}

.ht-home-banner-slot .lm-banner-item,
.ht-bottom-banner-slot .lm-banner-item {
    margin: 0;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 22px 60px rgba(0,0,0,.28);
}

.ht-home-banner-slot .lm-banner-img,
.ht-bottom-banner-slot .lm-banner-img {
    width: 100%;
    height: auto;
    max-height: none;
    min-height: 0;
    object-fit: initial;
    display: block;
}

.ht-home-banner-placeholder {
    position: relative;
    min-height: 320px;
    border-radius: 26px;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 20%, rgba(255,255,255,.18), transparent 24%),
        radial-gradient(circle at 84% 16%, rgba(233,30,140,.18), transparent 18%),
        linear-gradient(135deg, #1d1833 0%, #0a4da3 54%, #16c7d8 100%);
    box-shadow: 0 22px 60px rgba(0,0,0,.28);
}

.ht-home-banner-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255,255,255,.08), transparent 32%),
        linear-gradient(180deg, rgba(10,8,18,.04), rgba(10,8,18,.22));
    pointer-events: none;
}

.ht-home-banner-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.ht-icon-shortcuts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 2.4vw, 22px);
    width: min(100%, 840px);
    margin: 6px auto 24px;
    padding: 4px 6px 0;
}

.ht-icon-shortcut {
    --ht-shortcut-glow: 255, 174, 210;
    position: relative;
    z-index: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 10px 6px;
    border-radius: 26px;
    color: var(--ht-text);
    text-align: center;
    text-decoration: none;
    transition:
        transform .26s cubic-bezier(.22,1,.36,1),
        filter .26s ease,
        opacity .22s ease;
    isolation: isolate;
}

.ht-icon-shortcut::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0)),
        radial-gradient(circle at 50% 0, rgba(var(--ht-shortcut-glow),.12), transparent 72%);
    border: 1px solid rgba(255,255,255,.05);
    opacity: .78;
    pointer-events: none;
    z-index: -2;
}

.ht-icon-shortcut-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 26%, rgba(255,255,255,.24), transparent 36%),
        linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.03)),
        linear-gradient(135deg, rgba(var(--ht-shortcut-glow),.28), rgba(21,18,33,.96));
    border: 1px solid rgba(255,255,255,.14);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.14),
        0 18px 30px rgba(0,0,0,.16),
        0 0 0 1px rgba(var(--ht-shortcut-glow),.08);
}

.ht-icon-shortcut-badge::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(var(--ht-shortcut-glow),.28) 0, rgba(var(--ht-shortcut-glow),0) 68%);
    opacity: .7;
    filter: blur(12px);
    animation: htShortcutAura 3.8s ease-in-out infinite;
    z-index: -1;
}

.ht-icon-shortcut-badge::after {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: inherit;
    border: 1px solid rgba(255,255,255,.08);
    opacity: .88;
}

.ht-icon-shortcut i {
    position: relative;
    z-index: 1;
    font-size: 30px;
    color: #fff;
    text-shadow: 0 10px 24px rgba(0,0,0,.22);
}

.ht-icon-shortcut-label {
    display: block;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.08;
}

.ht-icon-shortcut-note {
    display: block;
    color: rgba(240,240,245,.66);
    font-size: .72rem;
    line-height: 1.35;
    letter-spacing: .01em;
}

.ht-icon-shortcut:hover {
    color: var(--ht-text);
    transform: translateY(-4px);
    filter: brightness(1.04);
}

.ht-icon-shortcut:hover .ht-icon-shortcut-badge {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.16),
        0 22px 34px rgba(0,0,0,.2),
        0 0 0 1px rgba(var(--ht-shortcut-glow),.12);
}

.ht-icon-shortcut:focus-visible {
    outline: none;
}

.ht-icon-shortcut:focus-visible .ht-icon-shortcut-badge {
    box-shadow:
        0 0 0 2px rgba(var(--ht-shortcut-glow),.34),
        inset 0 1px 0 rgba(255,255,255,.16),
        0 22px 34px rgba(0,0,0,.2);
}

.ht-icon-shortcut.is-disabled {
    opacity: .64;
    filter: saturate(.8);
    cursor: default;
}

.ht-icon-shortcut.is-disabled::before {
    opacity: .48;
}

.ht-icon-shortcut:nth-child(2) .ht-icon-shortcut-badge::before {
    animation-delay: -.8s;
}

.ht-icon-shortcut:nth-child(3) .ht-icon-shortcut-badge::before {
    animation-delay: -1.6s;
}

.ht-icon-shortcut.is-calendar {
    --ht-shortcut-glow: 255, 188, 120;
}

.ht-icon-shortcut.is-calendar .ht-icon-shortcut-badge {
    background:
        radial-gradient(circle at 32% 26%, rgba(255,255,255,.24), transparent 36%),
        linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.03)),
        linear-gradient(135deg, rgba(255,193,120,.34), rgba(71,41,16,.96));
    animation: htShortcutCalendarBadge 4.2s ease-in-out infinite;
}

.ht-icon-shortcut.is-calendar i {
    animation: htShortcutCalendarIcon 3.2s ease-in-out infinite;
}

.ht-icon-shortcut.is-discord {
    --ht-shortcut-glow: 129, 145, 255;
}

.ht-icon-shortcut.is-discord .ht-icon-shortcut-badge {
    background:
        radial-gradient(circle at 32% 26%, rgba(255,255,255,.22), transparent 36%),
        linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.03)),
        linear-gradient(135deg, rgba(129,145,255,.32), rgba(28,30,73,.96));
    animation: htShortcutDiscordBadge 4.8s cubic-bezier(.22,1,.36,1) infinite;
}

.ht-icon-shortcut.is-discord i {
    animation: htShortcutDiscordIcon 4.8s cubic-bezier(.22,1,.36,1) infinite;
}

.ht-icon-shortcut.is-facebook {
    --ht-shortcut-glow: 101, 181, 255;
}

.ht-icon-shortcut.is-facebook .ht-icon-shortcut-badge {
    background:
        radial-gradient(circle at 32% 26%, rgba(255,255,255,.24), transparent 36%),
        linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.03)),
        linear-gradient(135deg, rgba(101,181,255,.32), rgba(18,45,102,.96));
    animation: htShortcutFacebookBadge 4s ease-in-out infinite;
}

.ht-icon-shortcut.is-facebook i {
    animation: htShortcutFacebookIcon 3.8s ease-in-out infinite;
}

@keyframes htShortcutAura {
    0%, 100% {
        transform: scale(.92);
        opacity: .56;
    }
    50% {
        transform: scale(1.08);
        opacity: .9;
    }
}

@keyframes htShortcutCalendarBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes htShortcutCalendarIcon {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-1px) rotate(-8deg); }
    55% { transform: translateY(-2px) rotate(0deg); }
    75% { transform: translateY(-1px) rotate(8deg); }
}

@keyframes htShortcutDiscordBadge {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    30% { transform: translateY(-3px) rotate(3deg); }
    60% { transform: translateY(1px) rotate(-3deg); }
}

@keyframes htShortcutDiscordIcon {
    0%, 100% { transform: translateY(0) scale(1); }
    35% { transform: translateY(-3px) scale(1.06); }
    65% { transform: translateY(1px) scale(.98); }
}

@keyframes htShortcutFacebookBadge {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-2px) scale(1.04); }
}

@keyframes htShortcutFacebookIcon {
    0%, 100% {
        transform: translateY(0);
        text-shadow: 0 10px 24px rgba(0,0,0,.22), 0 0 0 rgba(101,181,255,0);
    }
    50% {
        transform: translateY(-1px);
        text-shadow: 0 10px 24px rgba(0,0,0,.22), 0 0 18px rgba(101,181,255,.42);
    }
}

.ht-tab-btn {
    --ht-tab-glow: 255, 150, 214;
    position: relative;
    z-index: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ht-muted);
    font-size: .93rem;
    font-weight: 600;
    min-width: 108px;
    padding: 14px 18px 15px;
    border-radius: 16px 16px 0 0;
    transition: color var(--ht-ease), transform var(--ht-ease), text-shadow var(--ht-ease);
    outline: none;
    letter-spacing: .02em;
    overflow: hidden;
}
.ht-tab-btn[data-tab="new"]       { --ht-tab-glow: 255, 180, 109; }
.ht-tab-btn[data-tab="popular"]   { --ht-tab-glow: 255, 122, 84; }
.ht-tab-btn[data-tab="latest"]    { --ht-tab-glow: 167, 126, 255; }
.ht-tab-btn[data-tab="completed"] { --ht-tab-glow: 110, 230, 175; }
.ht-tab-btn[data-tab="random"]    { --ht-tab-glow: 91, 206, 255; }
.ht-tab-btn::before {
    content: '';
    position: absolute;
    inset: 6px 8px 2px;
    border-radius: 14px 14px 0 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0)),
        radial-gradient(circle at 50% 0, rgba(var(--ht-tab-glow),.18), transparent 70%);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--ht-ease), transform var(--ht-ease);
    z-index: -1;
}
.ht-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 18px;
    right: 18px;
    height: 3px;
    background: linear-gradient(90deg, rgba(var(--ht-tab-glow),0), rgba(var(--ht-tab-glow),1), rgba(var(--ht-tab-glow),0));
    border-radius: 2px 2px 0 0;
    transform: scaleX(0);
    transition: transform var(--ht-ease);
}
.ht-tab-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    color: inherit;
}
.ht-tab-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background:
        radial-gradient(circle at 30% 26%, rgba(255,255,255,.14), transparent 58%),
        linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
    border: 1px solid rgba(255,255,255,.07);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08),
        0 8px 16px rgba(0,0,0,.12);
    opacity: .72;
    transform: scale(.94);
    transition:
        opacity var(--ht-ease),
        transform var(--ht-ease),
        border-color var(--ht-ease),
        box-shadow var(--ht-ease),
        background var(--ht-ease);
}
.ht-tab-icon svg {
    position: relative;
    z-index: 1;
    display: block;
    width: 17px;
    height: 17px;
    overflow: visible;
    transition: transform var(--ht-ease), filter var(--ht-ease), opacity var(--ht-ease);
}
.ht-tab-label {
    position: relative;
    z-index: 1;
    display: block;
    white-space: nowrap;
}
.ht-tab-btn:hover  {
    color: var(--ht-text);
    transform: translateY(-1px);
    text-shadow: 0 0 18px rgba(255,255,255,.12);
}
.ht-tab-btn:hover .ht-tab-icon::before {
    opacity: .96;
    transform: scale(1);
    background:
        radial-gradient(circle at 30% 26%, rgba(255,255,255,.2), transparent 58%),
        linear-gradient(180deg, rgba(var(--ht-tab-glow),.22), rgba(var(--ht-tab-glow),.07));
    border-color: rgba(var(--ht-tab-glow),.28);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.1),
        0 10px 22px rgba(var(--ht-tab-glow),.18);
}
.ht-tab-btn:hover .ht-tab-icon svg {
    transform: translateY(-1px) scale(1.06);
    filter: drop-shadow(0 6px 14px rgba(var(--ht-tab-glow),.22));
}
.ht-tab-btn:hover::before,
.ht-tab-btn.is-active::before {
    opacity: 1;
    transform: translateY(0);
}
.ht-tab-btn.is-active {
    color: var(--ht-text);
    font-weight: 700;
    text-shadow: 0 0 22px rgba(var(--ht-tab-glow),.18);
}
.ht-tab-btn.is-active .ht-tab-icon::before {
    opacity: 1;
    transform: scale(1);
    background:
        radial-gradient(circle at 30% 26%, rgba(255,255,255,.22), transparent 58%),
        linear-gradient(180deg, rgba(var(--ht-tab-glow),.28), rgba(var(--ht-tab-glow),.08));
    border-color: rgba(var(--ht-tab-glow),.38);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.14),
        0 0 0 1px rgba(var(--ht-tab-glow),.1),
        0 12px 24px rgba(var(--ht-tab-glow),.2);
    animation: htTabIconHalo 2.8s ease-in-out infinite;
}
.ht-tab-btn.is-active .ht-tab-icon svg {
    filter: drop-shadow(0 6px 14px rgba(var(--ht-tab-glow),.24));
    animation: htTabIconFloat 2.8s ease-in-out infinite;
}
.ht-tab-btn.is-active::after { transform: scaleX(1); }
.ht-tab-btn:active .ht-tab-icon svg {
    transform: scale(.94);
}

@keyframes htTabIconFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-2px) scale(1.05); }
}

@keyframes htTabIconHalo {
    0%, 100% {
        box-shadow:
            inset 0 1px 0 rgba(255,255,255,.14),
            0 0 0 1px rgba(var(--ht-tab-glow),.1),
            0 12px 24px rgba(var(--ht-tab-glow),.18);
    }
    50% {
        box-shadow:
            inset 0 1px 0 rgba(255,255,255,.16),
            0 0 0 1px rgba(var(--ht-tab-glow),.16),
            0 16px 28px rgba(var(--ht-tab-glow),.24);
    }
}

/* =============================================================
   FILTER CHIPS
   ============================================================= */
.ht-filters {
    display: none !important;
    gap: 8px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}
.ht-filter-chip {
    background: var(--ht-bg3);
    border: 1px solid var(--ht-border);
    color: var(--ht-muted);
    font-size: .8rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: background var(--ht-ease), color var(--ht-ease), border-color var(--ht-ease);
    outline: none;
    white-space: nowrap;
}
.ht-filter-chip:hover {
    color: var(--ht-text);
    border-color: rgba(255,255,255,.2);
}
.ht-filter-chip.is-active {
    background: var(--ht-accent);
    border-color: var(--ht-accent);
    color: #fff;
}

/* =============================================================
   PANEL
   ============================================================= */
.ht-panels {
    position: relative;
    padding-top: 18px;
}

.ht-bottom-banner-slot {
    margin-top: 30px;
}

.ht-panel { display: none; }
.ht-panel.is-active {
    display: block;
    animation: htFadeIn .28s ease forwards;
}
@keyframes htFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =============================================================
   SECTION HEADER (barra izquierda rosa + título + "Ver más")
   ============================================================= */
.ht-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    margin-top: 32px;
}
.ht-section-header:first-child { margin-top: 0; }

.ht-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ht-text);
    margin: 0;
}
.ht-section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 20px;
    background: var(--ht-accent);
    border-radius: 2px;
    flex-shrink: 0;
}

.ht-section-more {
    font-size: .78rem;
    font-weight: 600;
    color: var(--ht-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    text-decoration: none;
    transition: color var(--ht-ease);
    white-space: nowrap;
}
.ht-section-more:hover { color: var(--ht-accent); }

/* =============================================================
   GRID 5 COLUMNAS
   ============================================================= */
.ht-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.ht-recommended-section {
    margin-top: 28px;
}

.ht-recommended-grid .ht-card {
    min-width: 0;
}

.ht-recommended-grid .ht-card-badges,
.ht-recommended-grid .ht-card-overlay-info,
.ht-recommended-grid .ht-card-gradient {
    display: none;
}

.ht-release-deck,
.ht-recommended-section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 520px;
}

.ht-release-deck {
    position: relative;
    margin-top: 34px;
    padding: clamp(22px, 3vw, 34px);
    border-radius: 32px;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 18%, rgba(255, 188, 210, .14), transparent 28%),
        radial-gradient(circle at 84% 16%, rgba(123, 106, 255, .12), transparent 24%),
        linear-gradient(145deg, rgba(19, 16, 31, .98), rgba(13, 12, 24, .96));
    border: 1px solid rgba(255,255,255,.08);
    box-shadow:
        0 26px 60px rgba(0,0,0,.24),
        inset 0 1px 0 rgba(255,255,255,.06);
    isolation: isolate;
}

.ht-release-deck::before,
.ht-release-deck::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
}

.ht-release-deck::before {
    top: -72px;
    right: -52px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(251,192,214,.16) 0%, rgba(251,192,214,0) 72%);
}

.ht-release-deck::after {
    left: -54px;
    bottom: -96px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(123,106,255,.12) 0%, rgba(123,106,255,0) 76%);
}

.ht-release-deck > * {
    position: relative;
    z-index: 1;
}

.ht-release-deck-header {
    margin-top: 0;
    margin-bottom: 24px;
}

.ht-release-header-copy {
    display: grid;
    gap: 8px;
}

.ht-release-subtitle {
    margin: 0;
    color: rgba(240,240,245,.68);
    font-size: .86rem;
    line-height: 1.55;
}

.ht-release-deck-shell {
    display: grid;
    grid-template-columns: minmax(300px, 400px) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 40px);
    align-items: center;
}

.ht-release-stack-zone {
    display: grid;
    gap: 18px;
    align-content: start;
}

.ht-release-stack {
    position: relative;
    min-height: 440px;
    padding: 8px 146px 18px 14px;
}

.ht-release-card {
    --ht-release-radius: 28px;
    appearance: none;
    position: absolute;
    top: 0;
    left: 0;
    width: min(100%, 252px);
    aspect-ratio: 10 / 14;
    padding: 0;
    border: none;
    border-radius: var(--ht-release-radius);
    clip-path: inset(0 round var(--ht-release-radius));
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
    box-shadow:
        0 24px 44px rgba(0,0,0,.3),
        inset 0 1px 0 rgba(255,255,255,.08);
    cursor: pointer;
    transform-origin: 22% 78%;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    transition:
        transform .7s cubic-bezier(.22,1,.36,1),
        opacity .45s ease,
        box-shadow .35s ease,
        filter .35s ease;
}

.ht-release-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
    transform: scale(1.02);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform .8s ease;
}

.ht-release-card:hover img,
.ht-release-card:focus-visible img {
    transform: scale(1.06);
}

.ht-release-card-frame,
.ht-release-card-shade {
    position: absolute;
    left: 0;
    right: 0;
}

.ht-release-card-frame {
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255,255,255,.1);
    background:
        linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,0) 42%),
        linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0));
    pointer-events: none;
}

.ht-release-card-shade {
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(180deg, rgba(255,255,255,.02), rgba(10,8,18,.12)),
        linear-gradient(125deg, rgba(255,255,255,.04), transparent 32%);
    pointer-events: none;
}

.ht-release-card[data-depth="0"] {
    transform: translate3d(0, 0, 0) rotate(-4deg) scale(1);
    z-index: 5;
    opacity: 1;
}

.ht-release-card[data-depth="1"] {
    transform: translate3d(34px, 20px, 0) rotate(6deg) scale(.93);
    z-index: 4;
    opacity: .92;
}

.ht-release-card[data-depth="2"] {
    transform: translate3d(68px, 40px, 0) rotate(-6deg) scale(.86);
    z-index: 3;
    opacity: .76;
}

.ht-release-card[data-depth="3"] {
    transform: translate3d(102px, 62px, 0) rotate(4deg) scale(.79);
    z-index: 2;
    opacity: .56;
}

.ht-release-card[data-depth="4"] {
    transform: translate3d(132px, 84px, 0) rotate(-2deg) scale(.73);
    z-index: 1;
    opacity: .34;
}

.ht-release-card.is-active {
    box-shadow:
        0 28px 52px rgba(0,0,0,.34),
        0 0 0 1px rgba(255,255,255,.08),
        0 0 0 10px rgba(255,146,198,.04);
}

.ht-release-card:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 2px rgba(255,182,214,.44),
        0 28px 52px rgba(0,0,0,.34),
        0 0 0 10px rgba(255,146,198,.04);
}

.ht-release-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-right: 34px;
}

.ht-release-dot {
    appearance: none;
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    cursor: pointer;
    transition: width .24s ease, transform .24s ease, background .24s ease, box-shadow .24s ease;
}

.ht-release-dot.is-active {
    width: 32px;
    background: linear-gradient(90deg, rgba(255,168,210,.96), rgba(151,121,255,.96));
    box-shadow: 0 10px 18px rgba(151,121,255,.24);
}

.ht-release-dot:hover,
.ht-release-dot:focus-visible {
    outline: none;
    transform: translateY(-1px);
    background: rgba(255,255,255,.42);
}

.ht-release-copy {
    min-width: 0;
}

.ht-release-panel {
    display: none;
    gap: 18px;
    align-content: start;
    min-height: 418px;
    padding: clamp(22px, 3vw, 30px);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)),
        linear-gradient(145deg, rgba(23,20,37,.94), rgba(12,11,24,.92));
    border: 1px solid rgba(255,255,255,.08);
    box-shadow:
        0 22px 42px rgba(0,0,0,.2),
        inset 0 1px 0 rgba(255,255,255,.06);
}

.ht-release-panel.is-active {
    display: grid;
    animation: htFadeIn .34s ease forwards;
}

.ht-release-panel-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.ht-release-kicker,
.ht-release-date {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
}

.ht-release-kicker {
    padding: 0 12px;
    color: #ffe8f6;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: rgba(255,133,196,.14);
    border: 1px solid rgba(255,133,196,.18);
}

.ht-release-date {
    padding: 0 10px;
    color: rgba(240,240,245,.66);
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
}

.ht-release-title {
    margin: 0;
    color: #fff;
    font-size: clamp(1.7rem, 3.6vw, 2.7rem);
    line-height: 1.06;
    letter-spacing: -.02em;
}

.ht-release-tags,
.ht-release-genres,
.ht-release-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ht-release-tag,
.ht-release-genre {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 13px;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 700;
    line-height: 1;
}

.ht-release-tag {
    color: #fff;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.09);
}

.ht-release-tag.is-type {
    background: rgba(129,145,255,.14);
    border-color: rgba(129,145,255,.24);
}

.ht-release-tag.is-status {
    background: rgba(117,225,179,.12);
    border-color: rgba(117,225,179,.2);
}

.ht-release-tag.is-chapter {
    background: rgba(255,183,117,.12);
    border-color: rgba(255,183,117,.2);
}

.ht-release-genre {
    color: rgba(255,255,255,.84);
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.07);
}

.ht-release-excerpt {
    margin: 0;
    max-width: 62ch;
    color: rgba(240,240,245,.74);
    font-size: .96rem;
    line-height: 1.74;
}

.ht-release-actions {
    margin-top: auto;
    padding-top: 6px;
}

.ht-release-read,
.ht-release-bookmark {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 22px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.1);
    text-decoration: none;
    color: #fff;
    font-size: .92rem;
    font-weight: 800;
    transition:
        transform .22s ease,
        box-shadow .22s ease,
        background .22s ease,
        border-color .22s ease,
        color .22s ease;
}

.ht-release-read {
    background: linear-gradient(135deg, #f09dc9 0%, #a06ef8 100%);
    box-shadow: 0 18px 30px rgba(160,110,248,.2);
}

.ht-release-bookmark {
    background: rgba(255,255,255,.04);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
    cursor: pointer;
}

.ht-release-bookmark.is-marked {
    background: linear-gradient(135deg, rgba(255,185,133,.16), rgba(255,140,194,.14));
    border-color: rgba(255,168,191,.22);
    color: #fff1f6;
}

.ht-release-read:hover,
.ht-release-read:focus-visible,
.ht-release-bookmark:hover,
.ht-release-bookmark:focus-visible {
    transform: translateY(-2px);
    outline: none;
}

.ht-release-read:hover,
.ht-release-read:focus-visible {
    box-shadow: 0 22px 34px rgba(160,110,248,.28);
}

.ht-release-bookmark:hover,
.ht-release-bookmark:focus-visible {
    border-color: rgba(255,255,255,.18);
    box-shadow: 0 16px 28px rgba(0,0,0,.14);
}

.ht-release-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    font-size: 1rem;
}

/* =============================================================
   CARD — Imagen + overlay + géneros
   ============================================================= */
.ht-card {
    --ht-card-glass-line: rgba(255,255,255,.1);
    --ht-card-glass-fill: rgba(18,16,27,.62);
    position: relative;
    border-radius: var(--ht-radius);
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)),
        var(--ht-bg2);
    border: 1px solid rgba(255,255,255,.08);
    display: flex;
    flex-direction: column;
    isolation: isolate;
    box-shadow:
        0 16px 34px rgba(0,0,0,.22),
        inset 0 1px 0 rgba(255,255,255,.08);
    transition:
        transform .26s cubic-bezier(.22,1,.36,1),
        box-shadow .26s ease,
        border-color .24s ease,
        filter .24s ease;
    cursor: pointer;
}
.ht-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(122deg, rgba(255,255,255,.16), rgba(255,255,255,.05) 24%, rgba(255,255,255,0) 52%, rgba(220,180,209,.12) 78%, rgba(255,255,255,.05) 100%),
        radial-gradient(circle at 50% 0, rgba(215,159,193,.16), transparent 64%);
    opacity: .34;
    transform: none;
    transition: opacity .28s ease, transform .32s cubic-bezier(.22,1,.36,1);
    pointer-events: none;
}
.ht-card::after {
    content: '';
    position: absolute;
    inset: -26% auto -18% -88%;
    width: 58%;
    z-index: 1;
    background: linear-gradient(112deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.08) 22%, rgba(255,255,255,.52) 48%, rgba(255,224,238,.24) 58%, rgba(255,255,255,0) 78%);
    opacity: 0;
    transform: rotate(13deg) translate3d(-220%, 0, 0);
    pointer-events: none;
}

/* Enlace invisible sobre la card completa */
.ht-card-link {
    position: absolute;
    inset: 0;
    z-index: 3;
    outline: none;
}

/* ── Imagen ── */
.ht-card-thumb {
    position: relative;
    padding-top: 145%;   /* ratio portrait ~2:3 */
    overflow: hidden;
    flex-shrink: 0;
    isolation: isolate;
    z-index: 1;
}
.ht-card-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.03) 18%, rgba(255,255,255,0) 38%),
        linear-gradient(135deg, rgba(206,187,220,.12), transparent 36%, transparent 74%, rgba(255,255,255,.08));
    opacity: .34;
    transition: opacity .24s ease;
    pointer-events: none;
}
.ht-card-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .46s cubic-bezier(.22,1,.36,1), filter .26s ease;
}

/* ── Gradiente inferior (para leer el título sobre la imagen) ── */
.ht-card-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65%;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(10,8,18,.65) 40%,
        rgba(10,8,18,.96) 100%);
    pointer-events: none;
    transition: opacity .28s ease, transform .32s cubic-bezier(.22,1,.36,1);
}

/* ── Info sobreimpuesta en la imagen ── */
.ht-card-overlay-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 10px 8px;
    z-index: 2;
    isolation: isolate;
    transition: transform .26s cubic-bezier(.22,1,.36,1), opacity .24s ease;
}
.ht-card-overlay-info::before {
    content: none;
}
.ht-card-overlay-info > * {
    position: relative;
    z-index: 1;
}
.ht-card-title {
    font-size: .8rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
    text-shadow: 0 1px 4px rgba(0,0,0,.6);
    transition: transform .24s ease, text-shadow .24s ease;
}

.ht-card-chapter {
    font-size: .68rem;
    font-weight: 700;
    color: rgba(255,255,255,.78);
    letter-spacing: .02em;
    text-shadow: 0 1px 4px rgba(0,0,0,.58);
    transition: transform .22s ease, color .22s ease;
}

/* ── Géneros (bajo la imagen, fondo sólido) ── */
.ht-card-genres {
    position: relative;
    z-index: 2;
    padding: 6px 10px 8px;
    font-size: .7rem;
    color: var(--ht-muted);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-top: 1px solid rgba(255,255,255,.06);
    background:
        linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)),
        linear-gradient(180deg, rgba(22,20,31,.88), rgba(15,14,22,.96));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
    transition: color .22s ease, background .22s ease, border-color .22s ease, box-shadow .24s ease;
}
.ht-card-genres::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.08), transparent 58%);
    opacity: .52;
    pointer-events: none;
    transition: opacity .22s ease;
}

/* ── Badges (esquina sup-izq) ── */
.ht-card-badges {
    position: absolute;
    top: 7px;
    left: 7px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: transform .24s ease;
}
.ht-badge-pill {
    display: inline-block;
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 3px;
    line-height: 1.5;
    backdrop-filter: blur(4px);
}
.ht-badge-pill.is-new      { background: #f5c518; color: #111; }
.ht-badge-pill.is-complete { background: #4caf50; color: #fff; }
.ht-badge-pill.is-free     { background: #2196f3; color: #fff; }
.ht-badge-pill.is-popular  { background: var(--ht-accent); color: #fff; }
.ht-badge-pill.is-hot      { background: #ff5722; color: #fff; }
.ht-badge-pill.is-type     { background: rgba(0,0,0,.65); color: #ddd; border: 1px solid rgba(255,255,255,.15); }
.ht-badge-pill.is-free     { font-size: .54rem; letter-spacing: .03em; }

@keyframes htCardGlassSweep {
    0% {
        opacity: 0;
        transform: rotate(13deg) translate3d(-220%, 0, 0);
    }
    14% {
        opacity: .28;
    }
    34% {
        opacity: .96;
    }
    100% {
        opacity: 0;
        transform: rotate(13deg) translate3d(340%, 0, 0);
    }
}

@media (hover:hover) {
    .ht-card:hover,
    .ht-card:focus-within {
        transform: translateY(-8px) scale(1.022);
        border-color: rgba(225,189,214,.26);
        box-shadow:
            0 24px 44px rgba(0,0,0,.3),
            0 0 34px rgba(199,138,172,.2),
            0 0 68px rgba(143,115,159,.14),
            0 0 0 1px rgba(255,255,255,.08) inset;
        filter: saturate(1.03);
        z-index: 2;
    }

    .ht-card:hover::before,
    .ht-card:focus-within::before {
        opacity: .7;
        transform: none;
    }

    .ht-card:hover::after,
    .ht-card:focus-within::after {
        animation: htCardGlassSweep .88s cubic-bezier(.22,1,.36,1) 1;
    }

    .ht-card:hover .ht-card-thumb::before,
    .ht-card:focus-within .ht-card-thumb::before {
        opacity: .56;
    }

    .ht-card:hover .ht-card-thumb img,
    .ht-card:focus-within .ht-card-thumb img {
        transform: scale(1.09);
        filter: saturate(1.05) brightness(1.04);
    }

    .ht-card:hover .ht-card-gradient,
    .ht-card:focus-within .ht-card-gradient {
        opacity: .96;
        transform: scaleY(1.04);
    }

    .ht-card:hover .ht-card-overlay-info,
    .ht-card:focus-within .ht-card-overlay-info {
        transform: translateY(-3px);
    }

    .ht-card:hover .ht-card-title,
    .ht-card:focus-within .ht-card-title {
        transform: translateY(-2px);
        text-shadow: 0 12px 24px rgba(0,0,0,.3);
    }

    .ht-card:hover .ht-card-chapter,
    .ht-card:focus-within .ht-card-chapter {
        transform: translateY(-1px);
        color: rgba(255,255,255,.94);
    }

    .ht-card:hover .ht-card-genres,
    .ht-card:focus-within .ht-card-genres {
        color: rgba(255,255,255,.76);
        border-top-color: rgba(255,255,255,.11);
        background:
            linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)),
            linear-gradient(180deg, rgba(28,24,38,.96), rgba(18,17,26,.98));
        box-shadow:
            inset 0 1px 0 rgba(255,255,255,.07),
            0 -12px 22px rgba(12,10,18,.12);
    }

    .ht-card:hover .ht-card-genres::before,
    .ht-card:focus-within .ht-card-genres::before {
        opacity: .82;
    }

    .ht-card:hover .ht-card-badges,
    .ht-card:focus-within .ht-card-badges {
        transform: translateY(-2px);
    }
}

/* =============================================================
   RANKING POPULAR
   ============================================================= */
.ht-popular-ranking {
    position: relative;
    margin: 0 auto 28px;
    padding: 34px 34px 30px;
    border-radius: 30px;
    background: transparent;
    border: 1px solid rgba(255,255,255,.04);
    box-shadow: none;
    overflow: visible;
}

.ht-popular-ranking::before {
    display: none;
}

.ht-popular-ranking-shell,
.ht-popular-ranking-panel {
    position: relative;
    z-index: 1;
}

.ht-popular-ranking-shell {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-bottom: 20px;
    padding: 2px 2px 0;
}

.ht-popular-ranking-copy {
    display: none;
}

.ht-popular-ranking-kicker,
.ht-popular-ranking-panel-kicker {
    display: none;
}

.ht-popular-ranking-title {
    display: none;
}

.ht-popular-ranking-text {
    display: none;
}

.ht-popular-ranking-head {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding-top: 2px;
    width: 100%;
}

.ht-popular-ranking-tabs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 18px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(10px);
}

.ht-popular-ranking-tab {
    border: none;
    background: transparent;
    color: var(--ht-muted);
    font-size: .82rem;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 14px;
    cursor: pointer;
    transition: background var(--ht-ease), color var(--ht-ease), transform var(--ht-ease), box-shadow var(--ht-ease);
}

.ht-popular-ranking-tab:hover {
    color: var(--ht-text);
    transform: translateY(-1px);
}

.ht-popular-ranking-tab.is-active {
    color: #fff;
    background: linear-gradient(135deg, rgba(255,130,197,.94), rgba(233,30,140,.94));
    box-shadow: 0 12px 24px rgba(233,30,140,.22);
}

.ht-popular-ranking-badge,
.ht-popular-ranking-panel-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.04);
    color: #fff;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ht-popular-ranking-more {
    display: none !important;
}

.ht-popular-ranking-more:hover {
    display: none;
}

.ht-popular-ranking-more span {
    display: none;
}

.ht-popular-ranking-panel {
    display: none;
    padding: 2px 2px 0;
}

.ht-popular-ranking-panel.is-active {
    display: block;
    animation: htFadeIn .28s ease forwards;
}

.ht-popular-ranking-panel-top {
    display: none;
}

.ht-popular-ranking-panel-copy {
    display: none;
}

.ht-popular-ranking-panel-title {
    display: none;
}

.ht-popular-ranking-panel-text {
    display: none;
}

.ht-popular-ranking-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(5, minmax(0, auto));
    grid-auto-flow: column;
    gap: 14px 18px;
    align-items: stretch;
}

.ht-popular-ranking-grid[data-count="10"] .ht-popular-ranking-item:nth-child(9) {
    grid-column: auto;
}

.ht-popular-ranking-grid[data-count="10"] .ht-popular-ranking-item:nth-child(10) {
    grid-column: auto;
}

.ht-popular-ranking-item {
    position: relative;
    display: grid;
    grid-template-columns: 54px 86px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 118px;
    padding: 12px 14px 12px 12px;
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.07);
    box-shadow: 0 16px 34px rgba(0,0,0,.2);
    overflow: hidden;
    transition: transform var(--ht-ease), box-shadow var(--ht-ease), border-color var(--ht-ease);
}

.ht-popular-ranking-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(255,255,255,.05), transparent 32%);
    opacity: .8;
    pointer-events: none;
}

.ht-popular-ranking-item:hover {
    transform: translateY(-4px);
    border-color: rgba(233,30,140,.28);
    box-shadow: 0 20px 40px rgba(0,0,0,.28);
}

.ht-popular-ranking-item > * {
    position: relative;
    z-index: 1;
}

.ht-popular-ranking-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    top: auto;
    left: auto;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    color: #fff;
    font-size: .84rem;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.ht-popular-ranking-item.is-rank-1 .ht-popular-ranking-no {
    background: linear-gradient(135deg, #ff8ed1 0%, #e91e8c 100%);
}

.ht-popular-ranking-item.is-rank-2 .ht-popular-ranking-no {
    background: linear-gradient(135deg, #8d7cff 0%, #5d42f6 100%);
}

.ht-popular-ranking-item.is-rank-3 .ht-popular-ranking-no {
    background: linear-gradient(135deg, #ffb36b 0%, #ff8b36 100%);
}

.ht-popular-ranking-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    max-width: 86px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 28px rgba(0,0,0,.22);
}

.ht-popular-ranking-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ht-popular-ranking-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    align-self: stretch;
    padding-block: 2px;
}

.ht-popular-ranking-name {
    display: -webkit-box;
    overflow: hidden;
    color: #fff;
    font-size: .92rem;
    font-weight: 800;
    line-height: 1.24;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 0;
}

.ht-popular-ranking-meta {
    display: -webkit-box;
    color: rgba(255,255,255,.68);
    font-size: .74rem;
    font-weight: 600;
    line-height: 1.35;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ht-popular-ranking-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.ht-popular-ranking-pill,
.ht-popular-ranking-score {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ht-popular-ranking-pill {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.82);
}

.ht-popular-ranking-score {
    background: rgba(255,194,66,.12);
    border: 1px solid rgba(255,194,66,.22);
    color: #ffd46b;
}

.ht-popular-ranking-score i {
    font-size: .72rem;
}

.ht-popular-ranking-empty {
    padding: 26px 20px;
    border-radius: 20px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    color: rgba(255,255,255,.68);
    text-align: center;
    font-size: .88rem;
}

/* =============================================================
   SKELETON
   ============================================================= */
.ht-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}
.ht-skeleton-card {
    border-radius: var(--ht-radius);
    overflow: hidden;
    background: var(--ht-bg2);
}
.ht-skeleton-thumb {
    padding-top: 145%;
    background: linear-gradient(90deg, var(--ht-bg2) 25%, var(--ht-bg3) 50%, var(--ht-bg2) 75%);
    background-size: 200% 100%;
    animation: htShimmer 1.5s infinite linear;
}
.ht-skeleton-foot {
    height: 28px;
    background: linear-gradient(90deg, var(--ht-bg2) 25%, var(--ht-bg3) 50%, var(--ht-bg2) 75%);
    background-size: 200% 100%;
    animation: htShimmer 1.5s infinite linear;
}
@keyframes htShimmer {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}

/* =============================================================
   PAGINACIÓN — círculos numerados
   ============================================================= */
.ht-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.ht-page-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.06);
    background: var(--ht-bg3);
    color: var(--ht-muted);
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--ht-ease), color var(--ht-ease), border-color var(--ht-ease), box-shadow var(--ht-ease);
    outline: none;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.ht-page-btn:hover:not(:disabled) {
    background: rgba(191,151,201,.16);
    border-color: rgba(191,151,201,.22);
    color: var(--ht-text);
    box-shadow: 0 10px 18px rgba(12,10,18,.14), inset 0 1px 0 rgba(255,255,255,.06);
}
.ht-page-btn.is-active {
    background: linear-gradient(135deg, #c78aac 0%, #8f739f 100%);
    border-color: rgba(255,255,255,.06);
    color: #fff;
    box-shadow: 0 12px 22px rgba(143,115,159,.24), inset 0 1px 0 rgba(255,255,255,.08);
}
.ht-page-btn.is-active:hover:not(:disabled) {
    background: linear-gradient(135deg, #cf93b3 0%, #987aa8 100%);
    color: #fff;
}
.ht-page-btn:disabled  { opacity: .3; cursor: not-allowed; }

/* Botones prev/next con forma de pill */
.ht-page-prev,
.ht-page-next,
.ht-page-siguiente {
    width: auto !important;
    border-radius: 20px !important;
    padding: 0 16px !important;
    font-size: .78rem !important;
    letter-spacing: .06em !important;
    text-transform: uppercase !important;
}
.ht-page-siguiente {
    background: linear-gradient(135deg, #c78aac 0%, #8f739f 100%) !important;
    border-color: rgba(255,255,255,.06) !important;
    color: #fff !important;
    box-shadow: 0 14px 24px rgba(143,115,159,.22), inset 0 1px 0 rgba(255,255,255,.08) !important;
}
.ht-page-siguiente:hover:not(:disabled) {
    background: linear-gradient(135deg, #cf93b3 0%, #987aa8 100%) !important;
    color: #fff !important;
}
.ht-page-dots {
    color: var(--ht-muted);
    font-size: .82rem;
    padding: 0 2px;
    user-select: none;
}

/* =============================================================
   BOTÓN VER MÁS (Descubrir)
   ============================================================= */
.ht-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}
.ht-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    border: 1.5px solid var(--ht-accent);
    border-radius: 22px;
    background: transparent;
    color: var(--ht-accent);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--ht-ease), color var(--ht-ease);
    outline: none;
}
.ht-load-more-btn:hover { background: var(--ht-accent); color: #fff; }
.ht-load-more-btn .ht-spin { display: none; }
.ht-load-more-btn.is-loading .ht-spin {
    display: block;
    width: 14px; height: 14px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: htSpin .7s linear infinite;
}
.ht-load-more-btn.is-loading .ht-spin-label { display: none; }
@keyframes htSpin { to { transform: rotate(360deg); } }

/* =============================================================
   ESTADO VACÍO / ERROR
   ============================================================= */
.ht-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--ht-muted);
    font-size: .92rem;
}
.ht-empty i { font-size: 2.4rem; display: block; margin-bottom: 12px; opacity: .4; }

/* Spinner overlay */
.ht-spinner {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 10;
    align-items: center;
    justify-content: center;
}
.ht-spinner.is-visible { display: flex; }
.ht-spinner-ring {
    width: 36px; height: 36px;
    border: 3px solid var(--ht-border);
    border-top-color: var(--ht-accent);
    border-radius: 50%;
    animation: htSpin .8s linear infinite;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1100px) {
    .ht-grid, .ht-skeleton-grid { grid-template-columns: repeat(4, 1fr); }
    .ht-release-deck-shell {
        grid-template-columns: minmax(280px, 350px) minmax(0, 1fr);
        gap: 24px;
    }
    .ht-release-stack {
        min-height: 410px;
        padding-right: 118px;
    }
    .ht-release-panel {
        min-height: 394px;
    }
}
@media (max-width: 820px) {
    .ht-panels { padding-top: 16px; }
    .ht-grid, .ht-skeleton-grid { grid-template-columns: repeat(3, 1fr); }
    .ht-recommended-section { margin-top: 24px; }
    .ht-release-deck,
    .ht-recommended-section {
        contain-intrinsic-size: 1px 440px;
    }
    .ht-release-deck {
        margin-top: 26px;
        padding: 22px 18px;
        border-radius: 26px;
    }
    .ht-release-deck-header {
        margin-bottom: 18px;
    }
    .ht-release-deck-shell {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .ht-release-stack {
        width: min(100%, 320px);
        min-height: 360px;
        margin: 0 auto;
        padding: 4px 92px 14px 6px;
    }
    .ht-release-dots {
        padding-right: 0;
    }
    .ht-release-panel {
        min-height: 0;
        padding: 22px 18px;
        border-radius: 22px;
    }
    .ht-release-title {
        font-size: clamp(1.55rem, 5.2vw, 2.2rem);
    }
    .ht-home-banner-placeholder { min-height: 260px; }
    .ht-icon-shortcuts {
        width: min(100%, 700px);
        margin-bottom: 20px;
    }
    .ht-icon-shortcut-badge {
        width: 78px;
        height: 78px;
    }
    .ht-tab-btn { min-width: 92px; padding-inline: 14px; gap: 8px; }
    .ht-tab-icon {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }
    .ht-tab-icon svg {
        width: 16px;
        height: 16px;
    }
    .ht-popular-ranking {
        padding: 24px 20px 18px;
        border-radius: 22px;
    }
    .ht-popular-ranking-shell,
    .ht-popular-ranking-panel-top {
        flex-direction: column;
        align-items: stretch;
    }
    .ht-popular-ranking-head {
        justify-content: space-between;
    }
    .ht-popular-ranking-badge,
    .ht-popular-ranking-panel-count,
    .ht-popular-ranking-more {
        width: fit-content;
    }
    .ht-popular-ranking-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(5, minmax(0, auto));
        grid-auto-flow: column;
        gap: 12px;
    }
    .ht-popular-ranking-grid[data-count="10"] .ht-popular-ranking-item:nth-child(9),
    .ht-popular-ranking-grid[data-count="10"] .ht-popular-ranking-item:nth-child(10) {
        grid-column: auto;
    }
    .ht-popular-ranking-item {
        grid-template-columns: 48px 76px minmax(0, 1fr);
        min-height: 108px;
        gap: 11px;
        padding: 11px 12px 11px 11px;
    }
    .ht-popular-ranking-no {
        width: 48px;
        height: 48px;
        border-radius: 15px;
        font-size: .78rem;
    }
    .ht-popular-ranking-thumb {
        max-width: 76px;
        border-radius: 14px;
    }
    .ht-popular-ranking-name {
        font-size: .86rem;
    }
    .ht-popular-ranking-meta {
        font-size: .71rem;
    }
}
@media (max-width: 560px) {
    .ht-grid, .ht-skeleton-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .ht-release-deck,
    .ht-recommended-section {
        contain-intrinsic-size: 1px 360px;
    }
    .ht-release-deck {
        padding: 18px 14px;
        border-radius: 22px;
    }
    .ht-release-subtitle {
        font-size: .78rem;
    }
    .ht-release-stack {
        width: min(100%, 272px);
        min-height: 344px;
        padding: 2px 58px 18px 2px;
    }
    .ht-release-dots {
        margin-top: 10px;
    }
    .ht-release-card {
        --ht-release-radius: 22px;
        width: min(100%, 206px);
        border-radius: var(--ht-release-radius);
    }
    .ht-release-card[data-depth="0"] {
        transform: translate3d(0, 0, 0) rotate(-4deg) scale(1);
    }
    .ht-release-card[data-depth="1"] {
        transform: translate3d(20px, 14px, 0) rotate(6deg) scale(.93);
    }
    .ht-release-card[data-depth="2"] {
        transform: translate3d(40px, 28px, 0) rotate(-6deg) scale(.86);
    }
    .ht-release-card[data-depth="3"] {
        transform: translate3d(58px, 42px, 0) rotate(4deg) scale(.8);
    }
    .ht-release-card[data-depth="4"] {
        transform: translate3d(74px, 56px, 0) rotate(-2deg) scale(.74);
    }
    .ht-release-dot.is-active {
        width: 24px;
    }
    .ht-release-panel {
        gap: 14px;
        padding: 18px 14px;
        border-radius: 20px;
    }
    .ht-release-kicker,
    .ht-release-date,
    .ht-release-tag,
    .ht-release-genre {
        font-size: .68rem;
    }
    .ht-release-title {
        font-size: 1.4rem;
    }
    .ht-release-excerpt {
        font-size: .9rem;
        line-height: 1.66;
    }
    .ht-release-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
    .ht-release-read,
    .ht-release-bookmark {
        width: 100%;
    }
    .ht-recommended-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        padding-bottom: 4px;
        scroll-snap-type: x proximity;
        scroll-padding-inline: 2px;
        scrollbar-width: thin;
        scrollbar-color: rgba(190,134,172,.45) transparent;
    }
    .ht-recommended-grid::-webkit-scrollbar { height: 7px; }
    .ht-recommended-grid::-webkit-scrollbar-track { background: transparent; }
    .ht-recommended-grid::-webkit-scrollbar-thumb {
        background: linear-gradient(90deg, rgba(217,148,188,.62), rgba(124,97,143,.72));
        border-radius: 999px;
    }
    .ht-recommended-grid .ht-card {
        flex: 0 0 calc((100% - 10px) / 2);
        min-width: calc((100% - 10px) / 2);
        scroll-snap-align: start;
    }
    .ht-tab-btn {
        min-width: 0;
        width: 100%;
        flex-direction: column;
        gap: 7px;
        padding: 10px 4px 12px;
        font-size: .66rem;
        line-height: 1.08;
        letter-spacing: .01em;
    }
    .ht-section { margin-top: 18px; padding: 0 12px 32px; border-radius: 0; }
    .ht-panels { padding-top: 14px; }
    .ht-tabs-nav {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        justify-content: stretch;
        gap: 0;
        width: 100%;
        max-width: 100%;
        padding: 0 2px;
        overflow: visible;
    }
    .ht-home-banner-slot { margin: 16px auto 22px; }
    .ht-icon-shortcuts {
        gap: 8px;
        margin: 0 auto 18px;
        padding: 0 2px;
    }
    .ht-icon-shortcut {
        gap: 8px;
        padding: 8px 4px 4px;
        border-radius: 18px;
    }
    .ht-icon-shortcut-badge {
        width: 64px;
        height: 64px;
    }
    .ht-icon-shortcut i {
        font-size: 23px;
    }
    .ht-icon-shortcut-label {
        font-size: .78rem;
    }
    .ht-icon-shortcut-note {
        font-size: .63rem;
    }
    .ht-home-banner-placeholder { min-height: 220px; border-radius: 18px; }
    .ht-home-banner-slot .lm-banner-item,
    .ht-bottom-banner-slot .lm-banner-item { border-radius: 18px; }
    .ht-tab-btn::before { inset: 4px 5px 2px; }
    .ht-tab-btn::after { left: 8px; right: 8px; }
    .ht-tab-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }
    .ht-tab-icon::before {
        border-radius: 14px;
    }
    .ht-tab-icon svg {
        width: 18px;
        height: 18px;
    }
    .ht-tab-label {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-wrap: balance;
        min-height: 2.15em;
    }
    .ht-popular-ranking {
        padding: 22px 16px 16px;
        border-radius: 20px;
    }
    .ht-popular-ranking-badge,
    .ht-popular-ranking-panel-count {
        display: none;
    }
    .ht-popular-ranking-tabs {
        width: 100%;
        justify-content: space-between;
    }
    .ht-popular-ranking-tab {
        flex: 1 1 0;
        padding: 9px 10px;
    }
    .ht-popular-ranking-more {
        width: 100%;
    }
    .ht-popular-ranking-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-auto-flow: row;
        gap: 10px;
    }
    .ht-popular-ranking-grid[data-count="10"] .ht-popular-ranking-item:nth-child(9),
    .ht-popular-ranking-grid[data-count="10"] .ht-popular-ranking-item:nth-child(10) {
        grid-column: auto;
    }
    .ht-popular-ranking-item {
        grid-template-columns: 44px 68px minmax(0, 1fr);
        min-height: 96px;
        gap: 10px;
        padding: 10px;
        border-radius: 18px;
    }
    .ht-popular-ranking-no,
    .ht-popular-ranking-item.is-top .ht-popular-ranking-no {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        font-size: .72rem;
    }
    .ht-popular-ranking-thumb,
    .ht-popular-ranking-item.is-top .ht-popular-ranking-thumb {
        max-width: 68px;
        border-radius: 14px;
    }
    .ht-popular-ranking-name,
    .ht-popular-ranking-item.is-top .ht-popular-ranking-name {
        font-size: .84rem;
    }
    .ht-popular-ranking-meta,
    .ht-popular-ranking-item.is-top .ht-popular-ranking-meta {
        font-size: .7rem;
    }
}

@media (max-width: 390px) {
    .ht-icon-shortcut-badge {
        width: 58px;
        height: 58px;
    }

    .ht-icon-shortcut i {
        font-size: 21px;
    }

    .ht-icon-shortcut-label {
        font-size: .72rem;
    }

    .ht-icon-shortcut-note {
        font-size: .59rem;
    }

    .ht-tab-btn {
        font-size: .62rem;
        padding-inline: 2px;
    }

    .ht-tab-icon {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .ht-tab-icon svg {
        width: 17px;
        height: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ht-icon-shortcut,
    .ht-icon-shortcut::before,
    .ht-icon-shortcut-badge,
    .ht-icon-shortcut-badge::before,
    .ht-icon-shortcut i,
    .ht-tab-btn,
    .ht-tab-btn::before,
    .ht-tab-btn::after,
    .ht-tab-icon::before,
    .ht-tab-icon svg,
    .ht-card,
    .ht-card::before,
    .ht-card::after,
    .ht-card-thumb::before,
    .ht-card-thumb img,
    .ht-card-gradient,
    .ht-card-overlay-info,
    .ht-card-title,
    .ht-card-chapter,
    .ht-card-genres,
    .ht-card-genres::before,
    .ht-card-badges,
    .ht-release-card,
    .ht-release-card img,
    .ht-release-dot,
    .ht-release-panel,
    .ht-release-read,
    .ht-release-bookmark {
        animation: none !important;
        transition: none !important;
    }
}
