/* MAKÓWKA - Gosia i Nikola Muzyka - style.css */
@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&display=swap');

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    background-color: #000080;
    background-image:
        repeating-linear-gradient(45deg, #000080 0px, #000080 20px, #0000a0 20px, #0000a0 40px);
    color: #00ff00;
    font-family: "Comic Neue", "Comic Sans MS", cursive, sans-serif;
    font-size: 16px;
    cursor: url('data:image/gif;base64,'), auto;
}

a {
    color: #ffff00;
}
a:visited {
    color: #ff00ff;
}
a:hover {
    color: #ff0000;
    background: #ffff00;
}

marquee {
    background: #ff0000;
    color: #ffff00;
    font-weight: bold;
    font-size: 22px;
    padding: 4px 0;
    border-top: 3px dashed yellow;
    border-bottom: 3px dashed yellow;
}

.wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: #c0c0c0;
    border: 6px ridge #ffffff;
    padding: 0;
}

header.site-header {
    background: linear-gradient(180deg, #ff00ff 0%, #8000ff 50%, #ff00ff 100%);
    text-align: center;
    padding: 10px;
    border-bottom: 5px double yellow;
}

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

h1.logo {
    font-size: 52px;
    margin: 6px 0 0 0;
    color: #ffff00;
    text-shadow: 3px 3px 0 #ff0000, -1px -1px 0 #00ffff;
    letter-spacing: 2px;
    font-family: "Comic Neue", cursive;
    transform: skew(-4deg);
}

.subtitle {
    color: #00ffff;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 1px 1px 0 #000;
}

.rainbow-line {
    height: 6px;
    background: repeating-linear-gradient(90deg, red, orange, yellow, green, blue, indigo, violet 8px);
}

nav.navbar {
    background: #000000;
    padding: 8px;
    text-align: center;
    border-bottom: 4px ridge #00ff00;
}
nav.navbar a {
    display: inline-block;
    margin: 0 6px;
    padding: 4px 10px;
    background: #333;
    border: 2px outset #888;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}
nav.navbar a:hover {
    background: #ff0000;
    color: #fff;
}

.layout {
    display: flex;
    flex-wrap: wrap;
}

.main-col {
    flex: 3;
    min-width: 320px;
    padding: 14px;
    background: #ffffff;
    background-image: repeating-linear-gradient(0deg, #ffffff, #ffffff 24px, #eef 25px);
    color: #000080;
}

.side-col {
    flex: 1;
    min-width: 180px;
    padding: 10px;
    background: #d8d8d8;
    border-left: 4px ridge #fff;
}

fieldset {
    border: 3px groove #8000ff;
    margin-bottom: 16px;
    background: #ffe4ff;
}
legend {
    font-weight: bold;
    color: #ff0000;
    background: yellow;
    padding: 2px 8px;
    border: 2px solid #ff00ff;
}

.hit-counter {
    background: #000;
    color: #0f0;
    font-family: "Courier New", monospace;
    font-weight: bold;
    letter-spacing: 3px;
    padding: 4px 8px;
    border: 3px inset #999;
    display: inline-block;
    margin-top: 6px;
}

.guestbook {
    background: #fff8dc;
    border: 2px dashed #ff8800;
    padding: 8px;
    font-size: 13px;
}

/* --- Player --- */
.player {
    background: linear-gradient(#333, #111);
    border: 4px outset #999;
    padding: 12px;
    color: #0f0;
    font-family: "Courier New", monospace;
    box-shadow: 0 0 15px #00ffff inset;
}

.player-screen {
    background: #001100;
    border: 3px inset #000;
    padding: 8px;
    margin-bottom: 8px;
    min-height: 50px;
}

.now-playing {
    color: #00ff00;
    font-weight: bold;
    font-size: 15px;
    text-shadow: 0 0 5px #00ff00;
    white-space: nowrap;
    overflow: hidden;
}

.equalizer {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 30px;
    margin-top: 6px;
}
.equalizer span {
    width: 6px;
    background: linear-gradient(#00ff00, #ffff00, #ff0000);
    animation: eq 0.9s infinite ease-in-out;
}
.equalizer span:nth-child(1) { animation-delay: 0s; }
.equalizer span:nth-child(2) { animation-delay: 0.1s; }
.equalizer span:nth-child(3) { animation-delay: 0.2s; }
.equalizer span:nth-child(4) { animation-delay: 0.3s; }
.equalizer span:nth-child(5) { animation-delay: 0.15s; }
.equalizer span:nth-child(6) { animation-delay: 0.25s; }
.equalizer span:nth-child(7) { animation-delay: 0.05s; }
.equalizer span:nth-child(8) { animation-delay: 0.35s; }
.equalizer.paused span { animation-play-state: paused; height: 4px !important; }

@keyframes eq {
    0%, 100% { height: 4px; }
    50% { height: 28px; }
}

.controls {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 8px 0;
}
.controls button {
    background: linear-gradient(#666, #222);
    color: #0f0;
    border: 2px outset #999;
    font-family: "Courier New", monospace;
    font-weight: bold;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 14px;
}
.controls button:active {
    border-style: inset;
}

.volume-row {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    margin-bottom: 6px;
    font-size: 12px;
}

.song-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 2px inset #8000ff;
    background: #fff;
}
.song-list li {
    padding: 7px 10px;
    border-bottom: 1px dotted #8000ff;
    cursor: pointer;
    font-weight: bold;
    color: #000080;
}
.song-list li:hover {
    background: #ffff00;
    color: #ff0000;
}
.song-list li.active {
    background: #000080;
    color: #00ff00;
}

.playlist {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 220px;
    overflow-y: auto;
    border: 2px inset #000;
    background: #000;
}
.playlist li {
    padding: 6px 8px;
    border-bottom: 1px dotted #0a0;
    cursor: pointer;
    font-size: 12px;
    color: #0f0;
}
.playlist li:hover {
    background: #003300;
}
.playlist li.active {
    background: #00ff00;
    color: #000;
    font-weight: bold;
}

.progress-bar {
    width: 100%;
    height: 14px;
    background: #003300;
    border: 2px inset #000;
    margin-bottom: 8px;
    cursor: pointer;
}
.progress-fill {
    height: 100%;
    width: 0%;
    background: repeating-linear-gradient(90deg, #00ff00, #00ff00 4px, #003300 4px, #003300 8px);
}

/* --- Fake ads --- */
.ad-banner {
    display: block;
    text-align: center;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    padding: 10px;
    margin: 10px 0;
    border: 4px dashed #ff0000;
    font-size: 18px;
    animation: flash-bg 0.6s infinite alternate;
}
@keyframes flash-bg {
    from { background-color: #ff0000; }
    to { background-color: #ffcc00; color: #ff0000; }
}
.ad-banner.blue {
    animation: flash-bg-blue 0.8s infinite alternate;
    border-color: #00ffff;
}
@keyframes flash-bg-blue {
    from { background-color: #0000ff; color: #ffff00; }
    to { background-color: #00ffff; color: #ff00ff; }
}
.ad-banner.green {
    animation: flash-bg-green 0.5s infinite alternate;
    border-color: #ffff00;
}
@keyframes flash-bg-green {
    from { background-color: #00cc00; color: #ffffff; }
    to { background-color: #009900; color: #ffff00; }
}
.ad-small {
    font-size: 12px;
    display: block;
    margin-top: 4px;
    color: inherit;
}

.sidebar-ad {
    display: block;
    margin-bottom: 12px;
    padding: 8px;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    border: 3px ridge #ff00ff;
    animation: pulse 1s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.04); }
    100% { transform: scale(1); }
}
.sidebar-ad.p1 { background: gold; color: red; }
.sidebar-ad.p2 { background: #ff69b4; color: #000080; }
.sidebar-ad.p3 { background: #adff2f; color: #800080; }

footer.site-footer {
    text-align: center;
    background: #000;
    color: #0f0;
    padding: 10px;
    font-size: 12px;
    border-top: 4px double #ff00ff;
}

.webring {
    background: #ffffcc;
    border: 2px solid #000;
    padding: 6px;
    text-align: center;
    font-size: 12px;
    margin: 10px 0;
}

.construction {
    text-align: center;
    font-weight: bold;
    color: #ff8800;
    background: repeating-linear-gradient(45deg, #000, #000 10px, #ff8800 10px, #ff8800 20px);
    padding: 4px;
}
.construction span {
    background: #fff;
    padding: 0 6px;
}

/* --- Fake ad subpages --- */
.ad-page {
    background: #ffffff;
    color: #000;
    font-family: "Comic Neue", cursive;
    text-align: center;
    padding: 40px 20px;
}
.ad-page h1 {
    font-size: 40px;
    color: #ff0000;
    text-shadow: 2px 2px 0 gold;
}
.ad-page .prize {
    font-size: 100px;
}
.ad-page .back-link {
    display: inline-block;
    margin-top: 30px;
    padding: 10px 20px;
    background: #000080;
    color: #fff;
    text-decoration: none;
    border: 3px outset #ccc;
    font-weight: bold;
}

/* --- Telefony / wąskie ekrany --- */
@media (max-width: 640px) {
    body { font-size: 14px; }

    marquee { font-size: 15px; }

    h1.logo { font-size: 30px; }
    .subtitle { font-size: 14px; }
    .hit-counter { font-size: 12px; }

    nav.navbar a {
        margin: 3px;
        padding: 4px 6px;
        font-size: 12px;
    }

    .layout { flex-direction: column; }
    .side-col { border-left: none; border-top: 4px ridge #fff; }

    .ad-banner { font-size: 14px; padding: 8px; }
    .ad-small { font-size: 10px; }

    .controls { flex-wrap: wrap; }
    .controls button { font-size: 12px; padding: 5px 7px; }

    .now-playing { white-space: normal; font-size: 13px; }

    .playlist li, .song-list li { font-size: 12px; }

    .ad-page h1 { font-size: 26px; }
    .ad-page .prize { font-size: 60px; }
}
