/* =========================
 *    BASE RESET
 *    ========================= */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: #0A0A0A;
    font-family: 'Montserrat', sans-serif;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* =========================
 *    MAIN LAYOUT (UNCHANGED)
 *    ========================= */

.layout {
    display: flex;
    width: 100%;
    height: 100vh;
    margin-top: 70px;
    overflow: hidden;
}

/* =========================
 *    LEFT PANEL (UPDATED STYLE - GLASS / MAIN10 FEEL)
 *    ========================= */

.left {
    width: 520px;
    height: 95%;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding: 60px 60px;
    overflow-y: auto;

    /* glass effect like main10 */
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(20px);

    border-right: 1px solid rgba(255,255,255,0.08);
    color: #fff;
}

/* =========================
 *    LEFT TEXT STYLES (NEW CONSISTENT TYPOGRAPHY)
 *    ========================= */

.meta {
    font-size: 14px;
    color: #888;
    margin-bottom: 8px;
    letter-spacing: 0.1px;
}

.name {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;

  -webkit-mask-image: linear-gradient(
    to right,
    black 0%,
    black 90%,
    transparent 100%
  );

  mask-image: linear-gradient(
    to right,
    black 0%,
    black 90%,
    transparent 100%
  );

}

.artist {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 20px;
}

.desc {
    font-size: 14px;
    color: #ccc;
    line-height: 1.6;
}

/* divider */
.divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin-top: 22px;
}

/* token list */
.token-line {
    font-size: 14px;
    color: #ddd;
    opacity: 0.9;
    padding: 15px 0;
    letter-spacing: 0.2px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* =========================
 *    RIGHT PANEL (UNCHANGED)
 *    ========================= */

.right {
    flex: 1;
    height: 90%;
    position: relative;
}

/* =========================
 *    GALLERY (UNCHANGED CORE LOGIC)
 *    ========================= */

#gif-container {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

.row {
    display: flex;
    width: 100%;
}

.item {
    position: relative;
    overflow: hidden;
    background: #000;
    height: 320px;
    will-change: transform;
}

.item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .2s ease, filter .25s ease, transform .25s ease;
    will-change: transform, filter;
}

.item img.loaded {
    opacity: 1;
}

.item:hover img.loaded {
    filter: blur(6px) brightness(0.7);
    transform: scale(1.03);
}

.item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background .25s ease;
}

.item:hover::after {
    background: rgba(0,0,0,0.25);
}

.title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 25px;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    opacity: 0;
    transition: opacity .25s ease, text-shadow .25s ease;
    pointer-events: none;
}

.item:hover .title {
    opacity: 1;
    text-shadow: 0 3px 8px rgba(0,0,0,0.7);
}

/* =========================
 *    MOBILE (UNCHANGED LOGIC)
 *    ========================= */

@media (max-width: 768px) {

    html, body {
        overflow: auto;
    }

    .layout {
        flex-direction: column;
        height: auto;
    }

    .right {
        order: 1;
        height: auto;
        min-height: 320px;
    }

    .left {
        order: 2;
        width: 100%;
        max-width: 100%;
        height: auto;

        border-right: none;
        border-top: 1px solid rgba(255,255,255,0.08);

        padding: 24px;
    }

    #gif-container {
        overflow: hidden;
        height: 100%;
    }

    .row {
        flex-wrap: nowrap;
        width: max-content;
        transform: translate3d(0,0,0);
    }

    .item {
        width: 88vw;
        height: 320px;
        flex: 0 0 auto;
    }
}

.token-line {
    display: flex;
    align-items: center;
    gap: 14px;
}

.token-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.05);
}

.token-text {
    font-size: 14px;
    color: #ddd;
    letter-spacing: 0.2px;
}

.item {
    cursor: pointer;
}

.token-line {
    display: flex;
    align-items: center;
    gap: 12px;
}

.token-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.token-text {
    color: #ddd;
    text-decoration: none;
}

.token-text:hover {
    color: #fff;
}

.artist-link {
    color: #aaa;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.artist-link:hover {
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

/* =========================
 *    Meta + Network Layout (pro)
 *       ========================= */

.meta {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 10px;

    font-family: Arial, sans-serif;
    font-size: 14px;
    letter-spacing: 0.1px;

    color: rgba(255, 255, 255, 0.65);

    flex-wrap: wrap;
}

/* LEFT SIDE */
.meta-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 12px;
}

/* meta items */
.meta-item {
    white-space: nowrap;
}

/* separator /
.meta-item:not(:last-child)::after {
    content: "•";
    margin-left: 10px;
    color: rgba(255, 255, 255, 0.25);
}*/

/* RIGHT SIDE (network badge) */
.collection-right {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    white-space: nowrap;

    flex-shrink: 0;

    margin-left: auto;
}

/* icon */
.network-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 14px;
    height: 14px;
}

.network-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

/* text */
.network {
    font-size: 14px;
    color: #888;

    white-space: nowrap;
}

.collection-badge-inline {
    display: inline-flex;
    align-items: center;
}

.badge-icon {
    width: 15px;
    height: 15px;
    margin-right: 6px;
    fill: currentColor;
}

.token-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.token-date {
    opacity: 0.6;
    font-size: 0.85em;
}

.token-main {
    flex: 1;
}

.token-date {
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
    opacity: 0.6;
    font-size: 0.82em;
}

.token-text {
    display: inline;
}

.token-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;

    font-size: 13px;
    vertical-align: middle;
    white-space: nowrap;
}

.token-thumb-fallback {
    background:
       linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    display: block;
    opacity: 0.7;
}

