:root {
    --background-color: #0A0A0A;
    --text-color: #EAEAEA;
    --accent-color: #9146FF; /* Twitch Purple */
    --offline-color: #505050;
    --online-color: #FF003C; /* Live Red */
    --border-style: 2px solid var(--text-color);
    --grid-color: rgba(234, 234, 234, 0.03); /* Добавляем цвет для сетки */
    --scrollbar-bg: #1A1A1A;
    --scrollbar-thumb: var(--text-color);
    --scrollbar-width: 16px;
}

/* Светлая тема */
body.light-theme {
    --background-color: #EAEAEA;
    --text-color: #0A0A0A;
    --offline-color: #0A0A0A;
    --border-style: 2px solid var(--text-color); /* Добавляем явное указание границ */
    --grid-color: rgba(10, 10, 10, 0.03); /* Цвет сетки для светлой темы */
    --scrollbar-bg: #D1D1D1;
    --scrollbar-thumb: var(--text-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Prevent horizontal scrolling and ensure elements respect viewport width */
html, body {
    max-width: 100vw;
    overflow-x: hidden; /* дополнительная страховка */
}

/* Ensure media elements don't overflow */
img, video, iframe, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent oversized headings from causing overflow */
h1 {
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
    box-sizing: border-box;
}

/* Constrain main grid and large UI boxes to viewport */
main, .feedback-widget, .feedback-modal, .marquee {
    max-width: 100vw;
    box-sizing: border-box;
}

/* Ensure marquee doesn't create horizontal scroll */
.marquee {
    left: 0;
    right: 0;
    width: 100vw;
    box-sizing: border-box;
}

body {
    background-color: var(--background-color);
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    color: var(--text-color);
    font-family: 'Space Mono', monospace;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem;
    padding-bottom: 4rem; /* Добавляем отступ для бегущей строки */
    user-select: none; /* Запрещаем выделение */
    -webkit-user-select: none; /* Для Safari */
    -moz-user-select: none; /* Для Firefox */
    -ms-user-select: none; /* Для IE/Edge */
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-text {
    font-family: 'Space Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* Live state */
body.live #avatar {
    border-color: var(--online-color);
}

body.live #status-indicator {
    background-color: var(--online-color);
}

body.live #status-text {
    color: var(--online-color);
}

.hero {
    min-height: 90vh;
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10rem;
    border: var(--border-style);
}

#theme-switcher {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: var(--border-style);
    color: var(--text-color);
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.1s linear;
}

#theme-switcher:hover {
    background-color: var(--text-color);
    color: var(--background-color);
}

.streamer-info {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 2;
}

#avatar {
    width: 120px;
    height: 120px;
    border-radius: 0;
    border: var(--border-style);
    transition: none;
    object-fit: cover;
}

#status-indicator {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    background-color: var(--offline-color);
    border: var(--border-style);
}

#stream-details {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    text-align: right;
    z-index: 2;
    background-color: var(--background-color);
    padding: 1rem;
    border: var(--border-style);
}

#status-text {
    font-weight: 700;
    text-transform: uppercase;
    color: var(--offline-color);
    font-size: 1rem;
    letter-spacing: 0.1em;
}

#stream-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 3vw, 1.8rem);
    font-weight: 900;
    margin-top: 0.5rem;
    display: none; /* Hidden by default */
}

#stream-game {
    font-size: 1rem;
    color: var(--text-color);
    display: none; /* Hidden by default */
    font-weight: 700;
}

h1 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(5rem, 28vw, 25rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 0.8;
    text-transform: uppercase;
    z-index: 1;
    color: var(--text-color);
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
    box-sizing: border-box;
}

.twitch-button {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 1rem;
    color: var(--background-color);
    background-color: var(--text-color);
    border: var(--border-style);
    padding: 1rem 2rem;
    text-decoration: none;
    transition: all 0.1s linear;
}

.twitch-button:hover {
    background-color: var(--accent-color);
    color: var(--text-color);
    transform: translate(-4px, -4px);
    box-shadow: 4px 4px 0 0 var(--text-color);
}

main {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 колонки по умолчанию для больших экранов */
    gap: 2rem;
    max-width: 100vw;
    box-sizing: border-box;
}

.card {
    background: var(--background-color);
    border: var(--border-style);
    border-radius: 0;
    padding: 2rem;
    width: 100%;
    backdrop-filter: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    word-break: break-word; /* Добавлено для переноса длинных слов */
}

.card:hover {
    border-color: var(--accent-color);
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card h2 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    margin-bottom: 2rem;
    color: var(--text-color);
}

#about p {
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 400;
}

#schedule ul {
    list-style: none;
    font-size: 1rem;
    line-height: 2;
}

#schedule ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-bottom: 2px solid var(--text-color);
    padding: 0.5rem 0;
}

.clips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.clip-placeholder {
    aspect-ratio: 16 / 9;
    background-color: transparent;
    border-radius: 0;
    border: var(--border-style);
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--text-color);
    font-size: 2rem;
    border: var(--border-style);
    border-radius: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.1s linear;
    background: var(--background-color);
    position: relative;
}

.social-links a:hover {
    transform: translate(-4px, -4px);
    box-shadow: 4px 4px 0 0 var(--text-color);
    background-color: var(--text-color);
    color: var(--background-color);
}

/* Специфические цвета для разных соцсетей */
.social-links a[aria-label="Twitch"]:hover {
    border-color: #9146FF;
    box-shadow: 4px 4px 0 0 #9146FF;
}

.social-links a[aria-label="Discord"]:hover {
    border-color: #5865F2;
    box-shadow: 4px 4px 0 0 #5865F2;
}

.social-links a[aria-label="Telegram"]:hover {
    border-color: #0088cc;
    box-shadow: 4px 4px 0 0 #0088cc;
}

#support p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.support-button {
    display: inline-block;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 1rem;
    color: var(--background-color);
    background-color: var(--accent-color);
    padding: 1rem 2rem;
    border: var(--border-style);
    text-decoration: none;
    transition: all 0.1s linear;
}

.support-button:hover {
    transform: translate(-4px, -4px);
    box-shadow: 4px 4px 0 0 var(--text-color);
}

.faq-accordion {
    width: 100%;
}

.faq-item {
    border-bottom: var(--border-style);
}

.faq-question {
    background: none;
    border: none;
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    padding: 1rem 0;
    width: 100%;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question i {
    transition: transform 0.2s ease;
}

.faq-question.active i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding: 0 0 1rem 0;
    font-size: 1rem;
    line-height: 1.6;
}

.setup-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1rem;
    line-height: 2;
}

.setup-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: var(--border-style);
    padding: 0.5rem 0;
    gap: 1rem;
}
/* Marquee styles */
.marquee {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    background-color: var(--text-color);
    color: var(--background-color);
    padding: 0.5rem 0;
    white-space: nowrap;
    overflow: hidden;
    border-top: var(--border-style);
    z-index: 10;
    box-sizing: border-box;
}

.marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 20s linear infinite;
    font-weight: 700;
    text-transform: uppercase;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}


/* Медиа-запросы для адаптивности сетки */
@media (max-width: 1024px) {
    main {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки для планшетов */
    }
    .news-main {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки для новостей на планшетах */
    }
}

@media (max-width: 768px) {
    main {
        grid-template-columns: 1fr; /* 1 колонка для мобильных */
    }
    .hero {
        min-height: auto; /* Убираем минимальную высоту */
        padding: 2rem 1rem;
        margin-bottom: 5rem;
        flex-direction: column; /* Выстраиваем все элементы в колонку */
        gap: 2rem;
    }
    h1 {
        font-size: clamp(4rem, 20vw, 10rem); /* Уменьшаем максимальный размер заголовка */
        line-height: 1;
    }
    #theme-switcher,
    #stream-details, .twitch-button {
        position: static;
        text-align: center;
        margin-top: 2rem;
        width: 100%;
    }
    .streamer-info {
        position: static; /* Убираем абсолютное позиционирование */
        width: auto;
        text-align: center;
        margin: 0;
    }
    #theme-switcher {
        order: -1; /* Ставим кнопку темы в самое начало */
        align-self: flex-end; /* Прижимаем к правому краю */
        position: static;
        margin: 0 0 2rem 0; /* Добавляем отступ снизу */
        width: 60px; /* Возвращаем квадратную форму */
    }
    html, body {
        overscroll-behavior-x: contain;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .hero {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .feedback-widget {
        right: 1rem;
        left: 1rem;
        width: calc(100% - 2rem);
        max-width: calc(100vw - 2rem);
    }
    .feedback-modal {
        width: calc(100% - 2rem);
        max-width: calc(100vw - 2rem);
    }
    .twitch-button, #stream-details {
        padding-left: 0;
        padding-right: 0;
    }
    /* reduce large heading on very small screens to avoid overflow */
    h1 {
        font-size: clamp(3rem, 18vw, 8rem);
    }
    .news-main {
        grid-template-columns: 1fr; /* 1 колонка для новостей на мобильных */
    }
}

/* Fix for news cards on mobile: ensure grid and cards are visible and not clipped */
@media (max-width: 768px) {
    .news-main {
        grid-template-columns: 1fr;
        display: block; /* Ensure block layout for mobile */
        width: 100%;
        max-width: 100vw;
        padding: 0;
        margin: 0;
    }
    .news-card {
        width: 100%;
        max-width: 100vw;
        margin: 0 0 2rem 0;
        box-sizing: border-box;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        display: block;
    }
    .news-title-image {
        width: 100%;
        max-width: 100vw;
        height: auto;
        aspect-ratio: 21/9;
        object-fit: cover;
        margin-bottom: 2rem;
        border: var(--border-style);
        display: block;
    }
}

/* News header image */
.news-header-image {
    width: 100%;
    aspect-ratio: 21/9;
    object-fit: cover;
    border: var(--border-style);
    margin-bottom: 2rem;
}

/* News page specific styles */
.news-hero {
    min-height: 40vh; /* Smaller hero for news page */
    margin-bottom: 5rem;
}
.news-hero h1 {
    font-size: clamp(4rem, 20vw, 12rem); /* Adjust size for news title */
}
.news-main {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* как main на главной */
    gap: 2rem;
    max-width: 100vw;
    margin: 0 auto;
    padding: 0 1rem;
}
@media (max-width: 1024px) {
    .news-main {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .news-main {
        grid-template-columns: 1fr;
    }
}

/* .news-card просто наследует .card */
.news-card {
    /* не переопределяем размеры, только убираем анимацию если нужно */
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    margin-bottom: 0; /* убираем лишний отступ, используем gap */
}

/* Full news view */
.news-full {
    grid-column: 1 / -1;
    padding: 3rem 2rem;
}
.news-full h2 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin-bottom: 1rem;
}
.news-full .news-date {
    margin-bottom: 2rem;
}
.news-full .news-content img {
    max-width: 100%;
    margin: 2rem 0;
    border: var(--border-style);
    display: block;
}

/* Стили для скроллбара */
::-webkit-scrollbar {
    width: var(--scrollbar-width);
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-bg);
    border-left: var(--border-style);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border: 2px solid var(--scrollbar-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-bg);
}

/* Анимации */
.animate {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s ease-out forwards;
}

.streamer-info.animate { animation-delay: 0.2s; }
h1.animate { animation-delay: 0.1s; }
#stream-details.animate { animation-delay: 0.4s; }
.twitch-button.animate { animation-delay: 0.6s; }

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Feedback widget (bottom-right) */
.feedback-widget {
    position: fixed;
    right: 1.25rem;
    bottom: 5.5rem; /* above marquee */
    width: 320px;
    max-width: calc(100% - 2rem);
    background: var(--background-color);
    border: var(--border-style);
    padding: 1rem;
    z-index: 10000;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    box-shadow: 6px 6px 0 0 rgba(0,0,0,0.12);
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.feedback-widget.hidden {
    opacity: 0;
    transform: translateY(12px) scale(.98);
    pointer-events: none;
}

.feedback-widget .fw-left {
    flex: 1;
}

.feedback-widget .fw-title {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.feedback-widget .fw-sub {
    font-size: 0.85rem;
    color: rgba( var(--text-color-rgb, 234,234,234), 0.8 );
}

/* rating buttons */
.fw-rating {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.fw-rating button {
    width: 36px;
    height: 36px;
    border: var(--border-style);
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    font-weight: 900;
    transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.fw-rating button:hover {
    transform: translate(-4px, -4px);
    box-shadow: 4px 4px 0 0 var(--text-color);
}

/* close button */
.fw-close {
    background: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}

/* Modal overlay + box */
.feedback-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
}

.feedback-modal-overlay.active { display: flex; }

.feedback-modal {
    width: 720px;
    max-width: calc(100% - 2rem);
    background: var(--background-color);
    border: var(--border-style);
    padding: 1.5rem;
    box-shadow: 8px 8px 0 0 rgba(0,0,0,0.14);
}

.feedback-modal h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
}

.feedback-modal textarea {
    width: 100%;
    min-height: 120px;
    background: transparent;
    color: var(--text-color);
    border: var(--border-style);
    padding: 0.75rem;
    resize: vertical;
}

.feedback-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.feedback-actions button {
    padding: 0.6rem 1rem;
    border: var(--border-style);
    background: var(--background-color);
    color: var(--text-color);
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.12s ease;
}

.feedback-actions button.primary {
    background: var(--accent-color);
    color: #fff;
}

.feedback-actions button:hover { transform: translate(-4px, -4px); }

/* small responsive */
@media (max-width: 420px) {
    .feedback-widget { width: calc(100% - 2rem); right: 1rem; left: 1rem; }
    .feedback-modal { width: calc(100% - 2rem); }
}

/* helper to expose RGB of text color for subtle use */
:root { --text-color-rgb: 234,234,234; }
body.light-theme { --text-color-rgb: 10,10,10; }

.news-content {
    margin: 1rem 0;
    line-height: 1.7;
    font-size: 1rem;
    word-break: break-word;
}
.news-content p {
    margin: 1.2em 0;
}
.news-content ul, .news-content ol {
    margin: 1em 0 1em 2em;
    padding-left: 1.2em;
}
.news-content blockquote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    background: rgba(145,70,255,0.07);
    border-left: 4px solid var(--accent-color);
    font-style: italic;
    color: var(--text-color);
}
.news-content .ql-indent-1 {
    margin-left: 2em;
}
.news-content h1, .news-content h2, .news-content h3, .news-content h4, .news-content h5, .news-content h6 {
    margin: 2em 0 1em 0;
    font-weight: 900;
    color: var(--accent-color);
}
.news-content img {
    max-width: 100%;
    margin: 2em 0;
    border: var(--border-style);
    display: block;
}
.news-content pre, .news-content code {
    background: #222;
    color: #fff;
    padding: 0.3em 0.7em;
    border-radius: 4px;
    font-family: 'Space Mono', monospace;
    font-size: 0.95em;
    margin: 1em 0;
    display: block;
    overflow-x: auto;
}

/* 404 Error Page */
.error-page {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.error-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.error-card {
    max-width: 500px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.error-code {
    font-family: 'Inter', sans-serif;
    font-size: clamp(5rem, 15vw, 8rem);
    font-weight: 900;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 1.5rem;
    text-shadow: 4px 4px 0 rgba(145,70,255,0.2);
}

.error-card h1 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-transform: none;
    letter-spacing: normal;
}

.error-card p {
    margin-bottom: 2rem;
    opacity: 0.8;
    font-size: 1rem;
    line-height: 1.6;
}

/* Visibility checkboxes (admin) */
.visibility-grid {
	/* пространство между элементами уже задано inline-style, стенычка ниже для визуала */
}
.visibility-grid label {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-weight: 700;
	color: var(--text-color);
	cursor: pointer;
}

/* Большие, стильные чекбоксы. Используем accent-color для современных браузеров,
   fallback: border + background on :checked handled by accent-color where supported. */
.visibility-grid input[type="checkbox"] {
	width: 20px;
	height: 20px;
	appearance: none;
	-webkit-appearance: none;
	background: transparent;
	border: 2px solid rgba(234,234,234,0.15);
	border-radius: 4px;
	display: inline-block;
	position: relative;
	cursor: pointer;
	transition: background 0.12s ease, border-color 0.12s ease, transform 0.08s ease;
}

/* rely on accent-color if supported */
.visibility-grid input[type="checkbox"] {
	accent-color: var(--accent-color);
}

/* fallback tick using box-shadow */
.visibility-grid input[type="checkbox"]:checked {
	background: var(--accent-color);
	border-color: var(--accent-color);
	transform: translateY(-1px);
}
.visibility-grid input[type="checkbox"]:focus {
	outline: none;
	box-shadow: 0 0 0 4px rgba(145,70,255,0.08);
}

/* small label text tweak for compact layout */
.visibility-grid label { font-size: 0.95rem; }

/* Partners & Sponsors grid styles */
.partners-list, .sponsors-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.partner-item, .sponsor-item {
    background: var(--background-color);
    border: var(--border-style);
    border-radius: 0;
    padding: 1.2rem 1rem;
    text-align: center;
    box-shadow: 4px 4px 0 0 rgba(145,70,255,0.08);
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
}

.partner-item:hover, .sponsor-item:hover {
    border-color: var(--accent-color);
    box-shadow: 8px 8px 0 0 var(--accent-color);
    transform: translateY(-2px) scale(1.03);
}

.partner-item i, .sponsor-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    transition: color 0.15s;
}

.partner-item img, .sponsor-item img {
    max-width: 90px;
    max-height: 90px;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    border: var(--border-style);
    background: #222;
    object-fit: contain;
}

.partner-item strong, .sponsor-item strong {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--accent-color);
    margin-bottom: 0.2rem;
    letter-spacing: -0.02em;
}

.partner-item a, .sponsor-item a {
    font-size: 0.95rem;
    color: var(--text-color);
    background: var(--accent-color);
    border: var(--border-style);
    border-radius: 0;
    padding: 0.4rem 0.8rem;
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    margin-top: 0.3rem;
    transition: background 0.12s, color 0.12s, box-shadow 0.12s;
    display: inline-block;
}

.partner-item a:hover, .sponsor-item a:hover {
    background: var(--text-color);
    color: var(--accent-color);
    box-shadow: 2px 2px 0 0 var(--accent-color);
}

/* Drag and drop styles */
.dynamic-list-item {
    /* ...existing item styles... */
    cursor: move;
    position: relative;
    background: var(--background-color);
}

.dynamic-list-item.dragging {
    opacity: 0.5;
    border-color: var(--accent-color);
}

.dynamic-list-item::before {
    content: "☰";
    position: absolute;
    left: -30px;
    color: var(--text-color);
    opacity: 0.5;
    cursor: move;
}

.drag-over {
    border-top: 2px solid var(--accent-color);
}
