/* ============================================================
   Anasayfa (pages/home.php) ve anasayfa/forum ana sayfası
   bileşenleri (pages/trendtopics.php, pages/activeBusinesses.php).
   Ortak bileşenler pages/shared/cp-ui.css içindedir; burada yalnızca
   .hm-page (anasayfa) ve .hm-widget (bileşen kökü) kapsamında kurallar var.
   ============================================================ */

/* ---------- Ortak yardımcılar ---------- */
.hm-page .hm-card-head,
.hm-widget .hm-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    min-width: 0;
}

.hm-page .hm-card-head .cp-card__title,
.hm-widget .hm-card-head .cp-card__title {
    min-width: 0;
}

.hm-page .hm-more,
.hm-widget .hm-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--cp-text-2);
    text-decoration: none;
    border-radius: 6px;
    white-space: nowrap;
}

.hm-page .hm-more:hover,
.hm-widget .hm-more:hover {
    color: #fff;
}

.hm-page .hm-more i,
.hm-widget .hm-more i {
    display: inline-flex;
    font-size: 11px;
}

.hm-page a:focus-visible,
.hm-page button:focus-visible,
.hm-page [tabindex]:focus-visible,
.hm-widget a:focus-visible,
.hm-widget [tabindex]:focus-visible {
    outline: 2px solid var(--cp-info);
    outline-offset: 2px;
}

.hm-page .hm-sub,
.hm-widget .hm-sub {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--cp-text-3);
}

/* Sıra rozeti (ilk üç öne çıkar) */
.hm-page .hm-rank,
.hm-widget .hm-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    min-width: 26px;
    height: 24px;
    padding: 0 5px;
    border-radius: 7px;
    background: var(--cp-surface-3);
    color: var(--cp-text-2);
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.hm-page .hm-rank.is-1,
.hm-widget .hm-rank.is-1 { background: rgba(245, 158, 11, .18); color: #fcd34d; }
.hm-page .hm-rank.is-2,
.hm-widget .hm-rank.is-2 { background: rgba(203, 213, 225, .14); color: #e2e8f0; }
.hm-page .hm-rank.is-3,
.hm-widget .hm-rank.is-3 { background: rgba(217, 119, 6, .16); color: #fdba74; }

.hm-page .hm-dot,
.hm-widget .hm-dot {
    display: inline-block;
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cp-text-3);
}

.hm-page .hm-dot.is-online,
.hm-widget .hm-dot.is-online {
    background: var(--cp-success);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .18);
}

/* ---------- Sayfa düzeni ---------- */
.hm-page .hm-grid-2,
.hm-page .hm-grid-3 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.hm-page .hm-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hm-page .hm-grid-2 > .cp-card,
.hm-page .hm-grid-3 > .cp-card {
    height: 100%;
}

.hm-page .hm-section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 -4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cp-text-1);
}

.hm-page .hm-section-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--cp-border);
}

.hm-page .hm-section-label i {
    display: inline-flex;
    color: var(--cp-accent);
}

/* Bileşenler anasayfanın içinde kendi boşluklarını kullanmaz */
.hm-page .hm-widget {
    margin: 0;
}

/* ---------- Başlık ---------- */
.hm-page .hm-head .cp-btn {
    text-decoration: none;
}

.hm-page .hm-updated {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 11px;
    color: var(--cp-text-3);
}

.hm-page .hm-updated i {
    display: inline-flex;
}

/* ---------- KPI ---------- */
.hm-page .hm-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hm-page .hm-kpi-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ---------- Haber / etkinlik akışı ---------- */
.hm-page .hm-feed__nav {
    display: inline-flex;
    gap: 6px;
}

.hm-page .hm-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-radius-sm);
    background: var(--cp-surface-2);
    color: var(--cp-text-1);
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s, border-color .15s, opacity .15s;
}

.hm-page .hm-nav:hover:not(:disabled) {
    background: var(--cp-surface-3);
    border-color: #3a3b3e;
}

.hm-page .hm-nav:disabled {
    opacity: .35;
    cursor: default;
}

.hm-page .hm-nav i {
    display: inline-flex;
}

.hm-page .hm-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 24px) / 3);
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 6px;
    border-radius: var(--cp-radius-sm);
}

.hm-page .hm-post {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-radius-sm);
    background: var(--cp-surface-2);
    scroll-snap-align: start;
    transition: border-color .15s;
}

.hm-page .hm-post:hover {
    border-color: #3a3b3e;
}

.hm-page .hm-post__media {
    position: relative;
    display: block;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    background:
        radial-gradient(120% 160% at 0% 0%, rgba(184, 38, 38, .3) 0%, rgba(184, 38, 38, 0) 60%),
        var(--cp-surface-3);
}

.hm-page .hm-post__media img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.hm-page .hm-post:hover .hm-post__media img {
    transform: scale(1.03);
}

.hm-page .hm-post__media > i {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: rgba(255, 255, 255, .25);
}

.hm-page .hm-post__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    padding: 12px 14px 14px;
    min-width: 0;
}

.hm-page .hm-post__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    font-size: 11px;
    color: var(--cp-text-3);
}

.hm-page .hm-post__meta time,
.hm-page .hm-post__meta span:not(.cp-badge) {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.hm-page .hm-post__meta i {
    display: inline-flex;
    font-size: 11px;
}

.hm-page .hm-post__title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.hm-page .hm-post__title a {
    color: #fff;
    text-decoration: none;
}

.hm-page .hm-post__title a:hover {
    text-decoration: underline;
    text-decoration-color: var(--cp-text-3);
    text-underline-offset: 3px;
}

.hm-page .hm-post__desc {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--cp-text-2);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.hm-page .hm-post__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: auto;
    padding-top: 2px;
}

.hm-page .hm-post__tags span {
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--cp-surface-3);
    color: var(--cp-text-2);
    font-size: 11px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- Trend konular (bileşen) ---------- */
.hm-widget {
    width: 100%;
    margin: 15px 0 16px;
}

/* Kompakt: her konu tek satır; geniş alanda iki sütun (sıra sütun sütun ilerler) */
.hm-widget .hm-trends__card {
    gap: 8px;
    padding: 12px 16px;
}

.hm-widget .hm-trends__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(5, auto);
    grid-auto-flow: column;
    column-gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Anasayfada dar sütunda durduğu için tek sütun */
.hm-page .hm-widget .hm-trends__list {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-auto-flow: row;
}

.hm-widget .hm-trend {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    height: 32px;
    border-bottom: 1px solid var(--cp-border);
    font-size: 12.5px;
}

.hm-widget .hm-trend__rank {
    flex: none;
    width: 18px;
    color: var(--cp-text-3);
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.hm-widget .hm-trend__rank.is-1 { color: #fcd34d; }
.hm-widget .hm-trend__rank.is-2 { color: #e2e8f0; }
.hm-widget .hm-trend__rank.is-3 { color: #fdba74; }

.hm-widget .hm-trend__title {
    flex: 0 1 auto;
    min-width: 0;
    font-weight: 500;
    color: var(--cp-text-1) !important;
    text-decoration: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hm-widget .hm-trend__title:hover {
    color: #fff !important;
}

.hm-widget .hm-trend__board {
    flex: 0 10 auto;
    min-width: 0;
    color: var(--cp-text-3);
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hm-widget .hm-trend__time {
    flex: none;
    margin-left: auto;
    color: var(--cp-text-3) !important;
    font-size: 11px;
    text-decoration: none !important;
    white-space: nowrap;
}

.hm-widget .hm-trend__time:hover {
    color: var(--cp-text-1) !important;
}

.hm-widget .hm-trend__count {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    min-width: 38px;
    justify-content: flex-end;
    color: #fca5a5;
    font-size: 11.5px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.hm-widget .hm-trend__count i {
    display: inline-flex;
    font-size: 10px;
    opacity: .8;
}

/* Sütun sonlarında alt çizgi olmaz */
.hm-widget .hm-trend:nth-child(5),
.hm-widget .hm-trend:last-child {
    border-bottom: 0;
}

.hm-page .hm-widget .hm-trend:nth-child(5):not(:last-child) {
    border-bottom: 1px solid var(--cp-border);
}

@media (max-width: 900px) {
    .hm-widget .hm-trends__list {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        grid-auto-flow: row;
    }

    .hm-widget .hm-trend:nth-child(5):not(:last-child) {
        border-bottom: 1px solid var(--cp-border);
    }
}

/* ---------- Aktif mekanlar (bileşen) ---------- */
.hm-widget .hm-biz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.hm-widget .hm-biz {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-radius-sm);
    background: var(--cp-surface-2);
    color: var(--cp-text-1) !important;
    text-decoration: none !important;
    transition: border-color .15s, transform .15s, box-shadow .15s;
}

.hm-widget .hm-biz:hover {
    border-color: #3a3b3e;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
}

.hm-widget .hm-biz__banner {
    position: relative;
    display: block;
    height: 70px;
    background:
        radial-gradient(120% 160% at 0% 0%, rgba(34, 197, 94, .25) 0%, rgba(34, 197, 94, 0) 60%),
        var(--cp-surface-3);
}

.hm-widget .hm-biz__banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hm-widget .hm-biz__live {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(15, 16, 17, .8);
    border: 1px solid rgba(34, 197, 94, .45);
    color: #86efac;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.hm-widget .hm-biz__live i {
    display: inline-flex;
    font-size: 10px;
}

.hm-widget .hm-biz__logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin: -23px 0 0 12px;
    border-radius: 12px;
    border: 3px solid var(--cp-surface-2);
    background: linear-gradient(135deg, #15803d 0%, #14532d 100%);
    overflow: hidden;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.hm-widget .hm-biz__logo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--cp-surface-3);
}

.hm-widget .hm-biz__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    padding: 8px 12px 12px;
    min-width: 0;
}

.hm-widget .hm-biz__name {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.hm-widget .hm-biz__name b {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hm-widget .hm-biz__name small {
    flex: none;
    margin-left: auto;
    font-size: 10px;
    font-weight: 600;
    color: var(--cp-text-3);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.hm-widget .hm-biz__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 10px;
    font-size: 11px;
    color: var(--cp-text-2);
}

.hm-widget .hm-biz__meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.hm-widget .hm-biz__meta i {
    display: inline-flex;
    font-size: 10px;
    color: var(--cp-text-3);
}

.hm-widget .hm-biz__desc {
    margin: 0;
    font-size: 11px;
    line-height: 1.45;
    color: var(--cp-text-3);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.hm-widget .hm-biz__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--cp-border);
    font-size: 11px;
    color: var(--cp-text-2);
}

.hm-widget .hm-biz__foot strong {
    color: #4ade80;
}

.hm-widget .hm-stars {
    display: inline-flex;
    gap: 2px;
    color: var(--cp-warn);
    font-size: 10px;
}

/* ---------- Haftanın enleri: sekmeler + iki sütunlu geniş liste ---------- */
.cp-ui .hm-wk {
    gap: 12px;
}

.cp-ui .hm-wk__tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.cp-ui .hm-wk__tabs::-webkit-scrollbar {
    display: none;
}

.cp-ui .hm-wk__tab {
    flex: none;
    padding: 5px 12px;
    border: 1px solid var(--cp-border);
    border-radius: 999px;
    background: var(--cp-surface-2);
    color: var(--cp-text-2);
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}

.cp-ui .hm-wk__tab:hover {
    background: var(--cp-surface-3);
    color: var(--cp-text-1);
}

.cp-ui .hm-wk__tab[aria-selected="true"] {
    background: var(--cp-accent-soft);
    border-color: rgba(184, 38, 38, .5);
    color: #fff;
}

.cp-ui .hm-wk__tab:focus-visible {
    outline: 2px solid var(--cp-info);
    outline-offset: 2px;
}

.cp-ui .hm-wk__panel[hidden] {
    display: none !important;
}

.cp-ui .hm-wk__panel {
    position: relative;
}

/* Ölçüt adı (Şöhret, Ödül...) sağ üstte */
.cp-ui .hm-wk__metric {
    position: absolute;
    top: -2px;
    right: 0;
    margin: 0;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--cp-text-3);
}

/* renderWeeklyTopChartCategoryTable() çıktısı: tablo, iki sütunlu bir listeye dönüştürülür */
.cp-ui .hm-wk .rina-weeklytop-header,
.cp-ui .hm-wk .rina-weeklytop-pagination,
.cp-ui .hm-wk table thead {
    display: none;
}

.cp-ui .hm-wk .rina-weeklytop-table-container {
    padding-top: 18px;
}

.cp-ui .hm-wk table {
    display: block !important;
    width: 100%;
    margin: 0;
    border: 0;
    background: none;
}

.cp-ui .hm-wk tbody {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(5, auto);
    grid-auto-flow: column;
    column-gap: 28px;
}

.cp-ui .hm-wk tbody tr {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 6px 2px;
    border-bottom: 1px solid var(--cp-border);
}

.cp-ui .hm-wk tbody tr:nth-child(5),
.cp-ui .hm-wk tbody tr:last-child {
    border-bottom: 0;
}

.cp-ui .hm-wk td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--cp-text-1);
    font-size: 13px;
    line-height: 1.35;
    text-align: left;
}

/* Kısa sütun modunda 3'ten fazla sütun gelirse fazlası gizlenir */
.cp-ui .hm-wk td:nth-child(n + 4) {
    display: none;
}

.cp-ui .hm-wk td:nth-child(1) {
    color: var(--cp-text-3);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.cp-ui .hm-wk tbody tr:nth-child(1) td:nth-child(1) { color: #fcd34d; }
.cp-ui .hm-wk tbody tr:nth-child(2) td:nth-child(1) { color: #e2e8f0; }
.cp-ui .hm-wk tbody tr:nth-child(3) td:nth-child(1) { color: #fdba74; }

.cp-ui .hm-wk td:nth-child(2) {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.cp-ui .hm-wk td:nth-child(3) {
    color: var(--cp-text-2) !important;
    font-size: 12.5px;
    font-weight: 600 !important;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Para değerleri yeşil kalsın (işyeri ödülü) */
.cp-ui .hm-wk td[style*="#4CAF50"] {
    color: #4ade80 !important;
}

.cp-ui .hm-wk td a {
    color: var(--cp-text-1);
    text-decoration: none;
}

.cp-ui .hm-wk td a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* İşyeri: ad + tek satırlık ayrıntı */
.cp-ui .hm-wk td div {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.cp-ui .hm-wk td div[style*="font-size: 12px"] {
    margin-top: 1px;
    color: var(--cp-text-3) !important;
    font-size: 11px !important;
}

/* LifeInvader: küçük avatar */
.cp-ui .hm-wk td img[alt="LifeInvader Avatar"] {
    width: 20px !important;
    height: 20px !important;
    border-width: 1px !important;
    flex: none;
}

.cp-ui .hm-wk td > div[style*="display: flex"] {
    gap: 8px !important;
    min-width: 0;
}

.cp-ui .hm-wk td > div[style*="display: flex"] div {
    min-width: 0;
    font-weight: 500 !important;
}

.cp-ui .hm-wk .rina-weeklytop-best-characters-origin {
    position: static;
    width: 15px;
    height: 11px;
    margin-right: 6px;
    vertical-align: -1px;
    border-radius: 2px;
}

.cp-ui .hm-wk .rina-weeklytop-best-characters-name {
    margin-left: 0;
}

/* "Destekçiler" kategorisindeki "xxx" yer tutucu sütunu */
.cp-ui .hm-wk [id^="rina-weeklytop-table-best_donators"] td:nth-child(3) {
    display: none;
}

@media (max-width: 760px) {
    .cp-ui .hm-wk tbody {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        grid-auto-flow: row;
    }

    .cp-ui .hm-wk tbody tr:nth-child(5):not(:last-child) {
        border-bottom: 1px solid var(--cp-border);
    }
}

/* ---------- Videolar ---------- */
.hm-page .hm-videos {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hm-page .hm-video {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-radius-sm);
    background: #000;
    cursor: pointer;
}

.hm-page .hm-video img,
.hm-page .hm-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.hm-page .hm-video img {
    opacity: .85;
    transition: opacity .15s, transform .3s;
}

.hm-page .hm-video:hover img {
    opacity: 1;
    transform: scale(1.03);
}

.hm-page .hm-video__play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 38px;
    border-radius: 10px;
    background: rgba(184, 38, 38, .92);
    color: #fff;
    font-size: 16px;
    transform: translate(-50%, -50%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
    transition: background .15s;
}

.hm-page .hm-video:hover .hm-video__play {
    background: #cf2e2e;
}

/* ---------- Tablolar ---------- */
.hm-page .hm-table {
    table-layout: auto;
}

.hm-page .hm-table td,
.hm-page .hm-table th {
    white-space: nowrap;
}

.hm-page .hm-table tr > td {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hm-page .hm-table .hm-col-rank {
    width: 1%;
    padding-right: 0;
}

.hm-page .hm-table .hm-col-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.hm-page .hm-table .hm-col-grow {
    width: 100%;
}

.hm-page .hm-table .hm-col-bar {
    min-width: 120px;
    width: 30%;
}

.hm-page .hm-table .hm-col-bar .cp-bar {
    height: 6px;
}

.hm-page .hm-table .hm-col-bar small {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    color: var(--cp-text-3);
}

.hm-page .hm-table .cp-badge {
    text-transform: none;
    letter-spacing: 0;
}

.hm-page .hm-table td a {
    text-decoration: none;
}

.hm-page .hm-table td a:hover {
    text-decoration: underline;
    text-decoration-color: var(--cp-text-3);
}

.hm-page .hm-table td img {
    width: auto;
    height: auto;
    margin: 0;
}

.hm-page .hm-table .hm-name {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    min-width: 0;
}

.hm-page .hm-table .hm-name > a,
.hm-page .hm-table .hm-name > span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.hm-page .hm-table .hm-muted {
    color: var(--cp-text-3);
}

.hm-page .hm-table .hm-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    color: var(--cp-text-2);
    text-decoration: none;
}

.hm-page .hm-table .hm-icon-link:hover {
    background: var(--cp-surface-3);
    color: #fff;
}

.hm-page .hm-table .hm-icon-link i {
    display: inline-flex;
}

.hm-page .hm-scroll {
    max-height: 440px;
}

/* ---------- Kişi listesi (avatar + isim) ---------- */
.hm-page .hm-people {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hm-page .hm-people > li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--cp-border);
    min-width: 0;
}

.hm-page .hm-people > li:first-child {
    padding-top: 0;
}

.hm-page .hm-people > li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.hm-page .hm-ava {
    position: relative;
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--cp-surface-3);
}

.hm-page .hm-ava > img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 50%;
    object-fit: cover;
    background: var(--cp-surface-3);
}

.hm-page .hm-ava > img.hm-ava__frame {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 128%;
    height: 128%;
    border-radius: 0;
    background: none;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hm-page .hm-person {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.hm-page .hm-person > a,
.hm-page .hm-person > span {
    font-size: 13px;
    font-weight: 600;
    color: var(--cp-text-1);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hm-page .hm-person > a:hover {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: var(--cp-text-3);
    text-underline-offset: 3px;
}

.hm-page .hm-person small,
.hm-page .hm-person small a {
    font-size: 11px;
    color: var(--cp-text-3);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hm-page .hm-person small a:hover {
    color: var(--cp-text-1);
}

.hm-page .hm-people .cp-badge {
    flex: none;
    text-transform: none;
    letter-spacing: 0;
}

/* ---------- Bugün giriş yapanlar ---------- */
.hm-page .hm-today__tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.hm-page .hm-today__tools .cp-search {
    max-width: 300px;
}

.hm-page .hm-today {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 6px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 2px;
}

.hm-page .hm-today .cp-chip {
    color: var(--cp-text-2);
}

.hm-page .hm-today .cp-chip:hover {
    color: #fff;
}

.hm-page .hm-today .cp-chip.is-online {
    color: var(--cp-success);
}

.hm-page .hm-today .cp-chip.is-online::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hm-page .hm-grid-2,
    .hm-page .hm-grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .hm-page .hm-carousel {
        grid-auto-columns: calc((100% - 12px) / 2);
    }

    .hm-page .hm-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Yan sütun alta indiğinde videolar yan yana dizilsin */
    .hm-page .hm-videos {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 560px) {
    .hm-page .hm-carousel {
        grid-auto-columns: 85%;
    }

    .hm-widget .hm-trend__board {
        display: none;
    }

    .hm-widget .hm-biz-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .hm-widget .hm-biz__desc {
        display: none;
    }

    .hm-page .hm-today__tools .cp-search {
        max-width: none;
    }

    .hm-page .hm-table .hm-col-bar {
        min-width: 84px;
    }
}

/* Haftanın enleri: tüm kategorilere giden alt bağlantı */
.cp-ui .hm-wk__all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px dashed var(--cp-border);
    border-radius: 10px;
    color: var(--cp-text-2);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
}

.cp-ui .hm-wk__all span {
    color: var(--cp-text-3);
    font-weight: 500;
}

.cp-ui .hm-wk__all:hover {
    background: var(--cp-surface-2);
    border-color: rgba(184, 38, 38, .5);
    color: var(--cp-text-1);
}

.cp-ui .hm-wk__all:focus-visible {
    outline: 2px solid var(--cp-info);
    outline-offset: 2px;
}
