@page { size: A4 landscape; margin: 12mm; }
body { font-family: 'Segoe UI', Tahoma, sans-serif; background-color: #f0f2f5; color: #333; margin: 0; padding: 0; font-size: 13px; }
.container { max-width: 1400px; width: 95%; margin: 30px auto; background: #fff; padding: 25px; border-radius: 4px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
header { border-bottom: 2px solid #9b59b6; margin-bottom: 20px; padding-bottom: 10px; display: flex; justify-content: space-between; align-items: flex-end; }
header h1 { margin: 0; color: #8e44ad; font-size: 26px; }
.meta-header { text-align: right; color: #7f8c8d; font-size: 11px; }

.awards-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 20px; }
.award-box { background: #fdfefe; padding: 8px 12px; border-radius: 6px; border: 1px solid #dcdfe3; border-top: 3px solid #f1c40f; box-shadow: 0 1px 3px rgba(0,0,0,0.06); display: flex; align-items: center; gap: 10px; box-sizing: border-box; }
.award-icon { font-size: 26px; line-height: 1; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: #fcf8e3; border-radius: 8px; flex-shrink: 0; }
.award-info { flex: 1; min-width: 0; text-align: left; }
.award-title { display: block; font-size: 9.5px; color: #f39c12; text-transform: uppercase; font-weight: bold; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.award-bot { display: block; font-size: 13px; font-weight: bold; color: #2c3e50; margin-bottom: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.award-val { display: block; font-size: 11.5px; color: #7f8c8d; font-weight: 600; }

.plot-container { flex: 1 1 0; min-width: 0; border: 1px solid #eee; padding: 5px; border-radius: 4px; text-align: center; width: 100%; }
.chart-controls { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 10px; }
.btn-chart { background: #fff; border: 1px solid #dcdfe3; color: #7f8c8d; padding: 4px 10px; border-radius: 4px; cursor: pointer; font-size: 11px; font-weight: bold; transition: all 0.2s; }
.btn-chart:hover { background: #9b59b6; color: #fff; border-color: #9b59b6; }

.table-container { margin-top: 20px; }
.table-container h2 { font-size: 14px; color: #8e44ad; border-bottom: 1px solid #eee; padding-bottom: 5px; }
.list-table { width: 100%; border-collapse: collapse; font-size: 11px; margin-top: 10px; }
.list-table th { background-color: #8e44ad; color: white; padding: 0; text-align: right; cursor: pointer; transition: background 0.2s; border: none; }
.list-table th:hover { background-color: #9b59b6; }
.list-table th .header-content { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 10px; height: 100%; box-sizing: border-box; }
.list-table th .header-content.center { justify-content: center; }
.list-table th .header-content.left { justify-content: flex-start; }
.list-table th .header-content.right,
.list-table th:nth-child(n+3) .header-content { justify-content: flex-end; }
.list-table th:nth-child(-n+2) { text-align: left; }
.list-table th:nth-child(n+3) { text-align: right; }
.list-table td { padding: 6px; border-bottom: 1px solid #ecf0f1; text-align: right; }
.list-table td:nth-child(-n+2) { text-align: left; }
.list-table td:nth-child(n+3) { padding-right: 10px; }
.list-table tr:nth-child(even) { background-color: #f9f9f9; }
.profit-pos { color: #27ae60; font-weight: bold; }
.profit-neg { color: #c0392b; font-weight: bold; }

.content-wrapper { display: flex; gap: 20px; margin-top: 10px; }
.side-panel { flex: 0 0 22%; width: 22%; border: 1px solid #eee; padding: 15px; border-radius: 4px; background: #fff; max-height: 450px; overflow-y: auto; box-sizing: border-box; }
.rank-item { display: flex; align-items: center; padding: 8px 0; border-bottom: 1px solid #f0f0f0; cursor: pointer; transition: opacity 0.2s; }
.rank-item.disabled { opacity: 0.5; filter: grayscale(100%); }
.rank-item:last-child { border-bottom: none; }
.rank-number { font-size: 24px; font-weight: bold; color: #bdc3c7; width: 40px; text-align: center; }
.rank-info { flex: 1; }
.rank-name { font-weight: bold; font-size: 13px; color: #2c3e50; }
.rank-yield { font-size: 12px; font-weight: bold; }
.rank-yield.pos { color: #27ae60; }
.badge-trade-live {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fef9e7;
    color: #d35400;
    border: 1px solid #f9e79f;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    vertical-align: middle;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #e67e22;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 rgba(230, 126, 34, 0.7);
    animation: pulse 1.6s infinite;
}
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.7);
    }
    70% {
        box-shadow: 0 0 0 5px rgba(230, 126, 34, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(230, 126, 34, 0);
    }
}
.arena-floating {
    font-size: 9px;
    font-weight: bold;
    margin-top: 2px;
}

@media print {
    html, body { height: 100vh; margin: 0; padding: 0; box-sizing: border-box; background-color: #fff; }
    .container { display: flex; flex-direction: column; height: 100vh; box-shadow: none; border: none; width: 100%; max-width: 100%; padding: 0; margin: 0; }
    .chart-controls { display: none; }
    .content-wrapper { flex: 1; display: flex; gap: 10px; margin-top: 0; min-height: 0; width: 100%; }
    .plot-container { display: flex; flex-direction: column; flex: 1 1 0; min-width: 0; width: 100%; }
    #arena-chart { flex: 1; min-height: 0; width: 100%; }
    .side-panel { max-height: none; overflow-y: visible; padding: 5px; }
    .table-container { margin-top: 10px; width: 100%; }
    .awards-grid { margin-bottom: 10px; gap: 5px; width: 100%; }
    .award-box { padding: 8px; }
}
