.followed-teams-wrapper {
    margin: 20px 0;
}

.teams-header {
	display: flex;
}

.toggle-search-button {
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
	background: unset;
}

.toggle-search-button:hover {
    transform: rotate(20deg);
}

/* Блок поиска */
.search-container {
	margin-top: 8px;
    margin-bottom: 20px;
}

.search-wrapper {
	display: flex;
    position: relative;
    width: 100%;
    max-width: 600px;
}

.my-teams {
	font-size: 22px;
	color: #000;
	margin: 0 12px 0 24px;
	text-decoration: none;
	border-bottom: 2px solid #ff4400;
	position: relative;
	top: -2px;
	max-width: max-content;
}

.team-search-input {
    width: 100%;
    padding: 8px 16px !important;
    font-size: 16px;
    border: 1px solid #000 !important;  
    border-radius: 8px;
    box-sizing: border-box;
	margin-left: 12px;
}

/* Сообщение, когда нет выбранных команд */
.no-teams-selected {
    margin-top: 12px;
    padding: 20px;
    text-align: center;
    background: #f9f9f9;
    border: 2px dashed #ccc;
    border-radius: 12px;
    color: #666;
}

.no-teams-selected p {
    margin: 8px 0;
}

.no-teams-selected .hint {
    font-size: 0.95em;
    color: #888;
}

/* Блок результатов поиска */
#find-teams {
    display: none;                    /* Скрываем по умолчанию */
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    padding: 10px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	margin-top: 12px;
}

#find-teams.show,
#find-teams:has(.team-item),
#find-teams:has(p) {
    display: block;
}

.clear-btn {
    font-size: 22px;
    color: #999;
    cursor: pointer;
    display: none;                    /* скрыт по умолчанию */
    line-height: 1;
    padding: 2px 6px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.clear-btn:hover {
    color: #e74c3c;
    background: #f1f1f1;
}

.clear-btn.show {
    display: block;
}

.find-teams-results {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 8px;
    background: #fff;
}

.team-item {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.team-item:last-child {
    border-bottom: none;
}

.team-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
}
.team-item input {
	margin-right: 12px;
}

.followed-teams-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.followed-tag {
    background: #0073aa;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
	text-transform: uppercase;
}

.remove-tag {
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    opacity: 0.8;
	position: relative;
	top: -2px;
}

.remove-tag:hover {
    opacity: 1;
    color: #ff4444;
}

.followed-teams-games h3 {
    font-size: 18px;
}

.teams-games-list {
    list-style: none;
    padding: 0;
}

.teams-games-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.teams-games-list li:last-child {
    border-bottom: none;
}
/* === Блоки по командам === */
.followed-teams-games-wrapper {
    margin-top: 30px;
}

.team-section {
    margin-bottom: 25px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
}

.team-name {
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #0073aa;
    color: #0073aa;
    font-size: 1.4em;
}

.team-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.team-posts-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.team-post-link {
    color: #333;
    text-decoration: none;
}

.team-post-link:hover {
    color: #0073aa;
    text-decoration: underline;
}

.no-posts {
    color: #888;
    font-style: italic;
    margin: 10px 0;
}
.post-date {
    color: #fff;
    background-color: #999;
    border-radius: 4px;
    padding: 0 4px;
    font-size: 13px;
	line-height: 20px;
}

.team-posts-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team-post-link {
    flex: 1;
}
/* ====================== ТАБЫ ====================== */
.followed-teams-tabs {
    margin-top: 12px;
}

.tabs-header {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
    margin-right: 8px;
    flex-shrink: 0;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border-bottom: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
	border-radius: 6px 6px 0 0;
}

.tab-button:hover {
    background: #f1f1f1;
}

.tab-button.active {
    background: #f1f1f1;
    color: №000;
}

.tab-name {
    flex: 1;
}

.remove-tab {
    font-size: 18px;
    line-height: 1;
    color: #ff4400;
    opacity: 0.8;
    cursor: pointer;
    padding: 0 4px;
    border-radius: 50%;
    transition: all 0.2s;
}

.remove-tab:hover {
    opacity: 1;
    color: #ff4444;
}

.tab-button:not(.active) .remove-tab {
    color: #666;
}

.tab-button:not(.active) .remove-tab:hover {
    color: #e74c3c;
}

.tabs-content {
    min-height: 120px;
}

.tab-pane {
    display: none;
	padding: 12px;
}

.tab-pane.active {
    display: block;
}