/* --- RESET E STILE GREZZO --- */
:root {
    --bg-paper: #fffef0; /* Giallastro sporco */
    --text-black: #000000;
    --border-thick: 3px solid #000;
    --border-thin: 1px solid #000;
    --alert-red: #ff0000;
    --link-blue: #0000ee;
    
    /* MODIFICA 1: Font più leggibili */
    --font-main: 'Courier New', Courier, monospace; /* Per i dati e i testi tecnici */
    --font-title: 'Helvetica Neue', Helvetica, Arial, sans-serif; /* Sostituisce Impact: pulito e leggibile */
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-paper);
    color: var(--text-black);
    font-family: var(--font-main);
    line-height: 1.4; /* Aumentato leggermente per migliorare la lettura */
    padding-bottom: 40px; /* Spazio per la emergency bar */
}

a { text-decoration: none; color: var(--text-black); }
a:hover { background-color: var(--text-black); color: var(--bg-paper); }

/* --- HEADER BANNER GIGANTE --- */
.top-banner {
    width: 100%;
    border-bottom: var(--border-thick);
    background: #000;
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.banner-content {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    width: 100%;
    gap: 20px;
}

/* GIF / CARD ROSSA */
.giant-gif-placeholder {
    flex: 2;
    background-color: var(--alert-red);
    background-image: repeating-linear-gradient(45deg, #ff0000, #ff0000 10px, #cc0000 10px, #cc0000 20px);
    min-height: 350px;
    border: 5px solid white;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px; 
}

.giant-gif-placeholder h1 {
    font-family: var(--font-title); /* Usa il nuovo font leggibile */
    font-weight: 800; /* Grassetto ma non troppo */
    font-size: 3.5rem; /* Leggermente più piccolo per evitare che vada a capo male */
    text-transform: uppercase;
    color: white;
    text-shadow: 2px 2px 0px #000; /* Ombra ridotta per pulizia */
    margin: 0;
    z-index: 2;
}

.gif-layer {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid black;
    filter: contrast(1.2) grayscale(0.2);
    z-index: 1;
}

/* Donation Box laterale */
.donation-box {
    flex: 1;
    background: var(--bg-paper);
    color: black;
    border: var(--border-thick);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 250px;
}

.donation-box h2 {
    font-family: var(--font-title);
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 0;
    border-bottom: var(--border-thick);
    padding-bottom: 10px;
}

.donation-box p {
    font-size: 0.95rem; /* Testo donazione più leggibile */
    margin-bottom: 15px;
}

.btn-donate {
    background: black;
    color: white;
    border: none;
    padding: 15px;
    font-family: var(--font-title); /* Bottone più leggibile */
    font-weight: 600;
    font-size: 1rem;
    margin-top: 10px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-donate:hover {
    background: var(--alert-red);
    color: white;
}

/* --- TICKER SCORREVOLE (RALLENTATO) --- */
.marquee-container {
    background: yellow;
    border-bottom: var(--border-thick);
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    padding-left: 100%;
    /* MODIFICA 2: Rallentato da 20s a 60s per leggibilità */
    animation: marquee 60s linear infinite; 
    font-weight: 600; /* Meno grassetto */
    font-size: 1.1rem;
    text-transform: uppercase;
    font-family: var(--font-title); /* Font leggibile */
    letter-spacing: 0.5px;
}

@keyframes marquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* --- NAVBAR --- */
.main-nav {
    border-bottom: var(--border-thick);
    background: #e0e0e0;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.main-nav li {
    border-right: var(--border-thin);
}

.main-nav li:last-child { border-right: none; }

.main-nav a {
    display: block;
    padding: 15px 30px;
    font-family: var(--font-title);
    font-weight: 600; /* Ridotto il grassetto */
    font-size: 1.1rem;
    text-transform: uppercase;
}

.red-text a { color: var(--alert-red); }

/* --- GRIGLIA VIDEO --- */
.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.page-title {
    background: black;
    color: white;
    display: inline-block;
    padding: 8px 18px;
    margin-bottom: 25px;
    font-size: 1.4rem;
    font-family: var(--font-title);
    font-weight: 600;
    letter-spacing: 1px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.video-item {
    border: var(--border-thick);
    background: white;
}

.thumb {
    height: 200px;
    background: #333;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: var(--border-thin);
    overflow: hidden;
}

.thumb::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, transparent 20%, black 150%), repeating-linear-gradient(0deg, transparent, transparent 2px, #000 4px);
    opacity: 0.3;
}

.play-icon {
    font-size: 4rem;
    color: white;
    opacity: 0.8;
    z-index: 1;
}

.label-banned, .label-shadowbanned {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    font-weight: bold;
    font-size: 0.75rem;
    z-index: 2;
    border: 1px solid black;
    font-family: var(--font-title);
}

.label-banned { background: var(--alert-red); color: white; }
.label-shadowbanned { background: yellow; color: black; }

.video-item h3 {
    margin: 15px;
    font-size: 1rem;
    line-height: 1.4;
    text-transform: uppercase;
    font-weight: 700;
    font-family: var(--font-title); /* Titoli video più chiari */
}

.meta {
    padding: 10px 15px;
    background: #eee;
    border-top: var(--border-thin);
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-family: var(--font-main);
    color: #444;
}

/* --- FOOTER UNDERGROUND --- */
.underground-footer {
    border-top: var(--border-thick);
    margin-top: 50px;
    background: #dcdcdc;
    padding: 40px 20px 20px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-box {
    border: var(--border-thick);
    padding: 20px;
    background: var(--bg-paper);
}

.footer-box h4 {
    margin-top: 0;
    background: black;
    color: white;
    padding: 8px;
    text-transform: uppercase;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 1rem;
}

.highlight-box {
    border: 3px solid var(--link-blue);
    box-shadow: 6px 6px 0px rgba(0,0,255,0.15);
}

.mirror-list, .tools-links {
    list-style: none;
    padding: 0;
}

.mirror-list li { margin-bottom: 12px; font-family: var(--font-main); font-size: 0.9rem; }
.onion-link { color: green; font-weight: bold; }

.btn-telegram {
    display: block;
    background: #0088cc;
    color: white;
    text-align: center;
    padding: 12px;
    font-weight: 600;
    font-family: var(--font-title);
    margin-top: 15px;
}
.btn-telegram:hover { background: #006699; color: white; }

.btn-copy {
    width: 100%;
    margin-top: 15px;
    padding: 8px;
    background: #ccc;
    border: 1px solid black;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.85rem;
}

.terminal-footer {
    text-align: center;
    font-family: var(--font-main);
    font-size: 0.8rem;
    border-top: 1px dashed black;
    padding-top: 20px;
    color: #333;
}

/* --- EMERGENCY BOTTOM BAR --- */
.emergency-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35px;
    background-color: #aa0000;
    border-top: 2px solid black;
    color: white;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 -5px 10px rgba(0,0,0,0.5);
}

.emergency-content {
    display: flex;
    gap: 15px;
    align-items: center;
}

.emergency-content a {
    color: white;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.emergency-content a:hover {
    border-bottom: 1px solid white;
    background-color: white;
    color: #aa0000;
}

.sep { color: #ffcccc; }

.blink { animation: blinker 1s linear infinite; }
@keyframes blinker { 50% { opacity: 0; } }

/* Wall of Shame (se presente) */
.wall-of-shame {
    max-width: 800px;
    margin: 20px auto;
    border: 3px solid black;
    background: #fff;
}
.shame-header {
    background: black;
    color: white;
    padding: 5px 10px;
    text-transform: uppercase;
    font-family: var(--font-title);
    font-weight: 600;
}
.shame-list {
    height: 150px;
    overflow-y: scroll;
    padding: 10px;
    font-family: var(--font-main);
    background: #f0f0f0;
}
.shame-item {
    border-bottom: 1px dashed #999;
    padding: 5px 0;
    display: flex;
    justify-content: space-between;
}
.status-red { color: red; font-weight: bold; animation: blink 1s infinite; }
.status-yellow { color: #ccaa00; font-weight: bold; }


/* RESPONSIVE */
@media (max-width: 768px) {
    .banner-content { flex-direction: column; }
    .giant-gif-placeholder { min-height: 200px; }
    .giant-gif-placeholder h1 { font-size: 2.5rem; }
    .main-nav ul { flex-direction: column; }
    .main-nav li { border-right: none; border-bottom: var(--border-thin); text-align: center; }
    
    .emergency-bottom-bar { font-size: 0.7rem; }
    .emergency-content { gap: 8px; }
}
