/* Reset e Base */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: #12121f;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 10pt;
    cursor: default;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
}

a {
    color: green;
    text-decoration: none;
}

a:hover {
    color: lightgreen;
}

/* Layout Principal */
#main {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 10px;
    text-align: left;
}

header, #progress {
    display: none !important;
}

#countdown {
    position: absolute !important;
    left: 20px !important;
    top: 3px !important;
    color: rgba(255, 255, 255, 0.70) !important;
    font-size: 11pt !important;
    line-height: 24px !important;
    vertical-align: middle !important;
    background-color: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

#no-results {
    display: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 10pt;
    text-align: center;
    padding: 20px;
}

/* Cards */
.entry {
    width: 182px;
    height: auto;
    color: rgba(255, 255, 255, 0.95);
    padding: 0;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3), 0 2px 4px rgba(0,0,0,0.2);
    will-change: transform, opacity;
    contain: layout paint;
    transform: scale(0.82);
    transform-origin: top left;
    margin: -10px -22px -53px -5px;
    transition: box-shadow 0.2s ease;
}

.entry:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.4), 0 4px 8px rgba(0,0,0,0.3);
}

.entry.liveme {
    background: linear-gradient(145deg, #9d8dc7, #7a6ba3);
}

.entry.highlive {
    background: linear-gradient(145deg, #ff8c42, #d44fb8);
}

.entry.pvt {
    background: linear-gradient(145deg, #e6b832, #c49520);
}

/* Imagem */
.image-container {
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: rgba(0,0,0,0.2);
}

.entry-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

/* Info do Card */
.entry-info {
    padding: 6px 10px 10px;
    font-size: 10px;
    line-height: 1.3;
    margin: 0;
    background: rgba(0,0,0,0.2);
}

.entry-info .entry-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 6px;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    display: block;
    color: rgba(255,255,255,0.95);
}

.entry-info h3 {
    font-size: 11px;
    line-height: 1.4;
    font-weight: 400;
    margin: 0 0 3px;
    padding: 0;
    display: flex;
    justify-content: space-between;
    gap: 4px;
    color: rgba(255,255,255,0.6);
}

.entry-info h3 .flag-image {
    margin-left: 4px;
    flex-shrink: 0;
}

.entry-info h3 span {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.95);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
}

.flag-image {
    width: 18px;
    height: 12px;
    vertical-align: middle;
    margin-left: 3px;
}

/* Stats */
.stats-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.stat-value {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
}

.stat-label {
    font-size: 9px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
}

/* Badges */
.platform-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.platform-badge:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.platform-badge.hl {
    background: rgba(255,107,122,0.4);
    color: #ffd0d6;
}

.platform-badge.lm {
    background: rgba(139,124,182,0.4);
    color: #d4c8f0;
}

.platform-badge.pvt {
    background: rgba(255,204,0,0.4);
    color: #ffeb3b;
}

/* Links */
.clickable-id {
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    text-decoration: underline;
    font-size: 11px;
}

.clickable-id:hover {
    color: #90CAF9;
}

/* Toolbar */
.card-toolbar {
    padding: 6px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.3);
}

.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-toolbar button,
.card-toolbar a {
    width: 26px;
    height: 26px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 5px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.15s ease;
}

.card-toolbar button:hover,
.card-toolbar a:hover {
    background: rgba(255,255,255,0.35);
}

.card-toolbar button svg,
.card-toolbar a svg {
    width: 21px;
    height: 21px;
}

/* Botões de Ação */
.btn-record,
.btn-auto-record,
.btn-stop-record,
.btn-add,
.btn-remove,
.btn-copy,
.btn-play,
.btn-multistream,
.btn-hide {
    transition: transform 0.15s ease;
}

.btn-record:hover,
.btn-auto-record:hover,
.btn-stop-record:hover,
.btn-add:hover,
.btn-remove:hover,
.btn-copy:hover,
.btn-play:hover,
.btn-multistream:hover,
.btn-hide:hover {
    transform: scale(1.25);
}

.btn-record.recording {
    background: rgba(244,67,54,0.35);
}

.btn-record.recording svg circle {
    fill: #f44336;
    animation: recording-pulse 1s ease-in-out infinite;
}

@keyframes recording-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.btn-auto-record.active,
.card-toolbar .btn-stop-record,
.btn-remove-others {
    background: rgba(244,67,54,0.25) !important;
}

.btn-remove-others:hover {
    background: rgba(244,67,54,0.45) !important;
}

.btn-favorite-active {
    background: rgba(255,215,0,0.3) !important;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 2px;
    height: 2px;
}

::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}