/* ===== БАЗА ===== */
body {
    font-family: 'Segoe UI', sans-serif;
    background-image: url('sky.png');
    background-size: 100% auto;
    background-position: top center;
    background-repeat: repeat-y;
    background-attachment: fixed;
    color: #333;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    padding: 0px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* ===== ШАПКА (компактная, все блоки в один-два ряда) ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, #fdf2f8 0%, #ffffff 50%, #f3e5f5 100%);
    border-radius: 5px 5px 0 0;
    padding: 15px 15px;
    margin-bottom: 0;
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.08);
}

.profile {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 10%;
    border: 3px solid #9c27b0;
    object-fit: cover;
}

.profile-info h1 {
    margin: 0 0 5px 0;
    font-size: 40px;
    color: #6a1b9a;
}

.profile-info p {
    margin: 0;
    font-size: 15px;
    color: #666;
    max-width: 260px;
    line-height: 1.3;
}

/* Правая часть — кнопки сверху, статистика снизу */
.header-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    flex: 1;
	padding-left: 190px;
}

/* ===== КНОПКИ КАНАЛОВ ===== */
.channel-links {
    display: flex;
    gap: 10px;
}

.channel-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    width: 200px;
    box-sizing: border-box;
}

.channel-btn .channel-icon { font-size: 16px; }
.channel-btn .channel-text { flex: 1; text-align: center; }
.channel-btn .channel-arrow {
    font-size: 18px;
    font-weight: 300;
    transition: transform 0.2s ease;
}
.channel-btn:hover .channel-arrow { transform: translateX(3px); }

.channel-btn.twitch {
    background-color: #f3e5f5;
    color: #6a1b9a;
    border-color: #d1c4e9;
}
.channel-btn.twitch:hover {
    background-color: #e1d4f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(106, 27, 154, 0.15);
}

.channel-btn.telegram {
    background-color: #fce4ec;
    color: #c2185b;
    border-color: #f8bbd0;
}
.channel-btn.telegram:hover {
    background-color: #f8bbd0;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(194, 24, 91, 0.15);
}

/* ===== ПЛАШКИ СТАТИСТИКИ — 5 в один ряд ===== */
.stats-cards {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.card {
    background-color: rgba(255, 240, 245, 0.7);
    border: 1px solid #f3d1dc;
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 170px;
    box-sizing: border-box;
    transition: transform 0.2s ease;
	position: relative;
}

.card:hover { transform: translateY(-2px); }

.card-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%); /* вертикально по центру */
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.channel-icon-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex-shrink: 0;
}

.card-info {
    display: flex;
    flex-direction: column;
    align-items: center; /* по центру */
    text-align: center;
    line-height: 1.15;
    width: 100%; /* занять всё место справа от иконки */
}

.card-info {
    display: flex;
    flex-direction: column;
    align-items: center; /* было flex-start */
    text-align: center;
    line-height: 1.15;
}

.card-info span {
    font-size: 12px;
    letter-spacing: 0; /* убираем разрядку, из-за которой слово кажется длиннее */
    white-space: nowrap; /* запрещаем перенос слов */
}

.card-info b {
    font-size: 18px;
    color: #6a1b9a;
}

/* ===== ТАБЛИЦА ===== */
.movie-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 16px;
    background-color: transparent;
}

.movie-table th {
    background-color: #f3e5f5;
    color: #6a1b9a;
    padding: 15px;
    text-align: left;
}

.movie-table td {
    padding: 15px;
    border-bottom: none;
}

.movie-table a {
    color: #6a1b9a;
    text-decoration: none;
    font-weight: 500;
}

.movie-table a:hover { text-decoration: underline; }

/* Закрепление строки заголовков таблицы */
.movie-table thead th {
    position: sticky;
    top: 186px;
    z-index: 150;
    background-color: #f3e5f5;
    color: #6a1b9a;
    padding: 15px;
    text-align: left;
}

/* Строки */
.movie-table tbody tr {
    position: relative;
    z-index: 1;
}

/* Разделители столбцов */
.movie-table th,
.movie-table td {
    border-right: 1px solid rgba(106, 27, 154, 0.15);
}
.movie-table th:last-child,
.movie-table td:last-child {
    border-right: none;
}

/* Чередование фона строк */
.movie-table tbody tr:nth-child(odd) td {
    background-color: rgba(190, 215, 255, 0.15);
}
.movie-table tbody tr:nth-child(even) td {
    background-color: rgba(156, 39, 176, 0.05);
}

/* Колонка «Тип» (2-я) — уменьшенный шрифт и ширина */
.movie-table th:nth-child(2) {
    width: 30px;
    padding: 15px 5px;
}
.movie-table td:nth-child(2) {
    font-size: 12px;
    text-align: center;
    color: #7a7a7a;
    padding: 15px 5px;
    white-space: nowrap;
}

/* Центрирование содержимого колонок: #, Дата, Заказ/Аукцион, Шанс рулетки, Зритель, Оценка */
.movie-table th:nth-child(1),
.movie-table td:nth-child(1),
.movie-table th:nth-child(4),
.movie-table td:nth-child(4),
.movie-table th:nth-child(5),
.movie-table td:nth-child(5),
.movie-table th:nth-child(6),
.movie-table td:nth-child(6),
.movie-table th:nth-child(7),
.movie-table td:nth-child(7),
.movie-table th:nth-child(8),
.movie-table td:nth-child(8) {
    text-align: center;
}

.movie-table th:nth-child(9) {
    text-align: center;
}

/* Иконки в заголовках таблицы */
.th-icon {
    width: 25px;
    height: 25px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 2px;
    position: relative;
    top: -1px; /* лёгкая подстройка, чтобы иконка сидела по центру строки текста */
}