/* Audio Kotha — Trending portal */
.tr-page {
    padding-bottom: calc(108px + env(safe-area-inset-bottom));
}

/* Hero */
.tr-hero {
    position: relative;
    overflow: hidden;
    padding: 38px 0 35px;
    color: #F4F8FF;
    background:
        radial-gradient(760px 330px at 88% 4%, rgba(59, 130, 246, .32), transparent 63%),
        radial-gradient(540px 280px at 2% 110%, rgba(109, 59, 232, .22), transparent 62%),
        linear-gradient(135deg, #07142D 0%, #0B2350 54%, #102C60 100%);
}

.tr-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100px;
    background: linear-gradient(0deg, rgba(4, 13, 31, .46), transparent);
    pointer-events: none;
}

.tr-hero-mesh {
    position: absolute;
    inset: 0;
    opacity: .33;
    background-image:
        linear-gradient(rgba(147, 197, 253, .1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(147, 197, 253, .1) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(90deg, transparent, #000 30%, #000 80%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 80%, transparent);
}

.tr-hero-in {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.tr-hero-copy {
    max-width: 650px;
}

.tr-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 7.5px;
    letter-spacing: .19em;
    font-weight: 900;
    color: #93C5FD;
}

.tr-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34D399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, .13);
    animation: trLive 2.2s ease-in-out infinite;
}

@keyframes trLive {
    0%, 100% { box-shadow: 0 0 0 4px rgba(52, 211, 153, .13); }
    50% { box-shadow: 0 0 0 7px rgba(52, 211, 153, .04); }
}

.tr-hero h1 {
    margin: 12px 0 9px;
    font-family: var(--serif);
    font-size: clamp(40px, 5.2vw, 59px);
    line-height: 1;
    font-weight: 500;
    letter-spacing: -.05em;
    color: #F8FAFF;
}

.tr-hero-copy p {
    max-width: 53ch;
    margin: 0;
    font-size: 10.5px;
    line-height: 1.7;
    color: rgba(219, 231, 249, .66);
}

.tr-updated {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
    font-size: 8px;
    color: rgba(191, 219, 254, .6);
}

.tr-updated svg {
    color: #93C5FD;
}

.tr-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(96px, 1fr));
    gap: 7px;
    flex: none;
    width: min(390px, 44%);
}

.tr-stat {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 9px;
    border-radius: 13px;
    border: 1px solid rgba(191, 219, 254, .15);
    background: rgba(20, 51, 105, .35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.tr-stat-ico {
    width: 28px;
    height: 28px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 8px;
    border: 1px solid rgba(191, 219, 254, .13);
    background: rgba(147, 197, 253, .09);
    color: #BFDBFE;
}

.tr-stat strong {
    display: block;
    font-size: 15px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: -.035em;
    color: #F8FAFF;
    font-variant-numeric: tabular-nums;
}

.tr-stat small {
    display: block;
    margin-top: 3px;
    font-size: 6.5px;
    line-height: 1.2;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(191, 219, 254, .58);
    white-space: nowrap;
}

/* Body */
.tr-body {
    padding-top: 23px;
}

.tr-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 12px;
}

.tr-head h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: 24px;
    line-height: 1.08;
    font-weight: 600;
    letter-spacing: -.035em;
    color: #0B1B3A;
}

/* Podium cards */
.tr-podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.tr-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 9px;
    border-radius: 19px;
    color: #0B1B3A;
    text-decoration: none;
    overflow: hidden;
    background: linear-gradient(150deg, rgba(255, 255, 255, .96), rgba(243, 248, 255, .82));
    border: 1px solid rgba(255, 255, 255, .95);
    box-shadow: 0 24px 50px -38px rgba(15, 35, 95, .55), inset 0 1px 0 #fff;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}

.tr-card:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, .25);
    box-shadow: 0 30px 58px -38px rgba(15, 35, 95, .65), inset 0 1px 0 #fff;
}

.tr-card-1 {
    border-color: rgba(245, 158, 11, .28);
    background: linear-gradient(150deg, rgba(255, 255, 255, .98), rgba(255, 251, 235, .79));
}

.tr-card-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 13px;
    background: #12305F;
}

.tr-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}

.tr-card:hover .tr-card-cover img {
    transform: scale(1.035);
}

.tr-card-cover .cover-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, .88);
}

.tr-card-cover .cf-letter {
    font-family: var(--serif);
    font-size: 48px;
    line-height: 1;
}

.tr-card-cover .cf-wave {
    position: absolute;
    right: 9px;
    bottom: 6px;
    opacity: .35;
}

.tr-card-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(5, 15, 33, .54), transparent 52%);
    pointer-events: none;
}

.tr-rank {
    position: absolute;
    z-index: 2;
    top: 15px;
    left: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 33px;
    height: 24px;
    padding: 0 7px;
    border-radius: 7px;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .02em;
    color: #fff;
    background: rgba(7, 18, 40, .6);
    border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tr-card-1 .tr-rank {
    color: #4A2B00;
    background: #FCD34D;
    border-color: rgba(255, 255, 255, .5);
    box-shadow: 0 4px 12px -5px rgba(180, 83, 9, .55);
}

.tr-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 9px 2px 1px;
    min-width: 0;
}

.tr-card-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    font-size: 7.5px;
    line-height: 1.3;
    color: #7E8EA7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tr-card-meta svg {
    flex: none;
    color: #4F8CFF;
}

.tr-card-meta i {
    width: 2.5px;
    height: 2.5px;
    flex: none;
    border-radius: 50%;
    background: #B4C2D4;
}

.tr-card-title {
    display: block;
    font-size: 13px;
    line-height: 1.25;
    letter-spacing: -.025em;
    font-weight: 850;
    color: #0B1B3A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tr-card-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    padding-top: 7px;
    border-top: 1px solid rgba(37, 99, 235, .08);
    font-size: 8px;
    color: #657A98;
    font-variant-numeric: tabular-nums;
}

.tr-card-stats span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.tr-card-stats svg {
    color: #4F8CFF;
}

.tr-card-arrow {
    position: absolute;
    right: 12px;
    bottom: 13px;
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #1D4ED8;
    background: #EFF6FF;
    border: 1px solid rgba(37, 99, 235, .1);
}

/* Remaining ranked grid */
.tr-rest-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 22px 0 9px;
    font-size: 7.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 850;
    color: #7C8CA7;
}

.tr-rest-head i {
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, rgba(37, 99, 235, .16), transparent);
}

.tr-ranked {
    position: relative;
    min-width: 0;
}

.tr-rank-small {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 27px;
    height: 21px;
    padding: 0 6px;
    border-radius: 6px;
    font-size: 7.5px;
    font-weight: 900;
    color: #F8FAFF;
    background: rgba(7, 18, 40, .62);
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.tr-grid {
    margin-top: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .tr-hero-in {
        gap: 20px;
    }
    .tr-stats {
        width: min(340px, 46%);
        grid-template-columns: 1fr;
        gap: 5px;
    }
    .tr-stat {
        padding: 7px 8px;
    }
    .tr-stat strong {
        font-size: 14px;
    }
}

@media (max-width: 680px) {
    .tr-page {
        padding-bottom: calc(82px + env(safe-area-inset-bottom));
    }
    .tr-hero {
        padding: 27px 0 25px;
    }
    .tr-hero-in {
        display: block;
    }
    .tr-hero h1 {
        font-size: clamp(35px, 11vw, 48px);
    }
    .tr-hero-copy p {
        font-size: 10px;
    }
    .tr-stats {
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
        margin-top: 15px;
    }
    .tr-stat {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 8px;
    }
    .tr-stat-ico {
        width: 25px;
        height: 25px;
    }
    .tr-stat strong {
        font-size: 16px;
    }
    .tr-stat small {
        font-size: 5.8px;
    }
    .tr-body {
        padding-top: 18px;
    }
    .tr-head h2 {
        font-size: 21px;
    }
    .tr-podium {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .tr-card {
        display: grid;
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 9px;
        align-items: center;
        padding: 8px;
        border-radius: 15px;
    }
    .tr-card-cover {
        aspect-ratio: 1;
        border-radius: 10px;
    }
    .tr-rank {
        top: 12px;
        left: 12px;
        min-width: 29px;
        height: 21px;
        font-size: 7px;
    }
    .tr-card-body {
        padding: 0 2px 0 0;
        gap: 3px;
    }
    .tr-card-meta {
        font-size: 7px;
    }
    .tr-card-title {
        font-size: 11.5px;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    .tr-card-stats {
        font-size: 7px;
        gap: 6px;
        padding-top: 5px;
    }
    .tr-card-arrow {
        display: none;
    }
    .tr-rest-head {
        margin: 18px 0 8px;
    }
    .tr-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 9px !important;
    }
    .tr-rank-small {
        top: 7px;
        left: 7px;
        min-width: 24px;
        height: 19px;
        font-size: 6.8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tr-card,
    .tr-card-cover img,
    .tr-live-dot {
        transition: none !important;
        animation: none !important;
    }
    .tr-card:hover {
        transform: none;
    }
}
