/*
 * Indie Portal Single Game Consolidated Styles
 *
 * This file consolidates former game-page.css + game-single.css for performance.
 * Do not edit the deprecated files; edit this file instead.
 */

/* ===== Former: game-page.css (subset used by single + archive) ===== */
/**
 * Indie Portal - Single Game Page
 * Apple × Netflix Design
 * @since 1.0.0
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */
.ipx-game {
    --ipx-bg: #0d0d0d;
    --ipx-surface: #1a1a1a;
    --ipx-surface-2: #242424;
    --ipx-text: #f5f5f7;
    --ipx-text-2: #a1a1a6;
    --ipx-text-3: #6e6e73;
    --ipx-accent: var(--ip-primary);
    --ipx-accent-glow: rgba(200, 42, 239, 0.4);
    /* WoW-style rarity colors for recommendations */
    --ipx-rec-skip: #9d9d9d;      /* Grey - Poor/Common */
    --ipx-rec-play: #1eff00;      /* Green - Uncommon */
    --ipx-rec-complete: #ff8000;  /* Orange - Legendary */
    /* Legacy colors */
    --ipx-green: #30d158;
    --ipx-yellow: #ffd60a;
    --ipx-red: #ff453a;
    --ipx-border: rgba(255,255,255,0.1);
    --ipx-border-2: rgba(255,255,255,0.2);
    --ipx-radius: 12px;
    --ipx-radius-sm: 8px;
    --ipx-shadow: 0 8px 32px rgba(0,0,0,0.4);
    --ipx-transition: 0.2s ease;
}

/* ==========================================================================
   BASE
   ========================================================================== */
.ipx-game {
    background: var(--ipx-bg);
    color: var(--ipx-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.ipx-game *, .ipx-game *::before, .ipx-game *::after {
    box-sizing: border-box;
}

.ipx-game a {
    color: inherit;
    text-decoration: none;
    transition: color var(--ipx-transition);
}

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

/* ==========================================================================
   HERO
   ========================================================================== */
.ipx-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: flex-end;
    overflow: visible;
}

.ipx-hero-backdrop {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.ipx-hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0.6;
}

.ipx-hero-no-image {
    background: linear-gradient(135deg, #1a1a2e, #0d0d0d);
}

.ipx-hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(to top, var(--ipx-bg) 0%, transparent 60%),
        linear-gradient(to right, rgba(13,13,13,0.9) 0%, transparent 50%);
}

.ipx-hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 60px 40px;
}

.ipx-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
    align-items: end;
}

/* Poster */
.ipx-poster-wrap {
    position: relative;
}

.ipx-poster {
    width: 220px;
    height: 300px;
    object-fit: cover;
    border-radius: var(--ipx-radius);
    box-shadow: var(--ipx-shadow);
}

.ipx-poster-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ipx-surface);
    border: 1px solid var(--ipx-border);
    font-size: 64px;
}

/* Hero Info */
.ipx-hero-info {
    padding-bottom: 10px;
}

.ipx-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ipx-text-2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.ipx-meta-line span:not(:last-child)::after {
    content: '·';
    margin-left: 12px;
    opacity: 0.5;
}

.ipx-status-badge {
    background: var(--ipx-accent);
    color: #fff;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 11px;
}

.ipx-status-badge::after { display: none !important; }

.ipx-rating-badge {
    border: 1px solid var(--ipx-border-2);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.ipx-rating-badge::after { display: none !important; }

.ipx-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.ipx-creators {
    font-size: 16px;
    color: var(--ipx-text-2);
    margin-bottom: 12px;
}

.ipx-creators a {
    color: var(--ipx-text);
    font-weight: 500;
}

.ipx-synopsis {
    font-size: 17px;
    color: var(--ipx-text-2);
    max-width: 550px;
    margin: 0 0 20px;
    line-height: 1.6;
}

/* Review Summary */
.ipx-review-summary {
    margin-bottom: 24px;
    max-width: 400px;
}

.ipx-rating-bar {
    height: 6px;
    background: var(--ipx-surface);
    border-radius: 3px;
    display: flex;
    overflow: hidden;
    margin-bottom: 8px;
}

.ipx-bar-complete { background: var(--ipx-rec-complete); }
.ipx-bar-play { background: var(--ipx-rec-play); }
.ipx-bar-skip { background: var(--ipx-rec-skip); }

.ipx-rating-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: var(--ipx-text-3);
}

.ipx-legend-complete { color: var(--ipx-rec-complete); }
.ipx-legend-play { color: var(--ipx-rec-play); }
.ipx-legend-skip { color: var(--ipx-rec-skip); }

.ipx-reviews-link {
    color: var(--ipx-accent) !important;
    font-weight: 500;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.ipx-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.ipx-secondary-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.ipx-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--ipx-radius);
    border: none;
    cursor: pointer;
    transition: all var(--ipx-transition);
}

.ipx-btn-icon {
    font-size: 14px;
}

.ipx-btn-primary {
    background: linear-gradient(135deg, var(--ipx-accent), #9b1fd1);
    color: #fff;
    box-shadow: 0 4px 20px var(--ipx-accent-glow);
}

.ipx-btn-primary:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 30px var(--ipx-accent-glow);
    color: #fff;
}

.ipx-btn-secondary {
    background: rgba(255,255,255,0.1);
    color: var(--ipx-text);
    border: 1px solid var(--ipx-border);
    backdrop-filter: blur(10px);
}

.ipx-btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    color: var(--ipx-text);
}

.ipx-btn-outline {
    background: transparent;
    color: var(--ipx-accent);
    border: 1px solid var(--ipx-accent);
    padding: 10px 20px;
    font-size: 14px;
}

.ipx-btn-outline:hover {
    background: rgba(200,42,239,0.1);
    color: var(--ipx-accent);
}

/* Wishlist states */
.ipx-wishlist-btn.in-wishlist {
    background: rgba(255,69,58,0.15);
    border-color: var(--ipx-red);
    color: var(--ipx-red);
}

.ipx-wishlist-btn.in-wishlist .ipx-heart-icon {
    fill: var(--ipx-red);
    stroke: var(--ipx-red);
}

.ipx-btn-svg {
    flex-shrink: 0;
}

.ipx-btn-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--ipx-border);
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all var(--ipx-transition);
    color: var(--ipx-text);
}

.ipx-btn-icon svg {
    flex-shrink: 0;
}

.ipx-btn-icon:hover {
    background: rgba(255,255,255,0.15);
    transform: scale(1.05);
}

.ipx-more-actions {
    position: relative;
}

/* Stores */
.ipx-stores {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ipx-stores-label {
    font-size: 13px;
    color: var(--ipx-text-3);
}

.ipx-store-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ipx-surface);
    border: 1px solid var(--ipx-border);
    border-radius: var(--ipx-radius-sm);
    font-size: 16px;
    transition: all var(--ipx-transition);
}

.ipx-store-icon:hover {
    background: var(--ipx-surface-2);
    transform: translateY(-2px);
}

/* ==========================================================================
   CONTENT
   ========================================================================== */
.ipx-content {
    background: var(--ipx-bg);
}

.ipx-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
}

.ipx-section + .ipx-section {
    border-top: 1px solid var(--ipx-border);
    padding-top: 10px;
}

/* Tighter spacing for Reviews section - must match specificity of above rule */
.ipx-section.ipx-reviews {
    padding-top: 20px;
}

/* Reduce gap between Reviews title and review list header */
.ipx-reviews .ipx-section-header {
    margin-bottom: 12px;
}

.ipx-section-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 24px;
}

.ipx-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.ipx-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ipx-text-3);
    margin: 0 0 16px;
}

/* ==========================================================================
   MEDIA
   ========================================================================== */
.ipx-trailer {
    margin-bottom: 40px;
}

.ipx-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: var(--ipx-radius);
    overflow: hidden;
    box-shadow: var(--ipx-shadow);
}

.ipx-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ipx-screenshot-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    margin: 0 -40px;
    padding-left: 40px;
    padding-right: 40px;
    scrollbar-width: none;
}

.ipx-screenshot-row::-webkit-scrollbar {
    display: none;
}

.ipx-screenshot {
    flex-shrink: 0;
    width: 380px;
    height: 214px;
    border-radius: var(--ipx-radius);
    overflow: hidden;
    transition: transform var(--ipx-transition);
}

.ipx-screenshot:hover {
    transform: scale(1.02);
}

.ipx-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.ipx-about-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    align-items: start;
}

/* Sidebar needs to be a positioned container for sticky to work */
.ipx-about-grid > .ipx-sidebar {
    position: relative;
    /* Ensure sidebar column stretches to match main content height */
    align-self: stretch;
}

/* Main column - trailer has no top margin so it aligns with sidebar */
.ipx-about-main .ipx-trailer {
    margin-top: 0;
}

.ipx-about-main .ipx-trailer .ipx-subsection-title {
    margin-top: 0;
}

.ipx-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--ipx-text-2);
}

.ipx-description p {
    margin: 0 0 1.5em;
}

.ipx-description a {
    color: var(--ipx-accent);
}

/* Inline Developer/Publisher row */
.ipx-inline-details {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 40px;
    margin-top: 24px;
    margin-bottom: 20px;
}

.ipx-inline-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ipx-inline-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ipx-text-3);
}

.ipx-inline-value {
    font-size: 15px;
    color: var(--ipx-text);
}

.ipx-inline-value a {
    color: var(--ipx-accent);
    text-decoration: none;
}

.ipx-inline-value a:hover {
    text-decoration: underline;
}

/* Detail items in main column (inline style) */
.ipx-detail-inline {
    margin-bottom: 16px;
}

.ipx-detail-inline h3 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ipx-text-3);
    margin: 0 0 6px;
}

.ipx-detail-inline p {
    font-size: 15px;
    color: var(--ipx-text);
    margin: 0;
}

.ipx-tags-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Spacer between monetization and content warning */
.ipx-detail-spacer {
    height: 24px;
}

/* Additional Details (expandable) in Column 1 */
.ipx-additional-details {
    margin-top: 8px;
}

.ipx-additional-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 16px;
    background: var(--ipx-surface);
    border: 1px solid var(--ipx-border);
    border-radius: var(--ipx-radius);
    color: var(--ipx-text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--ipx-transition);
    width: 100%;
}

.ipx-additional-toggle:hover {
    border-color: var(--ipx-accent);
    color: var(--ipx-accent);
}

.ipx-additional-toggle[aria-expanded="true"] .ipx-additional-toggle-icon {
    transform: rotate(180deg);
}

.ipx-additional-toggle-icon {
    transition: transform 0.3s ease;
}

.ipx-additional-content {
    margin-top: 16px;
    padding: 20px;
    background: var(--ipx-surface);
    border: 1px solid var(--ipx-border);
    border-radius: var(--ipx-radius);
}

/* Section groupings (Gameplay, Features) */
.ipx-additional-section {
    margin-bottom: 24px;
}

.ipx-additional-section:last-child {
    margin-bottom: 0;
}

.ipx-additional-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--ipx-text);
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--ipx-border);
}

/* Rows for inline items */
.ipx-additional-row {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 16px;
}

.ipx-additional-row:last-child {
    margin-bottom: 0;
}

.ipx-additional-item {
    flex: 1;
    min-width: 180px;
}

.ipx-additional-item h4 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ipx-text-3);
    margin: 0 0 8px;
}

.ipx-additional-item p {
    font-size: 14px;
    color: var(--ipx-text-2);
    margin: 0;
}

/* A.I. Disclosure - styled like Content Warning but grey */
.ipx-ai-disclosure {
    margin-top: 24px;
    padding: 16px 20px;
    background: rgba(128,128,128,0.1);
    border: 1px solid rgba(128,128,128,0.3);
    border-radius: var(--ipx-radius);
}

.ipx-ai-disclosure h4 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ipx-text-3);
    margin: 0 0 8px;
}

.ipx-ai-disclosure p {
    font-size: 14px;
    color: var(--ipx-text-2);
    margin: 0;
    line-height: 1.6;
}

/* Similar Games List */
.ipx-similar-games-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ipx-similar-game-tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 13px;
    color: var(--ipx-text-2);
}

/* Submitted By Section */
.ipx-submitted-by {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ipx-submitted-by-header {
    margin-bottom: 12px;
}

.ipx-submitted-by-badge {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(200, 42, 239, 0.2), rgba(200, 42, 239, 0.1));
    border: 1px solid rgba(200, 42, 239, 0.3);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ip-primary);
}

.ipx-submitted-by-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ipx-submitted-by-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(200, 42, 239, 0.3);
}

.ipx-submitted-by-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.ipx-submitted-by-info {
    flex: 1;
    min-width: 0;
}

.ipx-submitted-by-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ipx-text);
    margin-bottom: 2px;
}

.ipx-submitted-by-stats {
    display: block;
    font-size: 12px;
    color: var(--ipx-text-3);
}

.ipx-submitted-by-arrow {
    flex-shrink: 0;
    color: var(--ipx-text-3);
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s ease;
}

.ipx-submitted-by-card:hover .ipx-submitted-by-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Content Warning - OUTSIDE Additional Details, always visible */
.ipx-content-warning {
    margin-top: 24px;
    padding: 16px 20px;
    background: rgba(255,69,58,0.1);
    border: 1px solid rgba(255,69,58,0.3);
    border-radius: var(--ipx-radius);
}

.ipx-content-warning h3 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ipx-red);
    margin: 0 0 8px;
}

.ipx-content-warning p {
    font-size: 14px;
    color: var(--ipx-text-2);
    margin: 0;
    line-height: 1.6;
}

/* Price value in sidebar */
.ipx-price-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--ipx-text);
    margin: 0;
}

.ipx-disclosure {
    margin-top: 32px;
    padding: 20px;
    background: var(--ipx-surface);
    border-radius: var(--ipx-radius);
    border-left: 3px solid var(--ipx-text-3);
}

.ipx-disclosure h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ipx-text-3);
    margin: 0 0 8px;
}

.ipx-disclosure p {
    font-size: 14px;
    color: var(--ipx-text-2);
    margin: 0;
}

/* Sidebar */
.ipx-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    /* Allow full height for sticky to work properly */
    min-height: 100%;
}

/* Sticky sidebar content - scrolls within the sidebar column */
.ipx-sidebar-sticky {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* Ensure it doesn't overflow viewport */
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    /* Hide scrollbar but allow scrolling */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ipx-sidebar-sticky::-webkit-scrollbar {
    display: none;
}

.ipx-detail h3 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ipx-text-3);
    margin: 0 0 8px;
}

.ipx-detail p {
    font-size: 15px;
    color: var(--ipx-text);
    margin: 0;
}

.ipx-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ipx-tag {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    color: var(--ipx-text-2);
    background: var(--ipx-surface);
    border: 1px solid var(--ipx-border);
    border-radius: 100px;
    transition: all var(--ipx-transition);
}

a.ipx-tag:hover {
    border-color: var(--ipx-accent);
    color: var(--ipx-accent);
}

.ipx-warning {
    padding: 16px;
    background: rgba(255,69,58,0.1);
    border: 1px solid rgba(255,69,58,0.3);
    border-radius: var(--ipx-radius);
}

.ipx-warning h3 {
    color: var(--ipx-red);
}

/* Genre + Price Row */
.ipx-genre-price-row {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    flex-wrap: wrap;
}

.ipx-genre-price-row .ipx-detail-inline {
    margin-bottom: 0;
}

.ipx-detail-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ipx-detail-price h3 {
    margin: 0 !important;
}

.ipx-price-value-inline {
    font-size: 15px;
    font-weight: 600;
    color: var(--ipx-text);
}

/* Sidebar Store Buttons */
.ipx-store-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ipx-store-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--ipx-surface);
    border: 1px solid var(--ipx-border);
    border-radius: var(--ipx-radius);
    color: var(--ipx-text);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--ipx-transition);
}

.ipx-store-btn:hover {
    background: var(--ipx-surface-2);
    border-color: var(--ipx-accent);
    color: var(--ipx-text);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ipx-store-btn-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.ipx-store-btn-logo svg {
    width: 24px;
    height: 24px;
    fill: var(--ipx-text-2);
    transition: fill var(--ipx-transition);
}

.ipx-store-btn:hover .ipx-store-btn-logo svg {
    fill: var(--ipx-accent);
}

.ipx-store-btn-text {
    flex: 1;
}

.ipx-store-btn-arrow {
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity var(--ipx-transition);
}

.ipx-store-btn:hover .ipx-store-btn-arrow {
    opacity: 1;
}

/* Review CTA Button */
.ipx-review-cta-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: transparent;
    border: 2px dashed var(--ipx-border);
    border-radius: var(--ipx-radius);
    color: var(--ipx-text-2);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--ipx-transition);
    margin-top: 8px;
}

.ipx-review-cta-btn:hover {
    background: var(--ipx-surface);
    border-color: var(--ipx-accent);
    border-style: solid;
    color: var(--ipx-accent);
}

.ipx-review-cta-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: currentColor;
}

.ipx-review-cta-text {
    flex: 1;
}

/* ==========================================================================
   REVIEWS
   ========================================================================== */
.ipx-review-form {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--ipx-border);
}

.ipx-login-prompt {
    text-align: center;
    padding: 48px;
    background: var(--ipx-surface);
    border-radius: var(--ipx-radius);
    color: var(--ipx-text-2);
}

.ipx-login-prompt a {
    color: var(--ipx-accent);
    font-weight: 600;
}

/* Review List Dark Override */
.ipx-game .ip-reviews-container { color: var(--ipx-text); }
.ipx-game .ip-reviews-header { border-color: var(--ipx-border); }
.ipx-game .ip-reviews-title { color: var(--ipx-text); }
.ipx-game .ip-reviews-sort select {
    background: var(--ipx-surface);
    border: 1px solid var(--ipx-border);
    color: var(--ipx-text);
    border-radius: var(--ipx-radius-sm);
    padding: 8px 12px;
}
.ipx-game .ip-reviews-empty {
    background: var(--ipx-surface);
    color: var(--ipx-text-2);
    border-radius: var(--ipx-radius);
    padding: 48px;
}
.ipx-game .ip-review-item {
    background: var(--ipx-surface);
    border: 1px solid var(--ipx-border);
    border-radius: var(--ipx-radius);
    margin-bottom: 16px;
}
.ipx-game .ip-review-author-name { color: var(--ipx-text); }
.ipx-game .ip-review-date { color: var(--ipx-text-3); }
.ipx-game .ip-review-headline { color: var(--ipx-text); }
.ipx-game .ip-review-content { color: var(--ipx-text-2); }
.ipx-game .ip-review-meta { color: var(--ipx-text-3); border-color: var(--ipx-border); }
.ipx-game .ip-review-footer { border-color: var(--ipx-border); }
.ipx-game .ip-rec-skip { background: rgba(157,157,157,0.15); color: var(--ipx-rec-skip); }
.ipx-game .ip-rec-play { background: rgba(30,255,0,0.15); color: var(--ipx-rec-play); }
.ipx-game .ip-rec-complete { background: rgba(255,128,0,0.15); color: var(--ipx-rec-complete); }
.ipx-game .ip-voting-label { color: var(--ipx-text-2); font-weight: 500; }
.ipx-game .ip-vote-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--ipx-text);
    border-radius: var(--ipx-radius-sm);
    padding: 8px 14px;
    font-weight: 500;
}
.ipx-game .ip-vote-btn:hover { 
    background: rgba(255, 255, 255, 0.12); 
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--ipx-text); 
}
.ipx-game .ip-vote-btn.active { 
    background: rgba(200,42,239,0.2); 
    border-color: var(--ipx-accent); 
    color: var(--ipx-accent); 
}
.ipx-game .ip-review-actions-links { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}
.ipx-game .ip-review-actions-links a { color: var(--ipx-text-3); }
.ipx-game .ip-review-actions-links a:hover { color: var(--ipx-accent); }

/* Review Form Dark */
.ipx-game .ip-submit-review-form {
    background: var(--ipx-surface);
    border: 1px solid var(--ipx-border);
    border-radius: var(--ipx-radius);
    padding: 32px;
}
.ipx-game .ip-submit-review-form h3 { color: var(--ipx-text); }
.ipx-game .ip-submit-review-form label { color: var(--ipx-text); }
.ipx-game .ip-submit-review-form input,
.ipx-game .ip-submit-review-form textarea,
.ipx-game .ip-submit-review-form select {
    background: var(--ipx-bg);
    border: 1px solid var(--ipx-border);
    color: var(--ipx-text);
    border-radius: var(--ipx-radius-sm);
}
.ipx-game .ip-submit-review-form input:focus,
.ipx-game .ip-submit-review-form textarea:focus,
.ipx-game .ip-submit-review-form select:focus {
    border-color: var(--ipx-accent);
    outline: none;
}
.ipx-game .ip-submit-review-form .ip-submit-button {
    background: linear-gradient(135deg, var(--ipx-accent), #9b1fd1);
    border: none;
    color: #fff;
}



/* ==========================================================================
   Single Game: Review Editor alignment (Phases 1–6)
   Scoped to the single game page editor container.
   ========================================================================== */
.ipx-game .ip-submit-review-form.ipx-review-editor-card {
    padding: 24px;
}

.ipx-game .ipx-review-editor-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--ipx-border);
}

.ipx-game .ipx-review-editor-thumb {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--ipx-border);
    flex: 0 0 auto;
}

.ipx-game .ipx-review-editor-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ipx-game .ipx-review-editor-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.06);
}

.ipx-game .ipx-review-editor-kicker {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ipx-text-3);
    margin-bottom: 2px;
}

.ipx-game .ipx-review-editor-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
    color: var(--ipx-text);
}

.ipx-game .ipx-form-label {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ipx-text-2);
}

.ipx-game .ipx-field-hint {
    margin-top: 6px;
    font-size: 12px;
    color: var(--ipx-text-3);
}

/* Recommendation pills */
.ipx-game .ipx-rec-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.ipx-game .ipx-rec-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.06);
    color: var(--ipx-text);
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
}

.ipx-game .ipx-rec-pill .ip-rec-label {
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.02em;
}

.ipx-game .ipx-rec-pill:hover {
    border-color: rgba(255,255,255,0.26);
    background: rgba(255,255,255,0.08);
}

.ipx-game .ip-rec-btn.selected,
.ipx-game .ipx-rec-pill.selected {
    border-color: var(--ipx-accent);
    background: rgba(200,42,239,0.18);
    box-shadow: 0 0 0 2px rgba(200,42,239,0.18);
}

/* Actions row */
.ipx-game .ipx-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
    margin-top: 18px;
}

/* Live preview */
.ipx-game .ipx-review-live-preview {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--ipx-border);
}

.ipx-game .ipx-review-live-preview-title {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ipx-text-3);
    margin-bottom: 10px;
}

.ipx-game .ipx-review-preview-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--ipx-border);
    border-radius: var(--ipx-radius);
    padding: 16px;
}

.ipx-game .ipx-review-preview-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.ipx-game .ipx-review-preview-author {
    display: flex;
    gap: 10px;
    align-items: baseline;
    color: var(--ipx-text-3);
    font-size: 13px;
}

.ipx-game .ipx-review-preview-author-name {
    color: var(--ipx-text-2);
    font-weight: 600;
}

.ipx-game .ipx-review-preview-headline {
    font-size: 16px;
    font-weight: 700;
    color: var(--ipx-text);
    margin-bottom: 6px;
}

.ipx-game .ipx-review-preview-excerpt {
    font-size: 14px;
    color: var(--ipx-text-2);
    line-height: 1.45;
}

.ipx-game .ipx-review-preview-meta {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ipx-game .ipx-preview-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
    color: var(--ipx-text-2);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.ipx-game .ipx-preview-chip-warn {
    border-color: rgba(255, 214, 10, 0.35);
    background: rgba(255, 214, 10, 0.12);
}

/* Phase 6: error styling (neutral, accent-driven) */
.ipx-game .ip-submit-review-form .ip-form-messages.error {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--ipx-accent);
    color: var(--ipx-text);
}

.ipx-game .ip-submit-review-form .ip-form-messages.success {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(34,197,94,0.55);
    color: var(--ipx-text);
}

.ipx-game .ip-submit-review-form .ip-field-error input,
.ipx-game .ip-submit-review-form .ip-field-error textarea,
.ipx-game .ip-submit-review-form .ip-field-error select {
    border-color: var(--ipx-accent) !important;
    box-shadow: 0 0 0 2px rgba(200,42,239,0.16);
}

.ipx-game .ip-submit-review-form .ip-field-error-msg {
    color: var(--ipx-text-2);
    font-size: 12px;
    margin-top: 6px;
}

/* List Dropdown Dark Theme */
.ipx-game .ip-list-dropdown {
    background: var(--ipx-surface);
    border: 1px solid var(--ipx-border);
    border-radius: var(--ipx-radius);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.ipx-game .ip-list-dropdown-header {
    background: var(--ipx-bg);
    border-color: var(--ipx-border);
}

.ipx-game .ip-list-dropdown-header h4 {
    color: var(--ipx-text);
}

.ipx-game .ip-dropdown-loading {
    color: var(--ipx-text-3);
}

.ipx-game .ip-dropdown-loading::before {
    border-color: var(--ipx-border);
    border-top-color: var(--ipx-accent);
}

.ipx-game .ip-dropdown-empty {
    color: var(--ipx-text-3);
}

.ipx-game .ip-dropdown-error {
    background: rgba(255, 69, 58, 0.15);
    color: var(--ipx-red);
}

.ipx-game .ip-list-options::-webkit-scrollbar-thumb {
    background: var(--ipx-border);
}

.ipx-game .ip-list-option {
    border-left-color: transparent;
}

.ipx-game .ip-list-option:hover {
    background: var(--ipx-surface-2);
}

.ipx-game .ip-list-option.in-list {
    background: rgba(48, 209, 88, 0.1);
    border-left-color: var(--ipx-green);
}

.ipx-game .ip-list-option.in-list:hover {
    background: rgba(48, 209, 88, 0.15);
}

.ipx-game .ip-list-check {
    border-color: var(--ipx-border);
}

.ipx-game .ip-list-option.in-list .ip-list-check {
    background: var(--ipx-green);
    border-color: var(--ipx-green);
}

.ipx-game .ip-list-name {
    color: var(--ipx-text);
}

.ipx-game .ip-list-count {
    color: var(--ipx-text-3);
    background: var(--ipx-bg);
}

.ipx-game .ip-list-dropdown-footer {
    background: var(--ipx-bg);
    border-color: var(--ipx-border);
}

.ipx-game .ip-create-list-link {
    color: var(--ipx-accent);
}

.ipx-game .ip-create-list-link:hover {
    color: #d94fff;
}

/* Dropdown positioning for hero actions */
.ipx-more-actions {
    position: relative;
}

.ipx-more-actions .ip-list-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    z-index: 9999;
    min-width: 280px;
}

/* Ensure actions area doesn't clip dropdown */
.ipx-actions {
    position: relative;
    z-index: 100;
    overflow: visible;
}

.ipx-hero-info {
    overflow: visible;
}

.ipx-hero-content {
    overflow: visible;
}

.ipx-hero-inner {
    overflow: visible;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .ipx-hero-inner {
        grid-template-columns: 180px 1fr;
        gap: 30px;
    }
    .ipx-poster { width: 180px; height: 250px; }
    .ipx-about-grid { grid-template-columns: 1fr; gap: 40px; }
    .ipx-sidebar {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .ipx-hero { min-height: auto; padding-top: 50vw; }
    .ipx-hero-content { padding: 40px 20px; }
    .ipx-hero-inner { grid-template-columns: 1fr; }
    .ipx-poster-wrap { display: none; }
    .ipx-title { font-size: 2rem; }
    .ipx-actions { flex-direction: column; align-items: stretch; gap: 10px; }
    .ipx-actions > .ipx-btn-primary { width: 100%; justify-content: center; }
    .ipx-secondary-actions { 
        display: flex; 
        gap: 10px; 
        width: 100%; 
    }
    .ipx-secondary-actions .ipx-btn-secondary { 
        flex: 1; 
        justify-content: center; 
        padding: 12px 16px;
    }
    .ipx-secondary-actions .ipx-btn-icon {
        flex: 0 0 auto;
    }
    .ipx-section { padding: 40px 20px; }
    .ipx-screenshot-row { margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
    .ipx-screenshot { width: 280px; height: 158px; }
    
    /* Store buttons stack on mobile */
    .ipx-store-buttons {
        gap: 10px;
    }
    
    .ipx-store-btn {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .ipx-store-btn-logo {
        width: 20px;
        height: 20px;
    }
    
    .ipx-store-btn-logo svg {
        width: 20px;
        height: 20px;
    }
    
    /* Disable sticky on mobile */
    .ipx-sidebar-sticky {
        position: static;
    }
    
    .ipx-review-cta-btn {
        padding: 14px 16px;
        font-size: 13px;
    }
}

/* ==========================================================================
   MODAL DARK THEME
   ========================================================================== */
/* ==========================================================================
   DARK MODAL STYLES
   ========================================================================== */

/* Define dark theme variables when modal is open from game page */
body.ipx-modal-open {
    --ipx-bg: #0d0d0d;
    --ipx-surface: #1a1a1a;
    --ipx-surface-2: #252525;
    --ipx-border: #2a2a2a;
    --ipx-text: #f5f5f7;
    --ipx-text-2: rgba(245, 245, 247, 0.8);
    --ipx-text-3: rgba(245, 245, 247, 0.5);
    --ipx-accent: var(--ip-primary);
}

.ipx-game .ip-modal-overlay,
body.ipx-modal-open .ip-modal-overlay {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ipx-game .ip-modal-content,
body.ipx-modal-open .ip-modal-content {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
}

.ipx-game .ip-modal-header,
body.ipx-modal-open .ip-modal-header {
    background: #0d0d0d;
    border-color: #2a2a2a;
    flex-shrink: 0;
}

.ipx-game .ip-modal-title svg,
body.ipx-modal-open .ip-modal-title svg {
    color: var(--ip-primary);
}

.ipx-game .ip-modal-header h3,
body.ipx-modal-open .ip-modal-header h3 {
    color: #f5f5f7;
}

.ipx-game .ip-modal-close,
body.ipx-modal-open .ip-modal-close {
    color: rgba(245, 245, 247, 0.5);
}

.ipx-game .ip-modal-close:hover,
body.ipx-modal-open .ip-modal-close:hover {
    background: #252525;
    color: #f5f5f7;
}

.ipx-game .ip-modal-body,
body.ipx-modal-open .ip-modal-body {
    background: #1a1a1a;
    flex: 1;
    overflow-x: hidden;
}

.ipx-game .ip-modal-footer,
body.ipx-modal-open .ip-modal-footer {
    background: #0d0d0d;
    border-color: #2a2a2a;
    flex-shrink: 0;
}

.ipx-game .ip-form-field label,
body.ipx-modal-open .ip-form-field label {
    color: #f5f5f7;
}

.ipx-game .ip-optional,
body.ipx-modal-open .ip-optional {
    color: rgba(245, 245, 247, 0.5);
}

.ipx-game .ip-form-field input,
.ipx-game .ip-form-field select,
.ipx-game .ip-form-field textarea,
body.ipx-modal-open .ip-form-field input,
body.ipx-modal-open .ip-form-field select,
body.ipx-modal-open .ip-form-field textarea {
    background: #0d0d0d;
    border: 1px solid #2a2a2a;
    color: #f5f5f7;
}

.ipx-game .ip-form-field input::placeholder,
.ipx-game .ip-form-field textarea::placeholder,
body.ipx-modal-open .ip-form-field input::placeholder,
body.ipx-modal-open .ip-form-field textarea::placeholder {
    color: rgba(245, 245, 247, 0.4);
}

.ipx-game .ip-form-field input:focus,
.ipx-game .ip-form-field select:focus,
.ipx-game .ip-form-field textarea:focus,
body.ipx-modal-open .ip-form-field input:focus,
body.ipx-modal-open .ip-form-field select:focus,
body.ipx-modal-open .ip-form-field textarea:focus {
    border-color: var(--ip-primary);
    box-shadow: 0 0 0 3px rgba(200, 42, 239, 0.25);
    outline: none;
}

/* Checkbox Label - Dark Theme */
.ipx-game .ip-checkbox-label {
    background: #1a1a1a;
    border-color: #2a2a2a;
    color: #f5f5f7;
}

.ipx-game .ip-checkbox-label:hover {
    border-color: var(--ip-primary);
    background: rgba(200, 42, 239, 0.1);
}

.ipx-game .ip-checkbox-label input[type="checkbox"]:checked + span {
    color: var(--ip-primary);
}

/* Visibility Cards - Dark Theme */
.ipx-game .ip-visibility-card,
body.ipx-modal-open .ip-visibility-card {
    background: #0d0d0d;
    border-color: #2a2a2a;
}

.ipx-game .ip-visibility-card svg,
body.ipx-modal-open .ip-visibility-card svg {
    color: rgba(245, 245, 247, 0.5);
}

.ipx-game .ip-visibility-label,
body.ipx-modal-open .ip-visibility-label {
    color: #f5f5f7;
}

.ipx-game .ip-visibility-desc,
body.ipx-modal-open .ip-visibility-desc {
    color: rgba(245, 245, 247, 0.5);
}

.ipx-game .ip-visibility-option:hover .ip-visibility-card,
body.ipx-modal-open .ip-visibility-option:hover .ip-visibility-card {
    border-color: var(--ip-primary);
    background: rgba(200, 42, 239, 0.08);
}

.ipx-game .ip-visibility-option input:checked + .ip-visibility-card,
body.ipx-modal-open .ip-visibility-option input:checked + .ip-visibility-card {
    border-color: var(--ip-primary);
    background: rgba(200, 42, 239, 0.15);
}

.ipx-game .ip-visibility-option input:checked + .ip-visibility-card svg,
body.ipx-modal-open .ip-visibility-option input:checked + .ip-visibility-card svg {
    color: var(--ip-primary);
}

/* Buttons - Dark Theme */
.ipx-game .ip-btn-primary,
body.ipx-modal-open .ip-btn-primary {
    background: linear-gradient(135deg, var(--ip-primary), #9b1fd1);
    border: none;
    color: #fff;
    box-shadow: 0 4px 16px rgba(200, 42, 239, 0.4);
}

.ipx-game .ip-btn-primary:hover,
body.ipx-modal-open .ip-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(200, 42, 239, 0.5);
}

.ipx-game .ip-btn-secondary,
body.ipx-modal-open .ip-btn-secondary {
    background: transparent;
    border: 1px solid #2a2a2a;
    color: #f5f5f7;
}

.ipx-game .ip-btn-secondary:hover,
body.ipx-modal-open .ip-btn-secondary:hover {
    background: #252525;
    border-color: rgba(245, 245, 247, 0.3);
}

/* Spinner - Dark Theme */
.ipx-game .ip-spinner,
body.ipx-modal-open .ip-spinner {
    border-color: rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
}

/* ==========================================================================
   GAMES ARCHIVE PAGE
   ========================================================================== */

.ipx-games-archive {
    --ipx-bg: #0d0d0d;
    --ipx-surface: #1a1a1a;
    --ipx-surface-2: #242424;
    --ipx-text: #f5f5f7;
    --ipx-text-2: #a1a1a6;
    --ipx-text-3: #6e6e73;
    --ipx-accent: var(--ip-primary);
    --ipx-accent-glow: rgba(200, 42, 239, 0.4);
    --ipx-rec-skip: #9d9d9d;
    --ipx-rec-play: #1eff00;
    --ipx-rec-complete: #ff8000;
    --ipx-green: #30d158;
    --ipx-yellow: #ffd60a;
    --ipx-red: #ff453a;
    --ipx-border: rgba(255,255,255,0.1);
    --ipx-border-2: rgba(255,255,255,0.2);
    --ipx-radius: 12px;
    --ipx-radius-sm: 8px;
    --ipx-shadow: 0 8px 32px rgba(0,0,0,0.4);
    --ipx-transition: 0.2s ease;
    
    background: var(--ipx-bg);
    min-height: 100vh;
}

/* Archive Hero */
.ipx-archive-hero {
    background: linear-gradient(180deg, #1a1a1a 0%, var(--ipx-bg) 100%);
    padding: 40px 20px 60px; /* Top padding handled by theme for header offset */
    text-align: center;
}

.ipx-archive-hero-inner {
    max-width: 600px;
    margin: 0 auto;
}

.ipx-archive-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--ipx-text);
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.ipx-archive-subtitle {
    font-size: 1.1rem;
    color: var(--ipx-text-3);
    margin: 0 0 32px;
}

/* Quick Search */
.ipx-quick-search {
    max-width: 500px;
    margin: 0 auto;
}

.ipx-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.ipx-search-icon {
    position: absolute;
    left: 16px;
    color: var(--ipx-text-3);
    pointer-events: none;
}

.ipx-search-input {
    width: 100%;
    padding: 16px 48px;
    font-size: 16px;
    background: var(--ipx-surface);
    border: 1px solid var(--ipx-border);
    border-radius: 50px;
    color: var(--ipx-text);
    transition: all var(--ipx-transition);
}

.ipx-search-input::placeholder {
    color: var(--ipx-text-3);
}

.ipx-search-input:focus {
    outline: none;
    border-color: var(--ipx-accent);
    box-shadow: 0 0 0 4px rgba(200, 42, 239, 0.15);
}

.ipx-search-clear {
    position: absolute;
    right: 16px;
    padding: 4px;
    color: var(--ipx-text-3);
    transition: color var(--ipx-transition);
}

.ipx-search-clear:hover {
    color: var(--ipx-text);
}

/* Archive Container */
.ipx-archive-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* Filter Bar */
.ipx-filter-bar {
    background: var(--ipx-surface);
    border: 1px solid var(--ipx-border);
    border-radius: var(--ipx-radius);
    padding: 16px;
    margin-bottom: 32px;
}

.ipx-filter-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Filter Pills */
.ipx-filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ipx-filter-dropdown {
    position: relative;
}

.ipx-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ipx-text-2);
    background: transparent;
    border: 1px solid var(--ipx-border);
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--ipx-transition);
    white-space: nowrap;
}

.ipx-filter-pill:hover {
    border-color: var(--ipx-text-3);
    color: var(--ipx-text);
}

.ipx-filter-pill.active {
    background: rgba(200, 42, 239, 0.15);
    border-color: var(--ipx-accent);
    color: var(--ipx-text);
}

.ipx-filter-pill.active .ipx-pill-label {
    display: none;
}

.ipx-filter-pill:not(.active) .ipx-pill-value {
    display: none;
}

.ipx-pill-chevron {
    opacity: 0.6;
    transition: transform var(--ipx-transition);
}

.ipx-filter-dropdown.open .ipx-pill-chevron {
    transform: rotate(180deg);
}

/* Dropdown Panel */
.ipx-dropdown-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: var(--ipx-surface);
    border: 1px solid var(--ipx-border);
    border-radius: var(--ipx-radius);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
}

.ipx-dropdown-right {
    left: auto;
    right: 0;
}

.ipx-filter-dropdown.open .ipx-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ipx-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--ipx-border);
    font-size: 12px;
    font-weight: 600;
    color: var(--ipx-text-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ipx-dropdown-clear {
    color: var(--ipx-accent);
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

.ipx-dropdown-options {
    max-height: 280px;
    overflow-y: auto;
    padding: 8px 0;
}

.ipx-dropdown-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    color: var(--ipx-text-2);
    text-decoration: none;
    transition: all var(--ipx-transition);
}

.ipx-dropdown-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--ipx-text);
}

.ipx-dropdown-option.selected {
    background: rgba(200, 42, 239, 0.1);
    color: var(--ipx-accent);
}

.ipx-option-count {
    font-size: 12px;
    color: var(--ipx-text-3);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Filter Controls */
.ipx-filter-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ipx-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ipx-text-2);
    background: transparent;
    border: 1px solid var(--ipx-border);
    border-radius: var(--ipx-radius-sm);
    cursor: pointer;
    transition: all var(--ipx-transition);
}

.ipx-sort-btn:hover {
    border-color: var(--ipx-text-3);
    color: var(--ipx-text);
}

.ipx-results-count {
    font-size: 14px;
    color: var(--ipx-text-3);
    white-space: nowrap;
}

/* Active Filters */
.ipx-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--ipx-border);
}

.ipx-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 13px;
    color: var(--ipx-text-2);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    text-decoration: none;
    transition: all var(--ipx-transition);
}

.ipx-filter-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--ipx-text);
}

.ipx-filter-tag svg {
    opacity: 0.5;
}

.ipx-filter-tag:hover svg {
    opacity: 1;
}

.ipx-clear-all {
    color: var(--ipx-accent);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 0;
}

.ipx-clear-all:hover {
    text-decoration: underline;
}

/* Games Grid */
.ipx-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

/* Game Card */
.ipx-game-card {
    position: relative;
    background: var(--ipx-surface);
    border: 1px solid var(--ipx-border);
    border-radius: var(--ipx-radius);
    overflow: hidden;
    transition: all var(--ipx-transition);
}

.ipx-game-card:hover {
    border-color: var(--ipx-border-2);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.ipx-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.ipx-card-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--ipx-surface-2);
}

.ipx-card-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ipx-game-card:hover .ipx-card-poster {
    transform: scale(1.05);
}

.ipx-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--ipx-text-3);
}

.ipx-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    z-index: 2;
}

.ipx-badge-early_access {
    background: rgba(30, 255, 0, 0.9);
    color: #000;
}

.ipx-badge-upcoming {
    background: rgba(200, 42, 239, 0.9);
    color: #fff;
}

.ipx-badge-cancelled {
    background: rgba(100, 100, 100, 0.9);
    color: #fff;
}

/* Card status chips (footer) */
.ipx-card-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 4px;
}

.ipx-card-status svg {
    flex-shrink: 0;
}

.ipx-status-unreleased {
    background: rgba(200, 42, 239, 0.15);
    color: var(--ipx-accent);
}

.ipx-status-cancelled {
    background: rgba(100, 100, 100, 0.15);
    color: var(--ipx-text-3);
}

.ipx-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity var(--ipx-transition);
}

.ipx-game-card:hover .ipx-card-overlay {
    opacity: 1;
}

.ipx-card-view {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--ipx-accent);
    border-radius: 50px;
    transform: translateY(8px);
    transition: transform var(--ipx-transition);
}

.ipx-game-card:hover .ipx-card-view {
    transform: translateY(0);
}

.ipx-card-content {
    padding: 16px;
}

.ipx-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--ipx-text);
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ipx-card-genres {
    font-size: 12px;
    color: var(--ipx-text-3);
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ipx-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ipx-card-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--ipx-text);
}

.ipx-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ipx-rating-thumb {
    display: flex;
    align-items: center;
}

.ipx-rating-thumb.positive { color: var(--ipx-rec-play); }
.ipx-rating-thumb.mixed { color: var(--ipx-rec-skip); }
.ipx-rating-thumb.negative { color: #ff453a; }

.ipx-rating-pct {
    font-size: 12px;
    font-weight: 600;
    color: var(--ipx-text-2);
}

/* Card Actions */
.ipx-card-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(8px);
    transition: all var(--ipx-transition);
    z-index: 3;
}

.ipx-game-card:hover .ipx-card-actions {
    opacity: 1;
    transform: translateX(0);
}

.ipx-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: all var(--ipx-transition);
}

.ipx-card-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.ipx-card-btn.in-wishlist {
    color: #ff453a;
}

.ipx-card-btn.in-wishlist svg {
    fill: currentColor;
}

.ipx-add-to-list-container {
    position: relative;
}

/* Pagination */
.ipx-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--ipx-border);
}

.ipx-pagination a,
.ipx-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ipx-text-2);
    background: transparent;
    border: 1px solid var(--ipx-border);
    border-radius: var(--ipx-radius-sm);
    text-decoration: none;
    transition: all var(--ipx-transition);
}

.ipx-pagination a:hover {
    border-color: var(--ipx-accent);
    color: var(--ipx-text);
}

.ipx-pagination .current {
    background: var(--ipx-accent);
    border-color: var(--ipx-accent);
    color: #fff;
}

.ipx-pagination .prev,
.ipx-pagination .next {
    padding: 0;
}

.ipx-pagination .dots {
    border: none;
    background: none;
}

/* No Results */
.ipx-no-results {
    text-align: center;
    padding: 80px 20px;
}

.ipx-no-results-icon {
    color: var(--ipx-text-3);
    margin-bottom: 24px;
}

.ipx-no-results-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ipx-text);
    margin: 0 0 12px;
}

.ipx-no-results-text {
    font-size: 1rem;
    color: var(--ipx-text-3);
    margin: 0 0 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.ipx-no-results .ipx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--ipx-accent) 0%, #9b1fd1 100%);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: all var(--ipx-transition);
}

.ipx-no-results .ipx-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200, 42, 239, 0.4);
}

/* More Filters Button */
.ipx-more-filters-btn {
    background: rgba(255, 255, 255, 0.03);
}

.ipx-more-filters-btn:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* Archive Page Responsive */
@media (max-width: 1024px) {
    .ipx-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .ipx-archive-hero {
        padding: 60px 16px 40px;
    }
    
    .ipx-archive-title {
        font-size: 1.75rem;
    }
    
    .ipx-archive-subtitle {
        font-size: 1rem;
        margin-bottom: 24px;
    }
    
    .ipx-search-input {
        padding: 14px 44px;
        font-size: 15px;
    }
    
    .ipx-archive-container {
        padding: 0 16px 40px;
    }
    
    .ipx-filter-bar {
        padding: 12px;
    }
    
    .ipx-filter-bar-inner {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ipx-filter-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        margin-bottom: -8px;
        -webkit-overflow-scrolling: touch;
    }
    
    .ipx-filter-pills::-webkit-scrollbar {
        display: none;
    }
    
    .ipx-filter-controls {
        justify-content: space-between;
        padding-top: 12px;
        border-top: 1px solid var(--ipx-border);
    }
    
    .ipx-dropdown-panel {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: var(--ipx-radius) var(--ipx-radius) 0 0;
        max-height: 70vh;
        transform: translateY(100%);
    }
    
    .ipx-filter-dropdown.open .ipx-dropdown-panel {
        transform: translateY(0);
    }
    
    .ipx-dropdown-options {
        max-height: calc(70vh - 60px);
    }
    
    .ipx-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .ipx-card-content {
        padding: 12px;
    }
    
    .ipx-card-title {
        font-size: 14px;
    }
    
    .ipx-card-genres {
        font-size: 11px;
        margin-bottom: 8px;
    }
    
    .ipx-card-price {
        font-size: 13px;
    }
    
    .ipx-card-actions {
        opacity: 1;
        transform: none;
    }
    
    .ipx-card-btn {
        width: 32px;
        height: 32px;
    }
    
    .ipx-card-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .ipx-pagination {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .ipx-pagination a,
    .ipx-pagination span {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .ipx-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .ipx-card-image {
        aspect-ratio: 2/3;
    }
    
    .ipx-card-content {
        padding: 10px;
    }
    
    .ipx-card-genres {
        display: none;
    }
    
    .ipx-active-filters {
        margin-top: 12px;
        padding-top: 12px;
    }
    
    .ipx-filter-tag {
        font-size: 12px;
        padding: 5px 10px;
    }
}

/* ==========================================================================
   MORE FILTERS SLIDE-OUT PANEL
   ========================================================================== */

/* Panel Container */
.ipx-filters-panel {
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: none;
}

.ipx-filters-panel.open {
    pointer-events: auto;
}

/* Overlay */
.ipx-filters-panel-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ipx-filters-panel.open .ipx-filters-panel-overlay {
    opacity: 1;
}

/* Panel Content */
.ipx-filters-panel-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: var(--ipx-surface);
    border-left: 1px solid var(--ipx-border);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
}

.ipx-filters-panel.open .ipx-filters-panel-content {
    transform: translateX(0);
}

/* Panel Header */
.ipx-filters-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--ipx-border);
    flex-shrink: 0;
}

.ipx-filters-panel-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ipx-text);
    margin: 0;
}

.ipx-filters-panel-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--ipx-border);
    border-radius: var(--ipx-radius-sm);
    color: var(--ipx-text-2);
    cursor: pointer;
    transition: all var(--ipx-transition);
}

.ipx-filters-panel-close:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--ipx-border-2);
    color: var(--ipx-text);
}

/* Panel Body */
.ipx-filters-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* Filter Sections */
.ipx-filter-section {
    margin-bottom: 28px;
}

.ipx-filter-section:last-child {
    margin-bottom: 0;
}

.ipx-filter-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ipx-text-2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 12px;
}

.ipx-filter-section-title svg {
    opacity: 0.7;
}

/* Filter Options (Chips) */
.ipx-filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ipx-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ipx-text-2);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--ipx-border);
    border-radius: 50px;
    text-decoration: none;
    transition: all var(--ipx-transition);
    white-space: nowrap;
}

.ipx-filter-chip:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--ipx-border-2);
    color: var(--ipx-text);
}

.ipx-filter-chip.selected {
    background: rgba(200, 42, 239, 0.15);
    border-color: var(--ipx-accent);
    color: var(--ipx-text);
}

.ipx-chip-count {
    font-size: 11px;
    color: var(--ipx-text-3);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 10px;
}

.ipx-filter-chip.selected .ipx-chip-count {
    background: rgba(200, 42, 239, 0.2);
    color: var(--ipx-accent);
}

/* Panel Footer */
.ipx-filters-panel-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--ipx-border);
    flex-shrink: 0;
}

.ipx-btn-reset {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ipx-text-2);
    background: transparent;
    border: 1px solid var(--ipx-border);
    border-radius: var(--ipx-radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--ipx-transition);
}

.ipx-btn-reset:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--ipx-border-2);
    color: var(--ipx-text);
}

.ipx-btn-apply {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--ipx-accent) 0%, #9b1fd1 100%);
    border: none;
    border-radius: var(--ipx-radius-sm);
    cursor: pointer;
    transition: all var(--ipx-transition);
}

.ipx-btn-apply:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(200, 42, 239, 0.4);
}

/* Body class when panel is open */
body.ipx-panel-open {
    overflow: hidden;
}

/* More Filters Button Active State */
.ipx-more-filters-btn.has-filters {
    background: rgba(200, 42, 239, 0.15);
    border-color: var(--ipx-accent);
    color: var(--ipx-text);
}

/* Responsive */
@media (max-width: 480px) {
    .ipx-filters-panel-content {
        max-width: 100%;
    }
    
    .ipx-filters-panel-header {
        padding: 16px 20px;
    }
    
    .ipx-filters-panel-body {
        padding: 20px;
    }
    
    .ipx-filters-panel-footer {
        padding: 16px 20px;
        flex-direction: column;
    }
    
    .ipx-filter-chip {
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* Scrollbar styling for panel */
.ipx-filters-panel-body::-webkit-scrollbar {
    width: 6px;
}

.ipx-filters-panel-body::-webkit-scrollbar-track {
    background: transparent;
}

.ipx-filters-panel-body::-webkit-scrollbar-thumb {
    background: var(--ipx-border-2);
    border-radius: 3px;
}

.ipx-filters-panel-body::-webkit-scrollbar-thumb:hover {
    background: var(--ipx-text-3);
}

/* ==========================================================================
   ARCHIVE PAGE - SLIDING LIST PANEL
   ========================================================================== */

/* Card wrapper for sliding effect */
.ipx-games-archive .ipx-game-card {
    overflow: hidden;
    border-radius: var(--ipx-radius);
    background: var(--ipx-surface);
    border: 1px solid var(--ipx-border);
    display: flex;
    flex-direction: column;
}

.ipx-games-archive .ipx-card-wrapper {
    display: flex;
    position: relative;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    min-height: 0;
}

/* When panel is open, slide card left */
.ipx-games-archive .ipx-game-card.panel-open .ipx-card-wrapper {
    transform: translateX(-140px);
}

/* Main card content */
.ipx-games-archive .ipx-card-main {
    flex-shrink: 0;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.ipx-games-archive .ipx-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.ipx-games-archive .ipx-card-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--ipx-bg);
}

/* Card actions - on top of image */
.ipx-games-archive .ipx-card-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.ipx-games-archive .ipx-game-card:hover .ipx-card-actions,
.ipx-games-archive .ipx-game-card.panel-open .ipx-card-actions {
    opacity: 1;
}

/* Rotate + icon to × when panel is open */
.ipx-games-archive .ipx-game-card.panel-open .ipx-list-toggle-btn svg {
    transform: rotate(45deg);
}

.ipx-games-archive .ipx-list-toggle-btn {
    transition: all 0.2s ease;
}

.ipx-games-archive .ipx-list-toggle-btn svg {
    transition: transform 0.3s ease;
}

/* List Panel - hidden to the right */
.ipx-games-archive .ipx-list-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 100%;
    width: 140px;
    background: var(--ipx-bg);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--ipx-border);
}

/* Panel Header */
.ipx-games-archive .ipx-list-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid var(--ipx-border);
    flex-shrink: 0;
}

.ipx-games-archive .ipx-list-panel-header span {
    font-size: 11px;
    font-weight: 600;
    color: var(--ipx-text-2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ipx-games-archive .ipx-list-panel-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    color: var(--ipx-text-3);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.ipx-games-archive .ipx-list-panel-close:hover {
    color: var(--ipx-text);
    background: rgba(255, 255, 255, 0.05);
}

/* Panel Content */
.ipx-games-archive .ipx-list-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.ipx-games-archive .ipx-list-panel-content::-webkit-scrollbar {
    width: 4px;
}

.ipx-games-archive .ipx-list-panel-content::-webkit-scrollbar-thumb {
    background: var(--ipx-border);
    border-radius: 2px;
}

/* Loading spinner */
.ipx-games-archive .ipx-list-panel-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.ipx-games-archive .ipx-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--ipx-border);
    border-top-color: var(--ipx-accent);
    border-radius: 50%;
    animation: ipx-spin 0.8s linear infinite;
}

/* List options in panel */
.ipx-games-archive .ipx-list-panel-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    border-left: 2px solid transparent;
}

.ipx-games-archive .ipx-list-panel-option:hover {
    background: rgba(255, 255, 255, 0.03);
}

.ipx-games-archive .ipx-list-panel-option.in-list {
    background: rgba(48, 209, 88, 0.1);
    border-left-color: var(--ipx-green);
}

.ipx-games-archive .ipx-list-panel-option.in-list:hover {
    background: rgba(48, 209, 88, 0.15);
}

/* Checkbox */
.ipx-games-archive .ipx-panel-check {
    width: 18px;
    height: 18px;
    border: 2px solid var(--ipx-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.ipx-games-archive .ipx-list-panel-option.in-list .ipx-panel-check {
    background: var(--ipx-green);
    border-color: var(--ipx-green);
}

.ipx-games-archive .ipx-panel-check svg {
    width: 10px;
    height: 10px;
    color: white;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.ipx-games-archive .ipx-list-panel-option.in-list .ipx-panel-check svg {
    opacity: 1;
}

/* List name */
.ipx-games-archive .ipx-panel-name {
    flex: 1;
    font-size: 12px;
    font-weight: 500;
    color: var(--ipx-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* Empty state */
.ipx-games-archive .ipx-list-panel-empty {
    padding: 16px 12px;
    text-align: center;
    color: var(--ipx-text-3);
    font-size: 11px;
    line-height: 1.4;
}

/* Panel Footer */
.ipx-games-archive .ipx-list-panel-footer {
    padding: 10px 12px;
    border-top: 1px solid var(--ipx-border);
    flex-shrink: 0;
}

.ipx-games-archive .ipx-create-list-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ipx-accent);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ipx-games-archive .ipx-create-list-link:hover {
    color: #d94fff;
}

.ipx-games-archive .ipx-create-list-link svg {
    width: 12px;
    height: 12px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ipx-games-archive .ipx-game-card.panel-open .ipx-card-wrapper {
        transform: translateX(-120px);
    }
    
    .ipx-games-archive .ipx-list-panel {
        width: 120px;
    }
    
    .ipx-games-archive .ipx-list-panel-header {
        padding: 8px 10px;
    }
    
    .ipx-games-archive .ipx-list-panel-option {
        padding: 6px 10px;
    }
    
    /* Always show actions on mobile */
    .ipx-games-archive .ipx-card-actions {
        opacity: 1;
    }
}

/* ==========================================================================
   STICKY BUTTONS (Edit + Play)
   ========================================================================== */
.ipx-sticky-buttons {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Dedicated demo button (shows when demo_url exists) */
.ipx-sticky-demo-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.ipx-sticky-demo-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.22);
}

.ipx-sticky-demo-icon {
    flex-shrink: 0;
}

.ipx-sticky-demo-ext {
    flex-shrink: 0;
    opacity: 0.85;
}

/* Hide wrapper if completely empty */
.ipx-sticky-buttons:empty {
    display: none;
}

.ipx-sticky-play {
    position: relative;
}

.ipx-sticky-play-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--ip-primary) 0%, #9b1fd1 100%);
    border: none;
    border-radius: 50px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(200, 42, 239, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.ipx-sticky-play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(200, 42, 239, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.ipx-sticky-play-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.ipx-sticky-play-chevron {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.ipx-sticky-play.menu-open .ipx-sticky-play-chevron {
    transform: rotate(180deg);
}

/* Desktop: Larger button */
@media (min-width: 769px) {
    .ipx-sticky-play-btn {
        padding: 20px 32px;
        gap: 12px;
        font-size: 1.0625rem;
    }
    .ipx-sticky-play-icon {
        width: 22px;
        height: 22px;
    }
    .ipx-sticky-play-chevron {
        width: 18px;
        height: 18px;
    }
}

/* Sticky Menu */
.ipx-sticky-menu {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    min-width: 220px;
    background: var(--ipx-surface, #1a1a1a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    overflow: hidden;
}

.ipx-sticky-play.menu-open .ipx-sticky-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ipx-sticky-menu-header {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
}

.ipx-sticky-menu-items {
    padding: 8px 0;
    max-height: 320px;
    overflow-y: auto;
}

.ipx-sticky-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.ipx-sticky-menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--item-color, var(--ipx-accent, var(--ip-primary)));
    color: #ffffff;
}

.ipx-sticky-menu-item svg {
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.ipx-sticky-menu-item:hover svg {
    opacity: 1;
}

.ipx-sticky-menu-label {
    flex: 1;
    font-weight: 500;
}

.ipx-sticky-menu-demo {
    background: rgba(200, 42, 239, 0.1);
    border-left-color: var(--ip-primary);
}

.ipx-sticky-menu-demo:hover {
    background: rgba(200, 42, 239, 0.2);
}

.ipx-sticky-menu-demo svg {
    color: var(--ip-primary);
    opacity: 1;
}

.ipx-sticky-menu-website {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 8px;
    padding-top: 12px;
}

/* ==========================================================================
   INTEGRATED HARDY HELPER BUTTON (in sticky stack)
   ========================================================================== */
.ipx-sticky-hardy {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px 12px 14px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ipx-sticky-hardy:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.ipx-sticky-hardy:active {
    transform: translateY(0) scale(0.98);
}

.ipx-sticky-hardy__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.ipx-sticky-hardy__icon svg {
    width: 100%;
    height: 100%;
}

.ipx-sticky-hardy__label {
    white-space: nowrap;
}

.ipx-sticky-hardy__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ff4757;
    border-radius: 9px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    animation: ipx-hardy-pulse 2s ease-in-out infinite;
}

.ipx-sticky-hardy--attention {
    background: linear-gradient(135deg, var(--ip-primary) 0%, #9b1fd1 100%);
    border-color: rgba(200, 42, 239, 0.3);
    box-shadow: 0 4px 16px rgba(200, 42, 239, 0.3);
}

.ipx-sticky-hardy--attention:hover {
    box-shadow: 0 6px 24px rgba(200, 42, 239, 0.45);
}

@keyframes ipx-hardy-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Hide global Hardy FAB on single game page */
.single-video-game .hardy-help-fab {
    display: none !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .ipx-sticky-buttons {
        bottom: 20px;
        right: 20px;
        left: 20px;
        align-items: stretch;
    }

    .ipx-sticky-hardy {
        width: 100%;
        justify-content: center;
        padding: 12px 18px;
    }

    .ipx-sticky-demo-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
    
    .ipx-frontend-edit-btn {
        justify-content: center;
    }
    
    .ipx-sticky-play-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
        font-size: 1rem;
    }
    
    .ipx-sticky-play-icon {
        width: 20px;
        height: 20px;
    }
    
    .ipx-sticky-play-chevron {
        width: 16px;
        height: 16px;
    }
    
    .ipx-sticky-menu {
        right: 0;
        left: 0;
        min-width: auto;
    }
}

/* ==========================================================================
   MORE DETAILS SECTION (Expandable)
   ========================================================================== */
.ipx-more-details {
    padding: 0;
}

.ipx-more-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    background: var(--ipx-surface);
    border: 1px solid var(--ipx-border);
    border-radius: var(--ipx-radius);
    color: var(--ipx-text);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ipx-more-toggle:hover {
    background: var(--ipx-surface-2);
    border-color: var(--ipx-accent);
}

.ipx-more-toggle-icon {
    transition: transform 0.3s ease;
}

.ipx-more-toggle.open .ipx-more-toggle-icon {
    transform: rotate(180deg);
}

.ipx-more-content {
    margin-top: 24px;
    padding: 32px;
    background: var(--ipx-surface);
    border: 1px solid var(--ipx-border);
    border-radius: var(--ipx-radius);
    animation: ipx-slide-down 0.3s ease;
}

@keyframes ipx-slide-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ipx-more-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.ipx-more-item {
    padding: 20px;
    background: var(--ipx-surface-2);
    border-radius: var(--ipx-radius-sm);
}

.ipx-more-item h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ipx-text-3);
    margin: 0 0 12px 0;
}

.ipx-more-item p {
    color: var(--ipx-text-2);
    margin: 0;
    line-height: 1.6;
}

.ipx-more-item-wide {
    grid-column: 1 / -1;
}

.ipx-more-item .ipx-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ipx-similar-games {
    font-size: 0.9375rem;
}

.ipx-more-item.ipx-disclosure {
    background: rgba(200, 42, 239, 0.08);
    border: 1px solid rgba(200, 42, 239, 0.2);
}

.ipx-more-item.ipx-disclosure h4 {
    color: var(--ipx-accent);
}

@media (max-width: 768px) {
    .ipx-more-content {
        padding: 20px;
    }
    
    .ipx-more-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   TRAILER IN ABOUT SECTION
   ========================================================================== */
.ipx-trailer {
    margin-top: 40px;
}

.ipx-subsection-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ipx-text-2);
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   SHARE MODAL - Dark Theme
   ========================================================================== */
.ipx-game .ip-modal-share .ip-share-preview {
    background: var(--ipx-bg);
}

.ipx-game .ip-modal-share .ip-share-title {
    color: var(--ipx-text);
}

.ipx-game .ip-modal-share .ip-share-option {
    border-color: var(--ipx-border);
    color: var(--ipx-text);
}

.ipx-game .ip-modal-share .ip-share-option:hover {
    background: var(--ipx-surface-2);
    border-color: var(--ipx-border-2);
}

.ipx-game .ip-modal-share .ip-share-twitter:hover {
    border-color: #1da1f2;
    color: #1da1f2;
}

.ipx-game .ip-modal-share .ip-share-facebook:hover {
    border-color: #1877f2;
    color: #1877f2;
}

.ipx-game .ip-modal-share .ip-share-reddit:hover {
    border-color: #ff4500;
    color: #ff4500;
}

.ipx-game .ip-modal-share .ip-share-copy:hover {
    border-color: var(--ipx-accent);
    color: var(--ipx-accent);
}

.ipx-game .ip-modal-share .ip-share-copy.copied {
    background: rgba(48, 209, 88, 0.15);
    border-color: var(--ipx-green);
    color: var(--ipx-green);
}


/* ===== Former: game-single.css (single only) ===== */
/* ==========================================================================
   Accessibility Utilities (Phase 5: Polish)
   ========================================================================== */

/* Screen reader only - visually hidden but accessible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip to content link - shown on focus */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--ipx-accent);
    color: white;
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* Focus visible enhancements for keyboard navigation */
.ipx-prb-cta:focus-visible,
.ipx-prb-action:focus-visible,
.ipx-review-editor-cancel:focus-visible {
    outline: 2px solid var(--ipx-accent);
    outline-offset: 2px;
}

/* Ensure buttons have proper focus states */
button:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid var(--ipx-accent);
    outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .ipx-review-editor-container,
    .ipx-review-editor-container.is-visible,
    .ipx-review-editor-container.is-animating-out,
    .ipx-prb-cta,
    .ipx-prb-action {
        transition: none;
    }
}

/* ==========================================================================
   Phase 6: Typography Token System for Reviews
   ========================================================================== */
:root {
    /* Brand Tokens (Single Game) */
    --ipx-accent: var(--ip-primary);
    --ipx-accent-hover: #d94ff5;
    --ipx-accent-glow: rgba(200, 42, 239, 0.25);

    /* Typography Scale */
    --rv-h1: 22px;           /* Main section headings (Reviews) */
    --rv-h2: 18px;           /* Subsection headings (Highlighted Reviews) */
    --rv-title: 18px;        /* Review card titles/headlines */
    --rv-body: 16px;         /* Review body text, excerpts */
    --rv-body-expanded: 17px;/* Expanded review body */
    --rv-meta: 14px;         /* Hours, platform, date, votes */
    --rv-meta-small: 13px;   /* Secondary meta, labels */
    
    /* Line Heights */
    --rv-lh-tight: 1.3;
    --rv-lh-normal: 1.5;
    --rv-lh-relaxed: 1.7;
    --rv-lh-loose: 1.85;
    
    /* Text Colors - Improved Contrast */
    --rv-text-primary: rgba(255, 255, 255, 0.92);
    --rv-text-secondary: rgba(255, 255, 255, 0.78);
    --rv-text-muted: rgba(255, 255, 255, 0.55);
    --rv-text-faint: rgba(255, 255, 255, 0.4);
    
    /* Border Colors - Reduced to let text dominate */
    --rv-border: rgba(255, 255, 255, 0.06);
    --rv-border-hover: rgba(255, 255, 255, 0.1);
}

/* Mobile Typography Floor */
@media (max-width: 768px) {
    :root {
        --rv-h1: 20px;
        --rv-h2: 17px;
        --rv-title: 18px;
        --rv-body: 16px;          /* Never below 16px */
        --rv-body-expanded: 16px;
        --rv-meta: 14px;
        --rv-meta-small: 13px;
    }
}

/* ==========================================================================
   Section Navigator (Table of Contents) - Phase 1, 2 & 3
   ========================================================================== */

/* Section nav is always visible - no fade animations */
.ipx-section-nav {
    max-width: 1400px;
    margin: 0 auto 24px;
    padding: 0 24px;
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

/* Revealed state - kept for compatibility but no visual change */
.ipx-section-nav.is-revealed {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

/* Section anchor points for smooth scroll targeting */
.ipx-section-anchor {
    display: block;
    height: 0;
    margin: 0;
    padding: 0;
    /* Offset for fixed header + sticky section navigator */
    scroll-margin-top: calc(var(--ip-header-height, 64px) + var(--ip-admin-bar-height, 0px) + 76px);
}

.ipx-section-nav-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ipx-section-nav-inner::-webkit-scrollbar {
    display: none;
}

.ipx-section-nav-item {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    border-radius: 8px;
    white-space: nowrap;
    transition: all 0.2s ease;
    position: relative;
}

.ipx-section-nav-item:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.06);
}

.ipx-section-nav-item:focus {
    outline: 2px solid rgba(200, 42, 239, 0.45);
    outline-offset: 2px;
}

.ipx-section-nav-item.active,
.ipx-section-nav-item[aria-current="true"] {
    color: #fff;
    background: rgba(200, 42, 239, 0.16);
}

.ipx-section-nav-item.active::after,
.ipx-section-nav-item[aria-current="true"]::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--ipx-accent);
    border-radius: 1px;
}

/* Sticky behavior (optional - activated via JS) */
.ipx-section-nav.is-sticky {
    position: fixed;
    /* JS may overwrite this, but the default should already be correct */
    top: calc(var(--ip-header-height, 64px) + var(--ip-admin-bar-height, 0px) + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px); /* Account for page padding */
    max-width: 1400px;
    z-index: 999; /* Below header (1000+) but above content */
    margin: 0;
    padding: 0;
    background: transparent;
    opacity: 1;
    pointer-events: auto;
}

/* The inner content gets the background when sticky */
.ipx-section-nav.is-sticky .ipx-section-nav-inner {
    background: rgba(25, 25, 24, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Sidebar Sticky Adjustment for Section Navigator
   When section nav is sticky, sidebar needs extra top offset
   ========================================================================== */

/* Override sidebar sticky positioning when section nav is present */
@media (min-width: 769px) {
    /* Increase sidebar sticky top to account for section nav height (~60px) */
    .ipx-sidebar-sticky {
        top: calc(var(--ip-header-height, 64px) + var(--ip-admin-bar-height, 0px) + 96px);
        max-height: calc(100vh - (var(--ip-header-height, 64px) + var(--ip-admin-bar-height, 0px) + 116px));
    }
}

/* No fade animations on section nav */

/* Placeholder space when nav becomes sticky */
.ipx-section-nav-placeholder {
    /* Height set dynamically by JS based on actual nav height */
    height: 0;
    display: none;
}

.ipx-section-nav-placeholder.active {
    display: block;
}

/* ==========================================================================
   Phase 5: Mobile & Touch Optimization
   ========================================================================== */

/* Mobile Adjustments */
@media (max-width: 768px) {
    .ipx-section-nav {
        padding: 0 12px;
        margin-bottom: 16px;
    }
    
    .ipx-section-nav-inner {
        padding: 6px 8px;
        gap: 2px;
        /* Allow horizontal scroll if needed */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .ipx-section-nav-inner::-webkit-scrollbar {
        display: none;
    }
    
    .ipx-section-nav-item {
        /* Compact sizing to fit all items */
        min-height: 40px;
        padding: 8px 10px;
        font-size: 13px;
        /* Prevent text selection on touch */
        -webkit-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: rgba(200, 42, 239, 0.18);
        /* Prevent shrinking */
        flex-shrink: 0;
    }
    
    /* Active state more prominent on mobile */
    .ipx-section-nav-item.active,
    .ipx-section-nav-item[aria-current="true"] {
        background: rgba(200, 42, 239, 0.16);
    }
    
    .ipx-section-nav.is-sticky {
        padding: 0 12px;
        width: calc(100% - 24px);
    }
    
    .ipx-section-nav.is-sticky .ipx-section-nav-inner {
        padding: 6px 8px;
    }
}

/* Extra small screens - tighter spacing */
@media (max-width: 480px) {
    .ipx-section-nav {
        padding: 0 8px;
    }
    
    .ipx-section-nav-inner {
        padding: 5px 6px;
        gap: 1px;
    }
    
    .ipx-section-nav-item {
        padding: 8px 8px;
        font-size: 12px;
        min-height: 36px;
    }
    
    .ipx-section-nav.is-sticky {
        width: calc(100% - 16px);
        padding: 0 8px;
    }
}

/* Very small screens - minimal spacing */
@media (max-width: 380px) {
    .ipx-section-nav {
        padding: 0 6px;
    }
    
    .ipx-section-nav-inner {
        padding: 4px 4px;
        gap: 0;
    }
    
    .ipx-section-nav-item {
        padding: 7px 6px;
        font-size: 11px;
        min-height: 34px;
        border-radius: 5px;
    }
}

/* Touch-specific enhancements */
@media (hover: none) and (pointer: coarse) {
    .ipx-section-nav-item {
        /* Remove hover states that don't work well on touch */
        transition: background 0.1s ease, color 0.1s ease;
    }
    
    .ipx-section-nav-item:active {
        background: rgba(200, 42, 239, 0.22);
        transform: scale(0.98);
    }
}

/* Landscape mobile optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .ipx-section-nav.is-sticky {
        padding: 4px 12px;
    }
    
    .ipx-section-nav.is-sticky .ipx-section-nav-inner {
        padding: 4px 8px;
    }
    
    .ipx-section-nav.is-sticky .ipx-section-nav-item {
        min-height: 36px;
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* ==========================================================================
   Review Section Header & Title (Phase 5: Spacing Refinements)
   ========================================================================== */

/* Add spacing at top of Reviews section (below About section divider) */
section.ipx-section.ipx-reviews {
    padding-top: 20px;
}

.ipx-reviews .ipx-section-header {
    margin-bottom: 0; /* Remove default margin - let title control spacing */
}

.ipx-reviews .ipx-section-title {
    font-size: var(--rv-h1);
    font-weight: 700;
    color: var(--rv-text-primary);
    margin: 0 0 25px 0; /* Space between Reviews h2 and MY REVIEW */
    line-height: var(--rv-lh-tight);
}

/* ==========================================================================
   Personal Review State Block (Phase 5: Polish)
   ========================================================================== */
.ipx-personal-review-block {
    margin-top: 0; /* Ensure no gap from header */
    margin-bottom: 25px; /* Space between MY REVIEW and Community Reviews */
}

/* Shared State Styling */
.ipx-prb-state {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--rv-border);
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.ipx-prb-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.ipx-prb-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 132, 25, 0.1);
    border-radius: 12px;
    color: var(--ipx-accent);
}

.ipx-prb-text {
    flex: 1;
    min-width: 0;
}

.ipx-prb-headline {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--rv-text-primary);
    line-height: 1.3;
}

.ipx-prb-subtext {
    margin: 0;
    font-size: 14px;
    color: var(--rv-text-secondary);
    line-height: 1.4;
}

/* CTA Buttons */
.ipx-prb-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.ipx-prb-cta-primary {
    background: var(--ipx-accent);
    color: white;
}

.ipx-prb-cta-primary:hover {
    background: #d64ff2;
    color: white;
    transform: translateY(-1px);
}

.ipx-prb-cta-primary:active {
    transform: translateY(0);
}

/* Empty State Styling (No reviews yet) */
.ipx-personal-review-block.ipx-prb-empty-state .ipx-prb-state {
    /* Neutral (no green tint) — keep consistent with review card chrome */
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(200, 42, 239, 0.18);
}

.ipx-personal-review-block.ipx-prb-empty-state .ipx-prb-icon {
    /* Subtle accent, not green */
    background: rgba(200, 42, 239, 0.14);
}

/* State B-Blocked: Onboarding Required */
.ipx-prb-onboarding-required {
    background: rgba(200, 42, 239, 0.06);
    border: 2px dashed rgba(200, 42, 239, 0.35);
}

.ipx-prb-onboarding-required .ipx-prb-icon {
    background: rgba(200, 42, 239, 0.15);
}

.ipx-prb-onboarding-required .ipx-prb-icon--hardy {
    background: transparent;
}

.ipx-prb-onboarding-required .ipx-prb-icon--hardy svg {
    width: 36px;
    height: 36px;
}

.ipx-prb-onboarding-required .ipx-prb-headline {
    color: var(--hardy-primary, #C82AEF);
}

.ipx-prb-onboarding-required .ipx-prb-cta {
    background: var(--hardy-primary, #C82AEF);
    border: none;
}

.ipx-prb-onboarding-required .ipx-prb-cta:hover {
    background: #a020c0;
    transform: translateY(-1px);
}

/* State C: Has Review - My Review Card */
.ipx-prb-has-review {
    display: block;
    padding: 0;
    background: transparent;
    border: none;
}

.ipx-prb-my-review {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--rv-border);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Colored glow based on recommendation - matches badge color - EXTRA BRIGHT */
.ipx-prb-has-review[data-recommendation="complete"] .ipx-prb-my-review {
    border-color: #ff8000;
    box-shadow: 
        0 0 0 1px rgba(255, 128, 0, 0.8),
        0 0 10px rgba(255, 128, 0, 0.6),
        0 0 25px rgba(255, 128, 0, 0.5),
        0 0 45px rgba(255, 128, 0, 0.35),
        0 0 70px rgba(255, 128, 0, 0.2);
}

.ipx-prb-has-review[data-recommendation="play"] .ipx-prb-my-review {
    border-color: #1eff00;
    box-shadow: 
        0 0 0 1px rgba(30, 255, 0, 0.7),
        0 0 10px rgba(30, 255, 0, 0.55),
        0 0 25px rgba(30, 255, 0, 0.45),
        0 0 45px rgba(30, 255, 0, 0.3),
        0 0 70px rgba(30, 255, 0, 0.18);
}

.ipx-prb-has-review[data-recommendation="skip"] .ipx-prb-my-review {
    border-color: #9d9d9d;
    box-shadow: 
        0 0 0 1px rgba(157, 157, 157, 0.7),
        0 0 10px rgba(157, 157, 157, 0.5),
        0 0 25px rgba(157, 157, 157, 0.4),
        0 0 45px rgba(157, 157, 157, 0.25),
        0 0 70px rgba(157, 157, 157, 0.15);
}

/* Match header background to recommendation color */
.ipx-prb-has-review[data-recommendation="complete"] .ipx-prb-my-review-header {
    background: rgba(255, 128, 0, 0.15);
}

.ipx-prb-has-review[data-recommendation="complete"] .ipx-prb-my-review-title {
    color: #ff8000;
}

.ipx-prb-has-review[data-recommendation="play"] .ipx-prb-my-review-header {
    background: rgba(30, 255, 0, 0.12);
}

.ipx-prb-has-review[data-recommendation="play"] .ipx-prb-my-review-title {
    color: #1eff00;
}

.ipx-prb-has-review[data-recommendation="skip"] .ipx-prb-my-review-header {
    background: rgba(157, 157, 157, 0.15);
}

.ipx-prb-has-review[data-recommendation="skip"] .ipx-prb-my-review-title {
    color: #9d9d9d;
}

.ipx-prb-my-review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(37, 132, 25, 0.08);
    border-bottom: 1px solid var(--rv-border);
}

.ipx-prb-my-review-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--ipx-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ipx-prb-status-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ipx-prb-status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.ipx-prb-status-edit-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    display: inline-flex;
    align-items: center;
}

.ipx-prb-status-edited {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    display: inline-flex;
    align-items: center;
}

/* Review Card Content */
.ipx-prb-review-card {
    padding: 20px;
}

.ipx-prb-review-main {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.ipx-prb-avatar {
    flex-shrink: 0;
}

.ipx-prb-avatar img,
.ipx-prb-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.ipx-prb-review-content {
    flex: 1;
    min-width: 0;
}

.ipx-prb-review-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.ipx-prb-author {
    font-size: 14px;
    font-weight: 600;
    color: var(--rv-text-primary);
}

.ipx-prb-date {
    font-size: 13px;
    color: var(--rv-text-muted);
}

.ipx-prb-review-headline {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--rv-text-primary);
    line-height: 1.4;
}

.ipx-prb-review-excerpt {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: var(--rv-text-secondary);
    line-height: 1.5;
}

.ipx-prb-review-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ipx-prb-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--rv-text-muted);
}

.ipx-prb-meta-item svg {
    opacity: 0.7;
}

.ipx-prb-meta-helpful {
    color: var(--rv-accent);
}

/* Recommendation Badge */
.ipx-prb-recommendation {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    white-space: nowrap;
}

.ipx-prb-rec-complete {
    background: rgba(255, 128, 0, 0.15);
    color: #ff8000;
}

.ipx-prb-rec-play {
    background: rgba(30, 255, 0, 0.12);
    color: #1eff00;
}

.ipx-prb-rec-skip {
    background: rgba(157, 157, 157, 0.15);
    color: #9d9d9d;
}

/* Review Actions */
.ipx-prb-review-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--rv-border);
}

.ipx-prb-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid var(--rv-border);
    background: transparent;
    color: var(--rv-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.ipx-prb-action:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--rv-text-primary);
    border-color: rgba(255, 255, 255, 0.15);
}

.ipx-prb-action-edit:hover {
    border-color: var(--ipx-accent);
    color: var(--ipx-accent);
}

/* Mobile Responsive */
/* ==========================================================================
   Mobile Responsive - Personal Review Block (Phase 5: Polish)
   ========================================================================== */
@media (max-width: 768px) {
    .ipx-reviews .ipx-section-title {
        margin-bottom: 10px; /* Slightly tighter on mobile */
    }
    
    .ipx-personal-review-block {
        margin-bottom: 16px; /* Tighter on mobile */
    }
    
    .ipx-prb-state {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 16px; /* Reduced padding on mobile */
        gap: 16px;
    }
    
    .ipx-prb-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .ipx-prb-icon {
        width: 44px;
        height: 44px;
        margin: 0 auto; /* Center the icon */
    }
    
    .ipx-prb-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .ipx-prb-headline {
        font-size: 15px;
    }
    
    .ipx-prb-subtext {
        font-size: 13px;
    }
    
    .ipx-prb-cta {
        width: 100%;
        justify-content: center;
        padding: 14px 20px; /* Larger touch target */
        min-height: 48px; /* Accessibility: minimum touch target */
    }
    
    /* My Review Card - Mobile */
    .ipx-prb-review-main {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .ipx-prb-avatar {
        align-self: center;
        margin: 0 auto;
    }
    
    .ipx-prb-review-content {
        width: 100%;
        text-align: center;
    }
    
    .ipx-prb-review-top {
        justify-content: center;
    }
    
    .ipx-prb-review-headline {
        text-align: center;
    }
    
    .ipx-prb-review-excerpt {
        text-align: center;
    }
    
    .ipx-prb-review-meta {
        justify-content: center;
    }
    
    .ipx-prb-recommendation {
        align-self: center;
        margin-top: 8px;
    }
    
    .ipx-prb-review-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .ipx-prb-action {
        justify-content: center;
        padding: 12px 16px; /* Larger touch target */
        min-height: 44px; /* Accessibility: minimum touch target */
    }
}

@media (max-width: 480px) {
    .ipx-prb-state {
        padding: 14px;
    }
    
    .ipx-prb-headline {
        font-size: 14px;
    }
    
    .ipx-prb-subtext {
        font-size: 12px;
        line-height: 1.5;
    }
    
    .ipx-prb-cta span {
        font-size: 13px;
    }
    
    /* Review card adjustments for small screens */
    .ipx-prb-review-excerpt {
        font-size: 13px;
        -webkit-line-clamp: 3; /* Show fewer lines on small screens */
    }
    
    .ipx-prb-meta-item {
        font-size: 11px;
    }
}

/* ==========================================================================
   Review Editor Container (Hidden by default, revealed on CTA click)
   Phase 5: Consistent spacing with Personal Review Block
   ========================================================================== */
.ipx-review-editor-container {
    margin-bottom: 20px; /* Match Personal Review Block spacing */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease-out, opacity 0.3s ease-out, margin 0.3s ease-out;
}

.ipx-review-editor-container[aria-hidden="true"] {
    margin-bottom: 0;
}

.ipx-review-editor-container.is-visible {
    max-height: 2000px; /* Large enough for any form */
    opacity: 1;
    margin-bottom: 20px; /* Consistent with Personal Review Block spacing */
}

.ipx-review-editor-container.is-animating-out {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
    transition: max-height 0.3s ease-in, opacity 0.2s ease-in, margin 0.3s ease-in;
}

.ipx-review-editor-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--rv-border);
    border-radius: 12px;
    overflow: hidden;
}

/* Editor header with title and cancel */
.ipx-review-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    /* Avoid the green-tinted "folder" look; keep headers neutral like the rest of the UI */
    background: rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid var(--rv-border);
}

/* The review form shortcode uses its own container; remove nested "card-in-a-card" spacing */
.ipx-review-editor-wrapper .ip-form-container {
    max-width: none;
    margin: 0;
}

/* Recommendation pills (single game review editor) */
.ipx-review-editor-wrapper .ip-recommendation-buttons.ipx-rec-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
    align-items: stretch;
}

.ipx-review-editor-wrapper .ip-recommendation-buttons.ipx-rec-pills .ip-rec-option {
    flex: 0 0 auto;
    min-width: 160px;
}

.ipx-review-editor-wrapper .ip-recommendation-buttons.ipx-rec-pills .ip-rec-btn.ipx-rec-pill {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.ipx-review-editor-wrapper .ip-recommendation-buttons.ipx-rec-pills .ip-rec-btn.ipx-rec-pill .ip-rec-icon {
    font-size: 18px;
    margin: 0;
}

.ipx-review-editor-wrapper .ip-recommendation-buttons.ipx-rec-pills .ip-rec-btn.ipx-rec-pill .ip-rec-label {
    font-size: 13px;
    letter-spacing: 0.02em;
}

/* Keep selection states consistent but not overly loud */
.ipx-review-editor-wrapper .ip-rec-option input:checked + .ip-rec-btn.ip-rec-skip {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.22);
}

.ipx-review-editor-wrapper .ip-rec-option input:checked + .ip-rec-btn.ip-rec-play {
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.35);
}

.ipx-review-editor-wrapper .ip-rec-option input:checked + .ip-rec-btn.ip-rec-complete {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.35);
}

@media (max-width: 640px) {
    .ipx-review-editor-wrapper .ip-recommendation-buttons.ipx-rec-pills .ip-rec-option {
        flex: 1 1 calc(50% - 12px);
        min-width: 0;
    }
}

@media (max-width: 420px) {
    .ipx-review-editor-wrapper .ip-recommendation-buttons.ipx-rec-pills .ip-rec-option {
        flex: 1 1 100%;
    }
}

.ipx-review-editor-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--rv-text-primary);
}

.ipx-review-editor-title svg {
    color: var(--ipx-accent);
}

.ipx-review-editor-cancel {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid var(--rv-border);
    background: transparent;
    color: var(--rv-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ipx-review-editor-cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--rv-text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.ipx-review-editor-cancel:focus {
    outline: 2px solid var(--ipx-accent);
    outline-offset: 2px;
}

/* Form container inside editor */
.ipx-review-editor-wrapper .ipx-review-form {
    padding: 24px;
}

/* Hide the Personal Review Block CTA when editor is open */
.ipx-personal-review-block.editor-open .ipx-prb-cta {
    opacity: 0.5;
    pointer-events: none;
}

/* Mobile Responsive - Review Editor (Phase 5: Polish) */
@media (max-width: 768px) {
    .ipx-review-editor-container.is-visible {
        margin-bottom: 16px;
    }
    
    .ipx-review-editor-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        text-align: center;
        padding: 14px 16px;
    }
    
    .ipx-review-editor-title {
        justify-content: center;
        font-size: 15px;
    }
    
    .ipx-review-editor-cancel {
        justify-content: center;
        padding: 10px 16px;
        min-height: 44px; /* Accessibility: minimum touch target */
    }
    
    .ipx-review-editor-wrapper .ipx-review-form {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .ipx-review-editor-header {
        padding: 12px 14px;
    }
    
    .ipx-review-editor-title {
        font-size: 14px;
    }
    
    .ipx-review-editor-wrapper .ipx-review-form {
        padding: 14px;
    }
}

/* ==========================================================================
   Sidebar Review CTA Button (State-aware)
   ========================================================================== */
/* Ensure anchor looks consistent */
a.ipx-review-cta-btn {
    text-decoration: none;
    cursor: pointer;
}

/* "Has reviewed" state - subtle checkmark styling */
.ipx-review-cta-has-review {
    opacity: 0.8;
}

.ipx-review-cta-has-review .ipx-review-cta-icon {
    color: #22c55e;
}

/* Static (non-interactive) version for users who have reviewed */
.ipx-review-cta-static {
    cursor: default;
    pointer-events: none;
}

.ipx-review-cta-static:hover {
    opacity: 0.8; /* No hover effect */
}

/* ==========================================================================
   Review Intelligence Container (Community Reviews)
   ========================================================================== */
.ipx-review-intelligence {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--ipx-accent); /* Thin solid pink border */
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 32px;
}

/* Phase 9: Review Intelligence Header */
.ipx-ri-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--rv-border);
}

.ipx-ri-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--rv-text-primary);
}

.ipx-ri-view-all {
    font-size: var(--rv-meta);
    color: var(--ipx-accent);
    text-decoration: none;
    transition: all 0.2s ease;
}

.ipx-ri-view-all:hover {
    color: #d64af5;
    text-decoration: underline;
}

/* Verdict Breakdown */
.ipx-ri-verdicts {
    margin-bottom: 24px;
}

.ipx-ri-bar-container {
    display: flex;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 16px;
}

.ipx-ri-bar {
    height: 100%;
    transition: width 0.5s ease;
}

.ipx-ri-bar-complete {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.ipx-ri-bar-play {
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
}

.ipx-ri-bar-skip {
    background: linear-gradient(90deg, #6b7280 0%, #4b5563 100%);
}

/* Legend */
.ipx-ri-verdict-legend {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.ipx-ri-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--rv-meta);
    color: var(--rv-text-secondary);
}

.ipx-ri-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.ipx-ri-legend-complete .ipx-ri-legend-dot {
    background: #f59e0b;
}

.ipx-ri-legend-play .ipx-ri-legend-dot {
    background: #22c55e;
}

.ipx-ri-legend-skip .ipx-ri-legend-dot {
    background: #6b7280;
}

.ipx-ri-legend-label {
    color: rgba(255, 255, 255, 0.7);
}

.ipx-ri-legend-value {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.ipx-ri-legend-percent {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

/* Community Takeaway - The "Answer" line */
.ipx-ri-takeaway {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    margin-bottom: 24px;
    border-left: 4px solid #6b7280;
}

/* Verdict-specific takeaway colors */
.ipx-ri-takeaway-complete {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.06);
}

.ipx-ri-takeaway-complete .ipx-ri-takeaway-icon {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.ipx-ri-takeaway-play {
    border-left-color: #22c55e;
    background: rgba(34, 197, 94, 0.06);
}

.ipx-ri-takeaway-play .ipx-ri-takeaway-icon {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.ipx-ri-takeaway-skip {
    border-left-color: #6b7280;
    background: rgba(107, 114, 128, 0.06);
}

.ipx-ri-takeaway-skip .ipx-ri-takeaway-icon {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
}

.ipx-ri-takeaway-mixed {
    border-left-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.06);
}

.ipx-ri-takeaway-mixed .ipx-ri-takeaway-icon {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.ipx-ri-takeaway-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(107, 114, 128, 0.15);
    color: #9ca3af;
}

.ipx-ri-takeaway-icon svg {
    width: 26px;
    height: 26px;
}

.ipx-ri-takeaway-text {
    margin: 0;
    font-size: 19px;
    font-weight: 600;
    color: var(--rv-text-primary);
    line-height: 1.45;
}

/* Stats Row */
.ipx-ri-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--rv-border);
    margin-bottom: 20px;
}

.ipx-ri-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
}

.ipx-ri-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--rv-text-primary);
    line-height: 1;
}

.ipx-ri-stat-label {
    font-size: var(--rv-meta-small);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--rv-text-muted);
}

/* Platform tooltip */
.ipx-ri-stat-platforms {
    cursor: help;
}

.ipx-ri-platform-tooltip {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: #1f1f1f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    z-index: 10;
    min-width: 140px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.ipx-ri-stat-platforms:hover .ipx-ri-platform-tooltip {
    display: block;
}

.ipx-ri-platform-item {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    padding: 4px 0;
}

.ipx-ri-platform-item small {
    color: rgba(255, 255, 255, 0.4);
    margin-left: 4px;
}

/* Write Review CTA */
.ipx-ri-cta {
    padding-top: 4px;
}

.ipx-ri-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: transparent;
    border: 1px solid rgba(37, 132, 25, 0.4);
    border-radius: 8px;
    color: var(--ipx-accent);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.ipx-ri-cta-btn:hover {
    background: rgba(37, 132, 25, 0.1);
    border-color: rgba(37, 132, 25, 0.6);
    color: var(--ipx-accent);
    transform: translateY(-1px);
}

.ipx-ri-cta-btn svg {
    flex-shrink: 0;
}

.ipx-ri-cta-btn-primary {
    background: linear-gradient(135deg, var(--ipx-accent) 0%, var(--ipx-accent) 100%);
    border-color: transparent;
    color: #fff;
}

.ipx-ri-cta-btn-primary:hover {
    background: linear-gradient(135deg, var(--ipx-accent) 0%, var(--ipx-accent) 100%);
    color: #fff;
}

/* Empty State */
.ipx-ri-empty {
    text-align: center;
    padding: 48px 28px;
}

.ipx-ri-empty-content {
    max-width: 360px;
    margin: 0 auto;
}

.ipx-ri-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.3);
}

.ipx-ri-empty-title {
    font-size: 20px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 8px 0;
}

.ipx-ri-empty-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 24px 0;
    line-height: 1.5;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .ipx-review-intelligence {
        padding: 20px;
        margin-bottom: 24px;
    }
    
    .ipx-ri-verdict-legend {
        gap: 16px;
    }
    
    .ipx-ri-legend-item {
        font-size: 13px;
    }
    
    .ipx-ri-takeaway {
        flex-direction: row;
        text-align: left;
        gap: 14px;
        padding: 16px 18px;
    }
    
    .ipx-ri-takeaway-icon {
        width: 42px;
        height: 42px;
    }
    
    .ipx-ri-takeaway-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .ipx-ri-takeaway-text {
        font-size: 17px;
    }
    
    .ipx-ri-stats {
        gap: 20px;
        justify-content: space-between;
    }
    
    .ipx-ri-stat-value {
        font-size: 24px;
    }
    
    .ipx-ri-stat-label {
        font-size: 12px;
    }
    
    .ipx-ri-cta-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .ipx-ri-verdict-legend {
        flex-direction: column;
        gap: 10px;
    }
    
    .ipx-ri-stats {
        gap: 16px;
    }
    
    .ipx-ri-stat {
        flex: 1;
        min-width: calc(50% - 8px);
    }
}

/* ---- extracted block ---- */

/* Collapsed Review Card Container */
.ip-review-card.ip-rc-collapsed {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ip-review-card.ip-rc-collapsed:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.ip-review-card.ip-rc-collapsed.is-expanded {
    border-color: rgba(200, 42, 239, 0.22);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Collapsed Preview Section */
.ip-rc-collapsed-preview {
    padding: 16px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ip-rc-collapsed-preview:hover {
    background: rgba(255, 255, 255, 0.02);
}

.ip-rc-collapsed-main {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Collapsed Header */
.ip-rc-collapsed-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ip-rc-collapsed-author {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.ip-rc-collapsed .ip-rc-avatar {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.ip-rc-collapsed .ip-rc-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.ip-rc-collapsed .ip-rc-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ip-rc-collapsed .ip-rc-author-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--rv-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ip-rc-collapsed .ip-rc-reviewed {
    font-size: var(--rv-meta-small);
    color: var(--rv-text-muted);
}

.ip-rc-collapsed .ip-rc-reviewed a {
    color: var(--rv-text-secondary);
    text-decoration: none;
}

.ip-rc-collapsed .ip-rc-reviewed a:hover {
    color: var(--ipx-accent);
}

/* Phase 9: Author Reviews Link */
.ip-rc-author-reviews-link {
    font-size: var(--rv-meta-small);
    color: var(--rv-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ip-rc-author-reviews-link:hover {
    color: var(--ipx-accent);
}

/* Collapsed Recommendation Badge */
.ip-rc-collapsed .ip-rc-recommendation {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: var(--rv-meta-small);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

/* Collapsed Headline */
.ip-rc-collapsed .ip-rc-headline {
    margin: 6px 0 0 0;
    font-size: var(--rv-title);
    font-weight: 600;
    color: var(--rv-text-primary);
    line-height: var(--rv-lh-tight);
}

/* Collapsed Excerpt */
.ip-rc-collapsed-excerpt {
    margin: 8px 0 0 0;
    font-size: var(--rv-body);
    line-height: var(--rv-lh-relaxed);
    color: var(--rv-text-secondary);
}

/* Collapsed Meta Row */
.ip-rc-collapsed-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.ip-rc-collapsed-meta .ip-rc-meta-item {
    font-size: var(--rv-meta);
    color: var(--rv-text-muted);
}

/* Phase 8: Meta Chips (Length Indicator & Credibility Signals) */
.ip-rc-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

/* Length Indicator Chips */
.ip-rc-length-quick {
    background: rgba(99, 102, 241, 0.12);
    color: #a5b4fc;
}

.ip-rc-length-in-depth {
    background: rgba(16, 185, 129, 0.12);
    color: #6ee7b7;
}

/* Credibility Signal Chips */
.ip-rc-credibility {
    background: rgba(251, 191, 36, 0.12);
    color: #fcd34d;
}

.ip-rc-credibility-veteran {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.ip-rc-credibility-dedicated {
    background: rgba(139, 92, 246, 0.12);
    color: #c4b5fd;
}

/* Expand Button */
.ip-rc-expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    margin-left: auto;
    background: rgba(37, 132, 25, 0.1);
    border: 1px solid rgba(200, 42, 239, 0.22);
    border-radius: 6px;
    color: var(--ipx-accent);
    font-size: var(--rv-meta);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ip-rc-expand-btn:hover {
    background: rgba(200, 42, 239, 0.18);
    border-color: rgba(37, 132, 25, 0.5);
}

.ip-rc-expand-icon {
    transition: transform 0.3s ease;
}

.ip-review-card.ip-rc-collapsed.is-expanded .ip-rc-expand-icon {
    transform: rotate(180deg);
}

.ip-review-card.ip-rc-collapsed.is-expanded .ip-rc-expand-text {
    display: none;
}

/* Hide collapsed preview content when expanded (show only expand button/show less) */
.ip-review-card.ip-rc-collapsed.is-expanded .ip-rc-collapsed-excerpt {
    display: none;
}

.ip-review-card.ip-rc-collapsed.is-expanded .ip-rc-collapsed-meta .ip-rc-meta-item {
    display: none;
}

.ip-review-card.ip-rc-collapsed.is-expanded .ip-rc-collapsed-meta .ip-rc-meta-chip {
    display: none;
}

.ip-review-card.ip-rc-collapsed.is-expanded .ip-rc-expand-btn::before {
    content: 'Show less';
}

/* Expanded Content Section */
.ip-rc-expanded-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
    border-top: 1px solid transparent;
}

.ip-review-card.ip-rc-collapsed.is-expanded .ip-rc-expanded-content {
    max-height: 2000px; /* Large enough for any review */
    opacity: 1;
    padding: 20px;
    border-top-color: var(--rv-border);
}

/* Full Review Body */
.ip-rc-collapsed .ip-rc-body {
    font-size: var(--rv-body-expanded);
    line-height: var(--rv-lh-loose);
    color: var(--rv-text-primary);
}

.ip-rc-collapsed .ip-rc-body p {
    margin: 0 0 1.25em 0;
}

.ip-rc-collapsed .ip-rc-body p:last-child {
    margin-bottom: 0;
}

/* Full Meta in Expanded */
.ip-rc-collapsed .ip-rc-meta-full {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 0;
    margin-top: 16px;
    border-top: 1px solid var(--rv-border);
}

.ip-rc-collapsed .ip-rc-meta-full .ip-rc-meta-item {
    font-size: var(--rv-meta);
    color: var(--rv-text-muted);
}

/* Footer in Expanded */
.ip-rc-collapsed .ip-rc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid var(--rv-border);
}

.ip-rc-collapsed .ip-rc-voting {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ip-rc-collapsed .ip-rc-voting-label {
    font-size: var(--rv-meta);
    color: var(--rv-text-muted);
    margin-right: 4px;
}

.ip-rc-collapsed .ip-rc-vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--rv-border-hover);
    border-radius: 6px;
    color: var(--rv-text-secondary);
    font-size: var(--rv-meta);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ip-rc-collapsed .ip-rc-vote-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.ip-rc-collapsed .ip-rc-vote-btn.active {
    background: rgba(37, 132, 25, 0.15);
    border-color: rgba(37, 132, 25, 0.4);
    color: var(--ipx-accent);
}

.ip-rc-collapsed .ip-rc-vote-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ip-rc-collapsed .ip-rc-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ip-rc-collapsed .ip-rc-actions a,
.ip-rc-collapsed .ip-rc-actions button {
    font-size: var(--rv-meta);
    color: var(--rv-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ip-rc-collapsed .ip-rc-actions a:hover,
.ip-rc-collapsed .ip-rc-actions button:hover {
    color: var(--ipx-accent);
}

/* Collapse Button at Bottom */
.ip-rc-collapse-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 12px;
    margin-top: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ip-rc-collapse-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
}

/* Spoiler Warning in Collapsed Mode */
.ip-rc-collapsed .ip-rc-spoiler-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    margin-bottom: 16px;
}

.ip-rc-collapsed .ip-rc-spoiler-warning span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.ip-rc-collapsed .ip-rc-spoiler-reveal {
    margin-left: auto;
    padding: 6px 12px;
    background: rgba(245, 158, 11, 0.2);
    border: none;
    border-radius: 4px;
    color: #f59e0b;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ip-rc-collapsed .ip-rc-spoiler-reveal:hover {
    background: rgba(245, 158, 11, 0.3);
}

/* Staff Badge - Phase 5 */
.ip-rc-staff-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 8px;
    padding: 2px 8px;
    background: linear-gradient(135deg, rgba(200, 42, 239, 0.18), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(200, 42, 239, 0.22);
    border-radius: 4px;
    color: var(--ipx-accent);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

/* Cognitive Load Reduction - Phase 5 */
/* Improved paragraph spacing in expanded reviews */
.ip-rc-expanded-content .ip-rc-body {
    line-height: 1.75;
}

.ip-rc-expanded-content .ip-rc-body p {
    margin-bottom: 1.25em;
}

.ip-rc-expanded-content .ip-rc-body p:last-child {
    margin-bottom: 0;
}

/* Better visual hierarchy for expanded content */
.ip-rc-expanded-content .ip-rc-headline {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
}

/* Subtle emphasis on common review keywords */
.ip-rc-expanded-content .ip-rc-body strong,
.ip-rc-expanded-content .ip-rc-body b {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

/* Improve blockquote styling if used */
.ip-rc-expanded-content .ip-rc-body blockquote {
    margin: 1em 0;
    padding: 12px 16px;
    border-left: 3px solid rgba(37, 132, 25, 0.5);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.75);
}

/* List styling for pros/cons if present */
.ip-rc-expanded-content .ip-rc-body ul,
.ip-rc-expanded-content .ip-rc-body ol {
    margin: 1em 0;
    padding-left: 1.5em;
}

.ip-rc-expanded-content .ip-rc-body li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .ip-rc-collapsed-preview {
        padding: 14px 16px;
    }
    
    .ip-rc-collapsed-header {
        flex-wrap: nowrap;
        position: relative;
    }
    
    .ip-rc-collapsed .ip-rc-recommendation {
        position: absolute;
        top: 0;
        right: 0;
    }
    
    .ip-rc-collapsed .ip-rc-collapsed-author {
        padding-right: 90px; /* Make room for badge */
    }
    
    .ip-rc-collapsed-meta {
        gap: 8px;
    }
    
    .ip-rc-expand-btn {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: 8px;
    }
    
    .ip-review-card.ip-rc-collapsed.is-expanded .ip-rc-expanded-content {
        padding: 16px;
    }
    
    .ip-rc-collapsed .ip-rc-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ip-rc-collapsed .ip-rc-voting {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .ip-rc-collapsed .ip-rc-actions {
        justify-content: center;
    }
    
    /* Staff badge on mobile */
    .ip-rc-staff-badge {
        padding: 1px 6px;
        font-size: 10px;
    }
}

/* ---- extracted block ---- */

/* Featured Reviews Container */
.ipx-featured-reviews {
    margin-bottom: 32px;
}

.ipx-featured-title {
    font-size: var(--rv-h2);
    font-weight: 600;
    color: var(--rv-text-primary);
    margin: 0 0 6px 0;
}

.ipx-featured-subtitle {
    font-size: var(--rv-meta);
    color: var(--rv-text-muted);
    margin: 0 0 16px 0;
    font-style: italic;
}

/* Featured Row - Flex Grid */
.ipx-featured-row {
    display: flex;
    gap: 16px;
}

/* Featured Card */
.ipx-featured-card {
    flex: 1 1 0;
    min-width: 0;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--rv-border);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ipx-featured-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(200, 42, 239, 0.22);
    transform: translateY(-2px);
}

/* Featured Label */
.ipx-featured-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ipx-featured-icon {
    font-size: 16px;
}

.ipx-featured-type {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ipx-accent);
}

/* Featured Author Row */
.ipx-featured-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ipx-featured-avatar {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.ipx-featured-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.ipx-featured-name {
    font-size: var(--rv-meta);
    font-weight: 500;
    color: var(--rv-text-primary);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Featured Recommendation Badge */
.ipx-featured-rec {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.ipx-fr-rec-complete {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.ipx-fr-rec-play {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.ipx-fr-rec-skip {
    background: rgba(107, 114, 128, 0.15);
    color: #9ca3af;
}

/* Featured Headline */
.ipx-featured-headline {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--rv-text-primary);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Featured Excerpt */
.ipx-featured-excerpt {
    margin: 0;
    font-size: var(--rv-body);
    line-height: 1.6;
    color: var(--rv-text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    min-height: calc(var(--rv-body) * 1.6 * 3); /* Ensure space for 3 lines */
}

/* Featured Meta */
.ipx-featured-meta {
    display: flex;
    gap: 14px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--rv-border);
}

.ipx-featured-stat {
    font-size: var(--rv-meta);
    color: var(--rv-text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .ipx-featured-row {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        margin-bottom: -8px;
    }
    
    .ipx-featured-row::-webkit-scrollbar {
        height: 6px;
    }

    .ipx-featured-row::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 3px;
    }

    .ipx-featured-row::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.15);
        border-radius: 3px;
    }
    
    .ipx-featured-card {
        flex: 0 0 280px;
        min-height: 200px;
        scroll-snap-align: start;
    }
    
    .ipx-featured-headline {
        font-size: 17px;
    }
    
    .ipx-featured-excerpt {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .ipx-featured-card {
        flex: 0 0 260px;
        padding: 16px;
        min-height: 190px;
    }
    
    .ipx-featured-headline {
        font-size: 16px;
    }
    
    .ipx-featured-excerpt {
        font-size: var(--rv-body); /* 16px floor */
        -webkit-line-clamp: 2;
    }
    
    .ipx-featured-stat {
        font-size: var(--rv-meta);
    }
}

/* ---- extracted block ---- */

/* Tabbed Reviews Container */
.ipx-tabbed-reviews {
    margin-top: 24px;
}

/* Reset shortcode container styles inside tabbed reviews */
.ipx-tabbed-reviews .ip-review-cards-container {
    max-width: none;
}

.ipx-tabbed-reviews .ip-review-cards-header {
    display: none; /* Hide the shortcode header, we have our own tabs */
}

.ipx-tabbed-reviews .ip-review-cards-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ipx-tabbed-reviews .ip-review-cards-pagination {
    display: none; /* Hide shortcode pagination, we use load more */
}

/* Ensure consistent card margins */
.ipx-reviews-list .ip-review-card,
.ipx-tabbed-reviews .ip-review-card {
    margin-bottom: 16px;
}

.ipx-reviews-list .ip-review-card:last-child,
.ipx-tabbed-reviews .ip-review-card:last-child {
    margin-bottom: 0;
}

/* Tab Navigation */
.ipx-review-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--rv-border);
}

.ipx-tabs-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Tab Button */
.ipx-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--rv-border);
    border-radius: 8px;
    color: var(--rv-text-muted);
    font-size: var(--rv-meta);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ipx-tab-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--rv-border-hover);
    color: var(--rv-text-secondary);
}

.ipx-tab-btn.active {
    background: rgba(200, 42, 239, 0.14);
    border-color: rgba(200, 42, 239, 0.38);
    color: rgba(255, 255, 255, 0.95);
}

.ipx-tab-icon {
    font-size: 15px;
}

.ipx-tab-label {
    white-space: nowrap;
}

.ipx-tab-count {
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.ipx-tab-btn.active .ipx-tab-count {
    background: rgba(200, 42, 239, 0.28);
    color: rgba(255, 255, 255, 0.95);
}

/* Review card: "Read full review" toggle button should be high-contrast (pink + white)
   Important: this targets the expand/collapse toggle, NOT the "View full review" link.
   Scoped to single-game reviews to avoid impacting other contexts. */
.ipx-reviews .ip-rc-expand-btn,
.ipx-tabbed-reviews .ip-rc-expand-btn,
.ipx-reviews .ip-rc-collapse-btn,
.ipx-tabbed-reviews .ip-rc-collapse-btn {
    background: rgba(200, 42, 239, 0.14);
    border: 1px solid rgba(200, 42, 239, 0.45);
    color: rgba(255, 255, 255, 0.98);
}

.ipx-reviews .ip-rc-expand-btn:hover,
.ipx-tabbed-reviews .ip-rc-expand-btn:hover,
.ipx-reviews .ip-rc-collapse-btn:hover,
.ipx-tabbed-reviews .ip-rc-collapse-btn:hover {
    background: rgba(200, 42, 239, 0.22);
    border-color: rgba(200, 42, 239, 0.60);
    color: #fff;
}

.ipx-reviews .ip-rc-expand-btn:focus-visible,
.ipx-tabbed-reviews .ip-rc-expand-btn:focus-visible,
.ipx-reviews .ip-rc-collapse-btn:focus-visible,
.ipx-tabbed-reviews .ip-rc-collapse-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(200, 42, 239, 0.25);
}

/* Sort Dropdown */
.ipx-review-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ipx-review-sort label {
    font-size: var(--rv-meta);
    color: var(--rv-text-muted);
}

.ipx-sort-select {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--rv-border-hover);
    border-radius: 6px;
    color: var(--rv-text-primary);
    font-size: var(--rv-meta);
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.ipx-sort-select:hover,
.ipx-sort-select:focus {
    border-color: rgba(255, 255, 255, 0.2);
    outline: none;
}

.ipx-sort-select option {
    background: #1a1a1a;
    color: #fff;
}

/* Reviews Container */
.ipx-reviews-container {
    position: relative;
    min-height: 200px;
}

/* Loading State */
.ipx-reviews-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(25, 25, 24, 0.9);
    z-index: 10;
    border-radius: 12px;
}

.ipx-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--ipx-accent);
    border-radius: 50%;
    animation: ipx-spin 0.8s linear infinite;
}

@keyframes ipx-spin {
    to { transform: rotate(360deg); }
}

.ipx-reviews-loading span {
    font-size: 14px;
    color: var(--rv-text-muted);
}

/* No Reviews Message */
.ipx-no-reviews {
    text-align: center;
    padding: 48px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--rv-border-hover);
    border-radius: 12px;
}

.ipx-no-reviews p {
    margin: 0;
    color: var(--rv-text-muted);
    font-size: var(--rv-body);
}

/* Load More Button */
.ipx-load-more {
    display: block;
    width: 100%;
    padding: 16px;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--rv-border);
    border-radius: 8px;
    color: var(--rv-text-secondary);
    font-size: var(--rv-meta);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ipx-load-more:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--rv-border-hover);
    color: var(--rv-text-primary);
}

.ipx-load-more:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .ipx-review-tabs {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .ipx-tabs-row {
        overflow-x: auto;
        padding-bottom: 8px;
        margin-bottom: -8px;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .ipx-tab-btn {
        flex-shrink: 0;
        padding: 8px 14px;
        font-size: var(--rv-meta);
    }
    
    .ipx-review-sort {
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .ipx-tab-btn {
        padding: 6px 10px;
    }
    
    .ipx-tab-label {
        display: none;
    }
    
    .ipx-tab-btn .ipx-tab-icon + .ipx-tab-count {
        margin-left: 0;
    }
    
    /* Show label for "All" tab only */
    .ipx-tab-btn[data-filter="all"] .ipx-tab-label {
        display: inline;
    }
}

/* ---- extracted block ---- */

.ipx-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.ipx-lightbox.active {
    opacity: 1;
    visibility: visible;
}
.ipx-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}
.ipx-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ipx-lightbox.active .ipx-lightbox-content {
    transform: scale(1);
}
.ipx-lightbox-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.ipx-lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.ipx-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 10;
}
.ipx-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}
.ipx-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 10;
}
.ipx-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}
.ipx-lightbox-prev {
    left: -70px;
}
.ipx-lightbox-next {
    right: -70px;
}
.ipx-lightbox-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}
/* Lightbox Video Container */
.ipx-lightbox-video-wrap,
.ipx-lightbox-image-wrap {
    position: relative;
    width: 90vw;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ipx-lightbox-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.ipx-lightbox-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.ipx-lightbox-type-indicator {
    position: absolute;
    top: -45px;
    left: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    z-index: 10;
}
.ipx-lightbox-type-indicator svg {
    opacity: 0.8;
}
@media (max-width: 768px) {
    .ipx-lightbox {
        padding: 15px;
        align-items: center;
    }
    .ipx-lightbox-content {
        max-width: 100%;
        max-height: 100%;
        width: 100%;
    }
    .ipx-lightbox-nav {
        display: flex;
        position: fixed;
        width: 44px;
        height: 44px;
        background: rgba(0, 0, 0, 0.7);
        z-index: 100003;
    }
    .ipx-lightbox-prev {
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
    }
    .ipx-lightbox-next {
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
    }
    .ipx-lightbox-close {
        position: fixed;
        top: 15px;
        right: 15px;
        background: rgba(0, 0, 0, 0.7);
        z-index: 100003;
    }
    .ipx-lightbox-counter {
        position: fixed;
        bottom: 15px;
        left: 50%;
        z-index: 100003;
    }
    .ipx-lightbox-type-indicator {
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 100003;
    }
    .ipx-lightbox-video-wrap,
    .ipx-lightbox-image-wrap {
        width: 100%;
        max-width: 100%;
        padding-top: 60px;
        padding-bottom: 60px;
    }
    .ipx-lightbox-video-container {
        width: 100%;
        padding-bottom: 56.25%;
        border-radius: 0;
    }
    .ipx-lightbox-img {
        max-height: 60vh;
        max-width: 100%;
        border-radius: 4px;
    }
    .ipx-lightbox-media {
        width: 100%;
        max-height: calc(100vh - 120px);
        overflow: hidden;
    }
}

/* ========================================
   RELATED GAMES SECTION
   ======================================== */
.ipx-related-games {
    margin-top: 48px;
}

.ipx-related-games .ipx-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

/* Carousel Controls */
.ipx-carousel-controls {
    display: flex;
    gap: 8px;
}
.ipx-carousel-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}
.ipx-carousel-btn:hover:not(:disabled) {
    background: rgba(200, 42, 239, 0.18);
    border-color: rgba(37, 132, 25, 0.4);
}
.ipx-carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Carousel Wrapper */
.ipx-carousel-wrapper {
    overflow: hidden;
    margin: 0 -10px;
    padding: 0 10px;
}
.ipx-related-carousel {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
}
.ipx-related-carousel .ipx-related-card {
    flex: 0 0 calc(25% - 15px);
    min-width: calc(25% - 15px);
}

.ipx-related-card {
    display: block;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}
.ipx-related-card:hover {
    transform: translateY(-4px);
    border-color: rgba(200, 42, 239, 0.22);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.ipx-related-banner {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #1a1a1a;
}
.ipx-related-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.ipx-related-card:hover .ipx-related-banner img {
    transform: scale(1.05);
}
.ipx-related-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    pointer-events: none;
}
.ipx-related-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    color: #444;
}

.ipx-related-info {
    padding: 16px;
}
.ipx-related-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ipx-related-genre {
    display: block;
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 6px;
}
.ipx-related-reviews {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #666;
}
.ipx-related-reviews svg {
    opacity: 0.7;
}

/* Responsive Carousel */
@media (max-width: 1100px) {
    .ipx-related-carousel .ipx-related-card {
        flex: 0 0 calc(33.333% - 14px);
        min-width: calc(33.333% - 14px);
    }
}
@media (max-width: 800px) {
    .ipx-related-carousel .ipx-related-card {
        flex: 0 0 calc(50% - 10px);
        min-width: calc(50% - 10px);
    }
}
@media (max-width: 500px) {
    .ipx-related-games .ipx-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .ipx-carousel-controls {
        align-self: flex-end;
    }
    .ipx-related-carousel .ipx-related-card {
        flex: 0 0 calc(100% - 0px);
        min-width: calc(100% - 0px);
    }
    .ipx-related-info {
        padding: 14px;
    }
}

/* ---- extracted block ---- */

/* Video Backdrop Container */
.ipx-video-backdrop {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.ipx-video-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.78vh; /* 16:9 aspect ratio */
    height: 100vh;
    min-width: 100%;
    min-height: 56.25vw; /* 16:9 aspect ratio */
    transform: translate(-50%, -50%);
}

.ipx-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.ipx-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(13, 13, 13, 0.2) 0%,
        rgba(13, 13, 13, 0.05) 30%,
        rgba(13, 13, 13, 0.05) 60%,
        rgba(13, 13, 13, 0.7) 100%
    );
    pointer-events: none;
}

/* Base gradient - ensure proper z-index stacking */
.ipx-hero-gradient {
    z-index: 1;
    pointer-events: none;
}

/* Netflix-style gradient for text readability - clean fade */
.ipx-hero-has-video .ipx-hero-gradient-text {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 55%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(13, 13, 13, 1) 0%,
        rgba(13, 13, 13, 1) 30%,
        rgba(13, 13, 13, 0.95) 45%,
        rgba(13, 13, 13, 0.7) 60%,
        rgba(13, 13, 13, 0.3) 75%,
        rgba(13, 13, 13, 0.1) 85%,
        transparent 100%
    );
}

/* Add subtle blur at the gradient edge - disabled to avoid film lines */
.ipx-hero-has-video .ipx-hero-gradient-text::before {
    display: none;
}

/* Desktop: Larger sticky button */
@media (min-width: 769px) {
    .ipx-sticky-play-btn {
        padding: 20px 32px;
        gap: 12px;
        font-size: 1.0625rem;
    }
    .ipx-sticky-play-icon {
        width: 22px;
        height: 22px;
    }
    .ipx-sticky-play-chevron {
        width: 18px;
        height: 18px;
    }
}

/* Image Backdrop (fallback/loading state) */
.ipx-image-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    transition: opacity 1s ease;
}

.ipx-image-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ipx-hero-has-video .ipx-image-backdrop {
    opacity: 0;
}

.ipx-hero-has-video.video-loading .ipx-image-backdrop,
.ipx-hero-has-video.video-paused .ipx-image-backdrop,
.ipx-hero-has-video.video-hidden .ipx-image-backdrop {
    opacity: 1 !important;
}

/* Hide video when user closes it */
.ipx-hero-has-video.video-hidden .ipx-video-backdrop {
    opacity: 0 !important;
    pointer-events: none;
}

/* Video Controls - Top Right */
.ipx-video-controls {
    position: absolute;
    top: calc(var(--ip-header-height, 64px) + var(--ip-admin-bar-height, 0px) + 26px);
    right: 40px;
    z-index: 20;
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Admin bar is included via --ip-admin-bar-height */

.ipx-hero:hover .ipx-video-controls,
.ipx-video-controls:focus-within {
    opacity: 1;
    transform: translateY(0);
}

.ipx-video-ctrl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ipx-video-ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.ipx-video-expand-btn {
    width: auto;
    padding: 0 20px;
    border-radius: 8px;
}

.ipx-video-expand-btn span {
    margin-left: 4px;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    /* Move video controls to top on mobile */
    .ipx-video-controls {
        bottom: auto;
        top: calc(var(--ip-header-height, 64px) + var(--ip-admin-bar-height, 0px) + 16px);
        right: 15px;
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Admin bar is included via --ip-admin-bar-height */
    
    .ipx-video-expand-btn span {
        display: none;
    }
    
    .ipx-video-expand-btn {
        width: 44px;
        padding: 0;
        border-radius: 50%;
    }
    
    .ipx-video-ctrl-btn {
        width: 38px;
        height: 38px;
    }
    
    /* Remove top gap - video starts at very top */
    .ipx-hero-has-video .ipx-hero-backdrop {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 50%;
    }
    
    .ipx-hero-has-video .ipx-video-backdrop {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding: 0;
    }
    
    .ipx-hero-has-video .ipx-video-container {
        position: relative;
        top: 0;
        left: auto;
        transform: none;
        width: 100%;
        height: auto;
        min-width: auto;
        min-height: auto;
        aspect-ratio: 16 / 9;
        border-radius: 0;
        overflow: hidden;
        box-shadow: none;
    }
    
    /* Hide banner when video loads on mobile */
    .ipx-hero-has-video.video-ready .ipx-image-backdrop {
        opacity: 0 !important;
    }
    
    /* Show banner if video fails, still loading, OR user closes video */
    .ipx-hero-has-video.video-loading .ipx-image-backdrop,
    .ipx-hero-has-video.video-failed .ipx-image-backdrop,
    .ipx-hero-has-video.video-hidden .ipx-image-backdrop {
        opacity: 1 !important;
    }
    
    /* Hide video when user closes it */
    .ipx-hero-has-video.video-hidden .ipx-video-backdrop {
        opacity: 0 !important;
        pointer-events: none;
    }
    
    /* Adjust gradient for mobile layout */
    .ipx-hero-has-video .ipx-hero-gradient-text {
        height: 60%;
        background: linear-gradient(
            to top,
            rgba(13, 13, 13, 1) 0%,
            rgba(13, 13, 13, 0.98) 20%,
            rgba(13, 13, 13, 0.8) 40%,
            transparent 100%
        );
    }
    
    .ipx-hero-has-video .ipx-hero-gradient-text::before {
        display: none;
    }
    
    /* Add padding between video and content */
    .ipx-hero-has-video .ipx-hero-content {
        padding-top: 20px;
    }
}

/* Very small screens - hide video, show banner */
@media (max-width: 480px) {
    .ipx-video-backdrop {
        display: none;
    }
    
    .ipx-hero-has-video .ipx-image-backdrop {
        opacity: 1 !important;
    }
    
    .ipx-video-controls {
        display: none;
    }
    
    /* Keep gradient visible for fade effect */
    .ipx-hero-gradient,
    .ipx-hero-has-video .ipx-hero-gradient-text {
        display: block !important;
    }
}

/* ==========================================================================
   EXPERIMENTAL LAYOUT v2: Rating Column on Right
   ========================================================================== */

/* Updated grid: 3 columns on desktop (poster | info | rating) */
.ipx-hero-inner.ipx-hero-v2 {
    grid-template-columns: 220px 1fr 280px;
    gap: 40px;
}

/* Synopsis - clearer white color */
.ipx-hero-v2 .ipx-synopsis {
    color: rgba(255, 255, 255, 0.9);
}

/*
 * Phase 5 (Single Game Template Updates): Title wrap + sizing
 * - Keep long titles readable across breakpoints
 * - Reduce max size slightly so 2-line titles feel intentional
 */
.ipx-hero-inner.ipx-hero-v2 .ipx-title {
    max-width: 800px;
    line-height: 1.18;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
    /* Clamp ensures a controlled max size on large screens */
    font-size: clamp(2.1rem, 3.1vw, 3.0rem);
}

/* Status & Maturity badges row (moved below synopsis) - larger size */
.ipx-status-maturity-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.ipx-status-maturity-row .ipx-status-badge {
    margin: 0;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
}

.ipx-status-maturity-row .ipx-submission-status-badge {
    margin: 0;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 4px;
    color: #ffd166;
    background: rgba(255, 209, 102, 0.16);
    border: 1px solid rgba(255, 209, 102, 0.35);
}

.ipx-status-maturity-row .ipx-rating-badge {
    margin: 0;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Mobile Rating Badge (hidden on desktop) */
.ipx-mobile-rating-badge {
    display: none;
}

/* Rating Column Styles (Desktop) */
.ipx-rating-column {
    display: flex;
    align-items: flex-end;
    padding-bottom: 10px;
}

.ipx-overall-rating {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    width: 100%;
}

.ipx-overall-badge {
    text-align: center;
    margin-bottom: 20px;
}

.ipx-overall-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--ipx-text-3);
    margin-bottom: 8px;
}

.ipx-overall-verdict {
    display: block;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

/* Rating colors based on verdict */
.ipx-rating-complete .ipx-overall-verdict { color: var(--ipx-rec-complete); }
.ipx-rating-play .ipx-overall-verdict { color: var(--ipx-rec-play); }
.ipx-rating-skip .ipx-overall-verdict { color: var(--ipx-rec-skip); }
.ipx-rating-unrated .ipx-overall-verdict { color: var(--ipx-text-2); }
.ipx-rating-unreleased .ipx-overall-verdict { color: var(--ipx-text-2); }
.ipx-rating-cancelled .ipx-overall-verdict { color: var(--ipx-text-2); opacity: 0.7; }

/* Unrated state hint text */
.ipx-rating-unrated-hint,
.ipx-mobile-rating-unrated-hint {
    text-align: center;
    padding: 16px 8px;
    color: var(--ipx-text-2);
    font-size: 13px;
    font-style: italic;
}

/* Locked review CTA (not reviewable) */
.ipx-review-cta-locked {
    opacity: 0.7;
    cursor: default;
    pointer-events: none;
}

.ipx-review-cta-locked .ipx-review-cta-icon {
    stroke: var(--ipx-text-2);
}

/* Locked personal review block */
.ipx-prb-locked .ipx-prb-icon-locked,
.ipx-prb-locked .ipx-prb-icon-cancelled {
    color: var(--ipx-text-2);
}

.ipx-prb-not-released {
    border-color: var(--ipx-border);
}

.ipx-prb-hint {
    font-size: 0.875rem;
    color: var(--ipx-text-2);
    font-style: italic;
}

/* Locked block actions wrapper */
.ipx-prb-actions {
    margin-top: 12px;
    text-align: center;
}

/* Secondary CTA style (for locked state login) */
.ipx-prb-cta-secondary {
    background: transparent;
    border: 1px solid var(--ipx-border);
    color: var(--ipx-text-2);
}

.ipx-prb-cta-secondary:hover {
    border-color: var(--ipx-accent);
    color: var(--ipx-text-1);
}

/* Rating bar in column (horizontal) */
.ipx-rating-bar-vertical {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    display: flex;
    overflow: hidden;
    margin-bottom: 16px;
}

.ipx-rating-bar-vertical .ipx-bar-complete { background: var(--ipx-rec-complete); }
.ipx-rating-bar-vertical .ipx-bar-play { background: var(--ipx-rec-play); }
.ipx-rating-bar-vertical .ipx-bar-skip { background: var(--ipx-rec-skip); }

/* Breakdown list */
.ipx-rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.ipx-breakdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.ipx-breakdown-dot {
    font-size: 8px;
}

.ipx-breakdown-label {
    flex: 1;
    color: var(--ipx-text-2);
}

.ipx-breakdown-count {
    font-weight: 600;
    min-width: 24px;
    text-align: right;
}

.ipx-breakdown-complete .ipx-breakdown-dot,
.ipx-breakdown-complete .ipx-breakdown-count { color: var(--ipx-rec-complete); }
.ipx-breakdown-play .ipx-breakdown-dot,
.ipx-breakdown-play .ipx-breakdown-count { color: var(--ipx-rec-play); }
.ipx-breakdown-skip .ipx-breakdown-dot,
.ipx-breakdown-skip .ipx-breakdown-count { color: var(--ipx-rec-skip); }

.ipx-rating-reviews-link {
    display: block;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--ipx-accent);
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.2s ease;
}

.ipx-rating-reviews-link:hover {
    color: #e066ff;
}

/* Desktop: Tighter screenshot section gap */
.ipx-media.ipx-section {
    padding-top: 15px;
}

.ipx-screenshots .ipx-label {
    margin-bottom: 12px !important;
}

/* Mobile Rating Box - Hidden on desktop */
.ipx-mobile-rating-box {
    display: none;
}

/* ==========================================================================
   MOBILE RESPONSIVE - Experimental Layout
   ========================================================================== */

/* TABLET: 768px - 1024px - Keep 3-column layout with rating on right */
@media (max-width: 1024px) and (min-width: 769px) {
    /* 3-column layout on tablet: poster | info | rating */
    .ipx-hero-inner.ipx-hero-v2 {
        grid-template-columns: 160px 1fr 200px;
        gap: 30px;
    }
    
    /* Keep desktop rating column visible on tablet */
    .ipx-rating-column {
        display: flex !important;
    }
    
    /* Hide mobile rating box on tablet */
    .ipx-mobile-rating-box {
        display: none !important;
    }
    
    /* Smaller rating box on tablet */
    .ipx-overall-rating {
        padding: 16px;
        border-radius: 14px;
    }
    
    .ipx-overall-verdict {
        font-size: 18px;
    }
    
    .ipx-rating-breakdown {
        gap: 6px;
    }
    
    .ipx-breakdown-item {
        font-size: 12px;
    }
    
    /* Smaller title on tablet */
    .ipx-hero-inner.ipx-hero-v2 .ipx-title {
        font-size: 2rem;
    }
    
    /* Tighter screenshot gap on tablet */
    .ipx-media.ipx-section {
        padding-top: 15px;
    }
    
    .ipx-screenshots .ipx-label {
        margin-bottom: 10px !important;
    }
}

/* MOBILE: Below 768px - Stack layout with mobile rating box */
@media (max-width: 768px) {
    /* Stack on mobile */
    .ipx-hero-inner.ipx-hero-v2 {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: left;
    }
    
    /* Hide desktop rating column on mobile */
    .ipx-rating-column {
        display: none !important;
    }
    
    /* Show mobile rating box */
    .ipx-mobile-rating-box {
        display: block !important;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        padding: 20px;
        margin-bottom: 20px;
        width: 100%;
    }
    
    /* Show the rating badge header inside the box */
    .ipx-mobile-rating-box .ipx-mobile-rating-badge {
        display: block !important;
        text-align: center;
        margin-bottom: 16px;
    }
    
    .ipx-mobile-rating-top {
        display: block;
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: var(--ipx-text-3);
        margin-bottom: 6px;
    }
    
    .ipx-mobile-rating-label {
        display: block;
        font-size: 20px;
        font-weight: 700;
        letter-spacing: 0.5px;
    }
    
    /* Rating colors for mobile */
    .ipx-mobile-rating-box.ipx-rating-complete .ipx-mobile-rating-label { color: var(--ipx-rec-complete); }
    .ipx-mobile-rating-box.ipx-rating-play .ipx-mobile-rating-label { color: var(--ipx-rec-play); }
    .ipx-mobile-rating-box.ipx-rating-skip .ipx-mobile-rating-label { color: var(--ipx-rec-skip); }
    .ipx-mobile-rating-box.ipx-rating-unrated .ipx-mobile-rating-label { color: var(--ipx-text-2); }
    .ipx-mobile-rating-box.ipx-rating-unreleased .ipx-mobile-rating-label { color: var(--ipx-text-2); }
    .ipx-mobile-rating-box.ipx-rating-cancelled .ipx-mobile-rating-label { color: var(--ipx-text-2); opacity: 0.7; }
    
    /* Rating bar */
    .ipx-mobile-rating-bar {
        height: 8px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        display: flex;
        overflow: hidden;
        margin-bottom: 14px;
    }
    
    .ipx-mobile-rating-bar .ipx-bar-complete { background: var(--ipx-rec-complete); }
    .ipx-mobile-rating-bar .ipx-bar-play { background: var(--ipx-rec-play); }
    .ipx-mobile-rating-bar .ipx-bar-skip { background: var(--ipx-rec-skip); }
    
    /* Breakdown list */
    .ipx-mobile-rating-breakdown {
        display: flex;
        flex-direction: column;
        gap: 6px;
        margin-bottom: 14px;
    }
    
    .ipx-mobile-rating-breakdown .ipx-breakdown-item {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
    }
    
    .ipx-mobile-rating-breakdown .ipx-breakdown-dot {
        font-size: 8px;
    }
    
    .ipx-mobile-rating-breakdown .ipx-breakdown-label {
        flex: 1;
        color: var(--ipx-text-2);
    }
    
    .ipx-mobile-rating-breakdown .ipx-breakdown-count {
        font-weight: 600;
        min-width: 20px;
        text-align: right;
    }
    
    .ipx-mobile-rating-breakdown .ipx-breakdown-complete .ipx-breakdown-dot,
    .ipx-mobile-rating-breakdown .ipx-breakdown-complete .ipx-breakdown-count { color: var(--ipx-rec-complete); }
    .ipx-mobile-rating-breakdown .ipx-breakdown-play .ipx-breakdown-dot,
    .ipx-mobile-rating-breakdown .ipx-breakdown-play .ipx-breakdown-count { color: var(--ipx-rec-play); }
    .ipx-mobile-rating-breakdown .ipx-breakdown-skip .ipx-breakdown-dot,
    .ipx-mobile-rating-breakdown .ipx-breakdown-skip .ipx-breakdown-count { color: var(--ipx-rec-skip); }
    
    /* Reviews link */
    .ipx-mobile-rating-link {
        display: block;
        text-align: center;
        font-size: 13px;
        font-weight: 500;
        color: var(--ipx-accent);
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .ipx-mobile-rating-link:hover {
        color: #e066ff;
    }
    
    .ipx-hero-inner.ipx-hero-v2 .ipx-poster-wrap {
        justify-self: start;
    }
    
    .ipx-hero-inner.ipx-hero-v2 .ipx-meta-line {
        justify-content: flex-start;
    }
    
    .ipx-hero-inner.ipx-hero-v2 .ipx-status-maturity-row {
        justify-content: flex-start;
    }
    
    .ipx-hero-inner.ipx-hero-v2 .ipx-synopsis {
        max-width: 100%;
    }
    
    /* Center actions */
    .ipx-hero-inner.ipx-hero-v2 .ipx-actions {
        width: 100%;
    }
    
    /* Tighter screenshot gap on mobile */
    .ipx-media.ipx-section {
        padding-top: 15px;
    }
    
    .ipx-screenshots .ipx-label {
        margin-bottom: 8px !important;
    }
    
    /* DARKER gradient on mobile for better fade */
    .ipx-hero-gradient {
        display: block !important;
        z-index: 1 !important;
        background: linear-gradient(to top, var(--ipx-bg) 0%, var(--ipx-bg) 25%, rgba(13,13,13,0.9) 40%, rgba(13,13,13,0.5) 60%, transparent 80%) !important;
    }
    
    /* Darker text gradient for video pages */
    .ipx-hero-has-video .ipx-hero-gradient-text {
        display: block !important;
        z-index: 2 !important;
        background: linear-gradient(to top, var(--ipx-bg) 0%, var(--ipx-bg) 20%, rgba(13,13,13,0.95) 40%, rgba(13,13,13,0.7) 55%, transparent 75%) !important;
    }
    
    /* Ensure banner shows when video is hidden */
    .ipx-hero-has-video.video-hidden .ipx-image-backdrop {
        opacity: 1 !important;
    }
    
    .ipx-hero-has-video.video-hidden .ipx-video-backdrop {
        opacity: 0 !important;
    }
}
/* ==========================================================================
   Delete Button for MY REVIEW Section (Phase 5: Review Deletion)
   ========================================================================== */

.ipx-prb-action-delete {
    border-color: rgba(239, 68, 68, 0.3);
    color: rgba(239, 68, 68, 0.8);
}

.ipx-prb-action-delete:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
}

.ipx-prb-action-delete:focus-visible {
    outline: 2px solid #ef4444;
    outline-offset: 2px;
}
