.tiktok-stats-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1rem;
}

.tiktok-stats-summary {
    text-align: right;
    margin-bottom: 2rem;
}

.tt-grid {
    position: relative;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.tt-grid-tr.col-hide {
    display: none !important;
}

.tt-grid-tr {
    background-color: #2A2A3E;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    padding: 1rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

.tt-grid-td-title {
    width: 100%;
    margin-right: auto;
}

@media (min-width: 1440px) {
    .tt-grid-td-title {
        width: 50rem;
    }
}

.tt-row-more,
.tt-grid-td-tags {
    flex: 100%;
    width: 100%;
    flex-shrink: 0;
}


.tt-grid .tag:focus-visible,
.tt-grid a:focus-visible,
.tt-grid .tt-grid-td[tabindex="0"]:focus-visible {
    outline: 3px solid #E8E8EC;
    outline-offset: 2px;
    border-radius: 0.25rem;
}

.tt-grid .tag.tag-active {
    background-color: #fe2c55 !important;
    color: #ffffff !important;
    font-weight: bold;
}

.tt-grid .tag {
    display: inline-block;
    padding: 4px 8px;
    margin: 2px;
    border-radius: 4px;
    background-color: #8A8A9A;
    border: 1px solid #3A3A4E;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.tt-grid .tag:hover {
    background-color: #e0e0e0;
    color: #000;
}

.tt-grid a {
    display: inline-block;
    width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tt-grid a.has_warning {
    color: #d32f2f;
    text-decoration: underline wavy #d32f2f;
}

.tt-grid .warning-icon {
    margin-left: 4px;
    font-size: 1em;
}

.tags-cell {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.tag {
    margin: 0;
    padding: .25rem 1rem;
    border-radius: 0.25rem;
    border: 1px solid #fff;
    ;
    color: #E8E8EC;
    cursor: pointer;
    transition: background-color .3s, color .3s;
}

.tt-grid-thead {
    position: sticky;
    top: 0;
    z-index: 999;
}

.tt-row-more {
    overflow: hidden;
    height: 0;
    background-color: #1A1A2E;
    transition: height .3s;
}

.tt-row-more.active {
    height: 10rem;
    overflow-y: auto;
    padding: 1rem;
}

.tt-row-more-item {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding-bottom: .5rem;
    margin-bottom: .5rem;
    border-bottom: 1px #ccc solid;
}

.more-button {
    width: 1rem;
    height: 1rem;
    line-height: 1rem;
    text-align: center;
    padding: 0;
    background-color: transparent;
    border: none;
    color: #fff;
    transition: color .3s, transform .3s;
}

.more-button:hover {
    color: #fff;
}

.more-button.active {
    transform: rotate(90deg);
}

.tt-row-more:not(.active) {
    visibility: hidden;
    pointer-events: none;
}

.tt-row-more.active {
    visibility: visible;
    pointer-events: auto;
}

.tt-row-more[inert] {
    pointer-events: none;
    user-select: none;
}