/* ==========================================================================
   STRUKTURA I ANIMACJE POZYCJI RANKINGU TOP 10
   ========================================================================== */
.v2-top-list {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    list-style-type: none !important;
}

.v2-top-list li::before {
    content: none !important;
}

.v2-top-item {
    padding: 10px 15px; 
    border-bottom: 1px solid rgba(0, 0, 0, 0.25); 
    font-size: 12px; 
    color: #ddd; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    box-sizing: border-box;
    transition: background 0.2s ease-in-out, padding-left 0.2s ease-in-out;
}

.v2-top-item:hover {
    background: rgba(255, 255, 255, 0.02) !important;
    padding-left: 20px;
}

.v2-num-box {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    color: #888;
    background: #1c1c1c;
    border: 1px solid #2d2d2d;
    border-radius: 4px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
    transition: all 0.2s ease-in-out;
}

.box-gold {
    background: linear-gradient(135deg, #f1c40f 0%, #d4ac0d 100%) !important;
    border-color: #f1c40f !important;
    color: #000000 !important;
    box-shadow: 0 2px 6px rgba(241, 196, 15, 0.3) !important;
}

.box-silver {
    background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%) !important;
    border-color: #bdc3c7 !important;
    color: #000000 !important;
    box-shadow: 0 2px 6px rgba(189, 195, 199, 0.2) !important;
}

.box-bronze {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%) !important;
    border-color: #e67e22 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(230, 126, 34, 0.2) !important;
}

.v2-top-item:hover .v2-num-box:not(.box-gold):not(.box-silver):not(.box-bronze) {
    color: #ffffff;
    background: #e74c3c;
    border-color: #e74c3c;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.4);
}

.v2-fa-box {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: 4px;
}

.fa-gold   { color: #f1c40f; text-shadow: 0 0 6px rgba(241, 196, 15, 0.4); }
.fa-silver { color: #bdc3c7; text-shadow: 0 0 6px rgba(189, 195, 199, 0.3); }
.fa-bronze { color: #e67e22; text-shadow: 0 0 6px rgba(230, 126, 34, 0.3); }

.v2-rank-name {
    transition: color 0.2s ease-in-out;
}

.v2-rank-name a {
    color: #dddddd !important;
    text-decoration: none !important;
    transition: color 0.2s ease-in-out;
}

.font-bold-white a {
    font-weight: bold;
    color: #ffffff !important;
}

.v2-top-item:hover .v2-rank-name,
.v2-top-item:hover .v2-rank-name a {
    color: #ffffff !important;
}

.v2-rank-badge {
    font-size: 9px; 
    background: rgba(231, 76, 60, 0.2); 
    color: #e74c3c; 
    padding: 2px 6px; 
    border-radius: 3px; 
    font-weight: bold; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
  PRZYCISK DODAWANIA WIDEO (SIDEBAR)
   ========================================================================== */
/* OPIS TEKSTOWY WIDŻETU */
.v2-add-video-text {
    margin: 0 0 15px 0 !important; 
    font-size: 12px !important; 
    line-height: 1.5 !important; 
    color: #aaaaaa !important; 
    text-align: left !important;
}

/* ZIELONY PRZYCISK INTERAKTYWNY */
.v2-btn-add-video {
    display: block; 
    background: #2ecc71; 
    color: #ffffff !important; 
    font-weight: 700; 
    text-align: center; 
    padding: 10px; 
    border-radius: 4px; 
    font-size: 11px; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    text-decoration: none !important; 
    box-shadow: 0 2px 6px rgba(46, 204, 113, 0.2);
    transition: all 0.2s ease-in-out;
}

/* REAKCJA PRZYCISKU NA HOVER */
.v2-btn-add-video:hover {
    background: #27ae60 !important;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4) !important;
    transform: translateY(-1px);
}

/* ==========================================================================
   OPRAWA BLOKU REKLAMOWEGO W PANELU BOCZNYM (.sidebar-ads-box) — NEDDS24.PL
   ========================================================================== */

.sidebar-ads-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 6px 2px;
}

.sidebar-mediaboxy {
	width: 100%;
	text-align: center;
}

/* Subtelny rozdzielacz z napisem "Reklama Partnerska" */
.sidebar-ad-divider {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 8px;
	color: #8a8279;
	font-size: 10.5px;
	text-transform: uppercase;
	letter-spacing: 0.6px;
}

.sidebar-ad-divider::before,
.sidebar-ad-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #2b2d2e;
}

/* Oprawa samych banerów graficznych */
.sidebar-ad-banner {
	display: block;
	line-height: 0;
	border: 1px solid #323436;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-ad-banner img {
	max-width: 100%;
	height: auto;
	display: block;
}

.sidebar-ad-banner:hover {
	border-color: #c59b60;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.65);
	}
	

/* Kafelki mediów społecznościowych w kolumnie O nas z dymkami po najechaniu */
.nedds-socials {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.nedds-social-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: #23252a;
	border: 1px solid #32353d;
	border-radius: 10px;
	color: #ffffff !important;
	font-size: 17px;
	text-decoration: none !important;
	transition: all 0.22s ease;
}

/* Dymek (tooltip) nad kafelkiem */
.nedds-social-btn::before {
	content: attr(data-tooltip);
	position: absolute;
	bottom: calc(100% + 9px);
	left: 50%;
	transform: translateX(-50%) translateY(4px);
	background: #3a3d42;
	color: #ffffff;
	font-size: 11.5px;
	font-weight: bold;
	padding: 5px 10px;
	border-radius: 6px;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55);
	transition: all 0.2s ease;
	z-index: 10;
}

/* Trójkącik pod dymkiem */
.nedds-social-btn::after {
	content: "";
	position: absolute;
	bottom: calc(100% + 3px);
	left: 50%;
	transform: translateX(-50%) translateY(4px);
	border-width: 6px 6px 0 6px;
	border-style: solid;
	border-color: #3a3d42 transparent transparent transparent;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: all 0.2s ease;
	z-index: 10;
}

.nedds-social-btn:hover::before,
.nedds-social-btn:hover::after {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

.nedds-social-btn:hover {
	transform: translateY(-2px);
	color: #ffffff !important;
}

/* Kolory podświetlenia poszczególnych platform */
.nedds-social-btn.tiktok:hover {
	background: #111111;
	border-color: #ff0050;
	box-shadow: 0 0 12px rgba(255, 0, 80, 0.6);
}

.nedds-social-btn.discord:hover {
	background: #5865f2;
	border-color: #7983f5;
	box-shadow: 0 0 12px rgba(88, 101, 242, 0.65);
}

.nedds-social-btn.youtube:hover {
	background: #ff0000;
	border-color: #ff4d4d;
	box-shadow: 0 0 12px rgba(255, 0, 0, 0.65);
}

.nedds-social-btn.steam:hover {
	background: #1b2838;
	border-color: #66c0f4;
	box-shadow: 0 0 12px rgba(102, 192, 244, 0.65);
}

.nedds-social-btn.facebook:hover {
	background: #1877f2;
	border-color: #38bdf8;
	box-shadow: 0 0 12px rgba(56, 189, 248, 0.75);
}
/* Automatyczny wygląd nieaktywnych kafelków (gdy link to href="#") */
.nedds-social-btn[href="#"] {
	background: #18191c !important;
	border-color: #26282c !important;
	color: #555961 !important;
	opacity: 0.6;
	cursor: default;
	box-shadow: none !important;
	transform: none !important;
}

/* Brak podświetlenia po najechaniu na nieaktywny kafelek */
.nedds-social-btn[href="#"]:hover {
	background: #18191c !important;
	border-color: #26282c !important;
	color: #555961 !important;
	box-shadow: none !important;
	transform: none !important;
}

/* Zmiana tekstu dymku dla nieaktywnych kafelków na "Wkrótce" */
.nedds-social-btn[href="#"]::before {
	content: attr(data-tooltip) " (Wkrótce)";
	background: #27292e;
	color: #9ca3af;
}

.nedds-social-btn[href="#"]::after {
	border-top-color: #27292e;
}

/* Działa WYŁĄCZNIE na urządzeniach dotykowych (telefonach) — na PC z myszką nie zmienia nic */
@media (hover: none) and (pointer: coarse) {
	/* 1. Zwężenie kolumn Wątków i Postów (z 85px na 46px) */
	tbody[id^="cat_"] td.tcat[width="85"],
	tbody[id^="cat_"] td[align="center"]:not([width="1"]):not([width="200"]) {
		width: 46px !important;
		max-width: 46px !important;
		min-width: 46px !important;
		padding: 4px 2px !important;
		font-size: 11px !important;
		white-space: normal !important;
	}

	/* 2. Zwężenie kolumny Ostatni post (z 200px na 130px) */
	tbody[id^="cat_"] td.tcat[width="200"],
	tbody[id^="cat_"] td[align="right"] {
		width: 130px !important;
		max-width: 130px !important;
		min-width: 130px !important;
		padding: 6px 5px !important;
		font-size: 11px !important;
		white-space: normal !important;
		word-break: break-word !important;
	}

	/* 3. Poddziały ułożone poziomo obok siebie w wierszach (koniec z pionowymi schodami) */
	tbody[id^="cat_"] .ver_sub,
	tbody[id^="cat_"] ul.ver_sub {
		display: flex !important;
		flex-wrap: wrap !important;
		gap: 5px 12px !important;
		margin-top: 6px !important;
	}

	tbody[id^="cat_"] .ver_sub li,
	tbody[id^="cat_"] ul.ver_sub li {
		width: auto !important;
		float: none !important;
	}

	/* 4. Wyraźniejszy kontrast nazw działów, opisów i poddziałów na ekranie telefonu */
	tbody[id^="cat_"] strong a {
		font-size: 14px !important;
		color: #f3e5d0 !important;
	}

	tbody[id^="cat_"] .smalltext {
		font-size: 12px !important;
		line-height: 1.45 !important;
		color: #d6cfc7 !important;
	}

	tbody[id^="cat_"] .ver_sub li a {
		color: #e2b879 !important;
		font-size: 12px !important;
	}
}