:root {
    --txr-dark: #18181b;
    --txr-dark-soft: #27272a;
    --txr-crimson: #be123c;
    --txr-rose: #f43f5e;
    --txr-rose-bg: #fff1f2;
    --txr-bg: #f4f4f5;
    --txr-white: #ffffff;
    --txr-text: #18181b;
    --txr-body: #3f3f46;
    --txr-muted: #71717a;
    --txr-border: #e4e4e7;
}

/* 1. Ironclad Anti-Overflow Reset */
*, *::before, *::after {
    box-sizing: border-box;
}
html {
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}
body {
    margin: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
    background: var(--txr-bg);
    color: var(--txr-text);
    line-height: 1.65;
    font-size: 16px;
}
main, section, article, aside, nav, header, footer, div {
    min-width: 0;
}
img, svg, video {
    max-width: 100%;
    height: auto;
    display: block;
}
p, h1, h2, h3, h4, li, td, th, code, a, span {
    overflow-wrap: anywhere;
    word-break: break-word;
}
code {
    background: #f4f4f5;
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 0.88em;
}
a {
    color: var(--txr-crimson);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
.txr-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 2. Dark Showcase Header */
.txr-top {
    background: var(--txr-dark);
    color: #fff;
    padding: 18px 0;
    border-bottom: 3px solid var(--txr-crimson);
}
.txr-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.txr-brand {
    color: #fff !important;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.txr-stage-dot {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--txr-crimson), var(--txr-rose));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 15px;
    flex-shrink: 0;
}
.txr-brand-name {
    font-size: clamp(1.08rem, 2vw, 1.28rem);
    font-weight: 800;
    letter-spacing: -0.3px;
    display: block;
    line-height: 1.2;
}
.txr-brand-tag {
    font-size: 12.5px;
    color: #a1a1aa;
    display: block;
    line-height: 1.3;
}
.txr-searchbox {
    display: flex;
    gap: 6px;
    width: 100%;
    max-width: 330px;
}
.txr-searchbox input {
    background: var(--txr-dark-soft);
    border: 1px solid #3f3f46;
    color: #fff;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 14px;
    flex: 1 1 0%;
    min-width: 0;
    width: 100%;
}
.txr-searchbox input::placeholder {
    color: #a1a1aa;
}
.txr-searchbox button {
    background: var(--txr-crimson);
    color: #fff;
    border: none;
    padding: 9px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
}

/* 3. Collections Strip (Wrapped on Desktop, Touch Swipe on Mobile) */
.txr-collections {
    background: #fff;
    border-bottom: 1px solid var(--txr-border);
    position: sticky;
    top: 0;
    z-index: 30;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}
.txr-col-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 10px 0;
}
.txr-col-list li {
    flex-shrink: 0;
}
.txr-col-list a {
    display: inline-block;
    padding: 6px 13px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--txr-body);
    background: #fafafa;
    border: 1px solid var(--txr-border);
    white-space: nowrap;
    text-decoration: none !important;
    transition: all 0.15s ease;
}
.txr-col-list a:hover {
    background: var(--txr-rose-bg);
    color: var(--txr-crimson);
    border-color: #fecdd3;
}
.txr-col-list a.active {
    background: var(--txr-crimson);
    color: #fff;
    border-color: var(--txr-crimson);
}

/* 4. Spotlight Hero */
.txr-stage {
    background: linear-gradient(125deg, #18181b 0%, #4c0519 100%);
    color: #fff;
    border-radius: 18px;
    padding: 30px 34px;
    margin: 24px 0;
}
.txr-stage h1 {
    margin: 0 0 8px;
    font-size: clamp(1.38rem, 2.6vw, 1.95rem);
    letter-spacing: -0.3px;
    line-height: 1.25;
}
.txr-stage p {
    margin: 0;
    color: #fecdd3;
    max-width: 760px;
    font-size: clamp(0.92rem, 1.4vw, 1rem);
}

/* 5. Symmetrical Showcase Cards (3 Col Desktop -> 2 Col Tablet -> 1 Col Mobile) */
.txr-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 20px 0 48px;
}
.txr-item {
    background: var(--txr-white);
    border: 1px solid var(--txr-border);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.txr-item:hover {
    border-color: #fda4af;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(24, 24, 27, 0.08);
}
.txr-item-head {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    margin-bottom: 12px;
    min-width: 0;
}
.txr-item-icon {
    width: 56px;
    height: 56px;
    border-radius: 13px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--txr-border);
    background: #f4f4f5;
}
.txr-item-meta {
    min-width: 0;
    flex: 1;
}
.txr-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--txr-rose-bg);
    color: var(--txr-crimson);
    padding: 2px 8px;
    border-radius: 5px;
    margin-bottom: 5px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.txr-item h2 {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.txr-item h2 a {
    color: var(--txr-dark);
}
.txr-item p {
    font-size: 13.8px;
    color: var(--txr-muted);
    margin: 0 0 15px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.txr-item-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding-top: 11px;
    border-top: 1px solid #f4f4f5;
    font-size: 13px;
    font-weight: 600;
    margin-top: auto;
}
.txr-item-dev {
    color: var(--txr-muted);
    font-size: 12px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
}

/* 6. Review Detail Layout (Strict minmax(0, 1fr)!) */
.txr-review-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
    margin: 14px 0 48px;
}
.txr-review-card {
    background: #fff;
    border: 1px solid var(--txr-border);
    border-radius: 18px;
    padding: 28px;
    min-width: 0;
    max-width: 100%;
}
.txr-app-banner {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--txr-border);
    margin-bottom: 20px;
}
.txr-app-banner img {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    border: 1px solid var(--txr-border);
    flex-shrink: 0;
    object-fit: cover;
}
.txr-review-card h1 {
    margin: 4px 0 6px;
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
    color: var(--txr-dark);
    line-height: 1.28;
}
.txr-mobile-cta {
    display: none;
    margin: 0 0 20px;
}

/* Bounded Horizontal Screenshot Gallery */
.txr-gallery {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px 14px;
}
.txr-gallery img {
    height: 225px;
    width: auto;
    max-width: 78vw;
    border-radius: 12px;
    border: 1px solid var(--txr-border);
    flex-shrink: 0;
    object-fit: cover;
}

.txr-ux-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0;
}
.txr-ux-box {
    background: #fafafa;
    border: 1px solid var(--txr-border);
    border-radius: 12px;
    padding: 14px;
}
.txr-ux-box strong {
    display: block;
    color: var(--txr-crimson);
    font-size: 14px;
    margin-bottom: 4px;
}
.txr-ux-box p {
    margin: 0;
    font-size: 13.5px;
    color: var(--txr-body);
}

.txr-verdict {
    background: var(--txr-dark);
    color: #f4f4f5;
    border-radius: 14px;
    padding: 20px 22px;
    margin: 24px 0;
}
.txr-verdict strong {
    color: #fda4af;
    display: block;
    margin-bottom: 6px;
    font-size: 13.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.txr-aside {
    position: sticky;
    top: 68px;
    min-width: 0;
}
.txr-side {
    background: #fff;
    border: 1px solid var(--txr-border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 18px;
}
.txr-store-btn {
    display: block;
    text-align: center;
    background: var(--txr-crimson);
    color: #fff !important;
    padding: 13px 18px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none !important;
    margin: 12px 0;
    box-shadow: 0 4px 12px rgba(190, 18, 60, 0.22);
}
.txr-store-btn:hover {
    background: #9f1239;
}

.txr-footer {
    background: var(--txr-dark);
    color: #a1a1aa;
    padding: 38px 0 28px;
    font-size: 13.5px;
    margin-top: 40px;
}
.txr-footer a {
    color: #fecdd3;
}
.txr-foot-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 28px;
}

/* =========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================= */
@media (max-width: 1024px) {
    .txr-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .txr-review-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .txr-aside {
        position: static;
    }
    .txr-mobile-cta {
        display: block;
    }
}

@media (max-width: 820px) {
    .txr-top-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .txr-searchbox {
        max-width: 100%;
    }
    .txr-col-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .txr-col-list::-webkit-scrollbar {
        display: none;
    }
    .txr-ux-row {
        grid-template-columns: minmax(0, 1fr);
    }
    .txr-foot-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }
}

@media (max-width: 640px) {
    .txr-container {
        padding: 0 14px;
    }
    .txr-stage {
        padding: 22px 18px;
        margin: 16px 0;
        border-radius: 14px;
    }
    .txr-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }
    .txr-review-card {
        padding: 18px 16px;
        border-radius: 14px;
    }
    .txr-app-banner {
        gap: 13px;
    }
    .txr-app-banner img {
        width: 64px;
        height: 64px;
    }
    .txr-gallery img {
        height: 190px;
    }
}
