/* Reset i podstawy */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    overflow: hidden;
    height: 100vh;
    user-select: none;
}

#app {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Topbar */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 20px;
}


/* Wyszukiwarka */
.search-container {
    flex: 1;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.search-form {
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 16px;
    z-index: 2;
}

.search-input {
    width: 100%;
    height: 50px;
    padding: 0 15px 0 45px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none;
}

.search-input::placeholder {
    color: #aaa;
}

.search-input:focus,
.search-input.search-focused {
    border-color: #00d4ff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.2);
    transform: scale(1.02);
}

/* Wskaźnik że wyszukiwarka jest częścią nawigacji */
.search-container::before {
    content: '1';
    position: absolute;
    top: -8px;
    left: -8px;
    width: 20px;
    height: 20px;
    background: #00d4ff;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.search-container.search-active::before {
    opacity: 1;
}

.search-input:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
}

.status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}


.time-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    backdrop-filter: none;
    border: none;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    width: auto;
    height: auto;
    flex-shrink: 0;
}

.clock {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.date {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.9;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}


.weather-forecast {
    display: flex;
    gap: 20px;
    font-size: 0.8rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
    backdrop-filter: none;
    border: none;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    width: auto;
    height: auto;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0.7;
}

.loading-spinner i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.forecast-hour {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px 1px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    min-width: 32px;
    height: 50px;
}

.forecast-time {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 500;
}

.forecast-emoji {
    font-size: 1.1rem;
}

.forecast-temp {
    font-size: 0.75rem;
    font-weight: 600;
}

#weather-icon {
    font-size: 16px;
}

#weather-temp {
    color: #ffffff;
    font-size: 14px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Główna zawartość */
.content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.content::-webkit-scrollbar {
    display: none;
}

/* Rzędy */
.row {
    margin-bottom: 60px;
}

.row-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Kontener kafli */
.tiles-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    padding: 20px 100px 40px 50px; /* +20px na poświatę kafelków */
}

.tiles-scroll {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease;
    padding: 0;
    width: max-content;
}

/* Strzałki nawigacyjne */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    width: 40px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 15;
    color: white;
    font-size: 18px;
    backdrop-filter: blur(5px);
    opacity: 0.8;
}

.nav-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.05);
    opacity: 1;
}

.nav-arrow-left {
    left: 0;
}

.nav-arrow-right {
    right: 0;
}

/* Siatka kafli - ukryta */
.grid {
    display: none;
}

/* Kontener seriali */
.shows-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    padding: 20px 100px 20px 50px;
}

/* Kontener filmów */
.movies-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    padding: 20px 100px 20px 50px;
}

.shows-scroll {
    display: flex;
    gap: 15px;
    transition: transform 0.3s ease;
    padding: 0;
    width: max-content;
}

.movies-scroll {
    display: flex;
    gap: 15px;
    transition: transform 0.3s ease;
    padding: 0;
    width: max-content;
}

/* Karty seriali */
.show-card {
    background: linear-gradient(145deg, #2a2a3e, #1e1e2e);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    width: 260px;
    height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    aspect-ratio: 16/9;
    margin-bottom: 16px;
    padding-bottom: 56px; /* miejsce na pasek providerów */
}

/* Karty filmów */
.movie-card {
    background: linear-gradient(145deg, #2a2a3e, #1e1e2e);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    width: 260px;
    height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    aspect-ratio: 16/9;
    margin-bottom: 16px;
    padding-bottom: 56px; /* miejsce na pasek providerów */
}

/* Provider compact bar */
.provider-bar {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 6px 8px;
}

.provider-category-chip {
    font-size: 0.7rem;
    font-weight: 700;
    color: #000;
    background: #00d4ff;
    border-radius: 6px;
    padding: 2px 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.provider-badges {
    display: flex;
    align-items: center;
    gap: 6px;
}

.provider-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.provider-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.provider-badge-text {
    font-size: 0.65rem;
    color: #fff;
    padding: 0 4px;
}

.provider-badge.more {
    width: auto;
    min-width: 28px;
    padding: 0 6px;
    background: rgba(0, 212, 255, 0.25);
    color: #00d4ff;
    font-weight: 700;
    font-size: 0.7rem;
}

/* --- Okładki aplikacji ustawione na sztywno w CSS --- */
.tile.netflix {
    background-image: url('images/apps/netflix.jpg');
    background-size: cover;
    background-position: center;
}

.tile.prime {
    background-image: url('images/apps/prime.jpg');
    background-size: cover;
    background-position: center;
}

.tile.player {
    background-image: url('images/apps/player.jpg');
    background-size: cover;
    background-position: center;
}

.tile.hbomax {
    background-image: url('images/apps/hbomax.jpg');
    background-size: cover;
    background-position: center;
}

.tile.disney {
    background-image: url('images/apps/disney.jpg');
    background-size: cover;
    background-position: center;
}

.tile.youtube {
    background-image: url('images/apps/yt.jpg');
    background-size: cover;
    background-position: center;
}

.tile.ytmusic {
    background-image: url('images/apps/ytmusic.jpg');
    background-size: cover;
    background-position: center;
}

.tile.nawspolnej {
    background-image: url('images/apps/nawspolnej.jpg');
    background-size: cover;
    background-position: center;
}

.tile.pirate {
    background-image: url('images/apps/pirates.jpg');
    background-size: cover;
    background-position: center;
}

/* Okładki kanałów Live */
.tile.tvn {
    background-image: url('images/live/tvn.jpg');
    background-size: cover;
    background-position: center;
}

.tile.polsat {
    background-image: url('images/live/polsat.jpg');
    background-size: cover;
    background-position: center;
}

.tile.tvpsport {
    background-image: url('images/live/tvpsport.jpg');
    background-size: cover;
    background-position: center;
}

.tile.tvp1 {
    background-image: url('images/live/tvp1.jpg');
    background-size: cover;
    background-position: center;
}

.tile.tvp2 {
    background-image: url('images/live/tvp2.jpg');
    background-size: cover;
    background-position: center;
}

.tile.twitch {
    background-image: url('images/live/twitch.jpg');
    background-size: cover;
    background-position: center;
}

.tile.kick {
    background-image: url('images/live/kick.jpg');
    background-size: cover;
    background-position: center;
}

.tile.radiokampus {
    background-image: url('images/live/radiokampus.jpg');
    background-size: cover;
    background-position: center;
}

.show-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.2);
}

.show-card.focused {
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.6), 0 12px 28px rgba(0, 212, 255, 0.25);
    transform: translateY(-8px) scale(1.05);
    z-index: 10;
    position: relative;
}

.movie-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.2);
}

.movie-card.focused {
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.6), 0 12px 28px rgba(0, 212, 255, 0.25);
    transform: translateY(-8px) scale(1.05);
    z-index: 10;
    position: relative;
}

.show-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.show-episode {
    font-size: 0.8rem;
    color: #cccccc;
    margin: 6px 0 0 0;
    line-height: 1.2;
}

.show-platform {
    font-size: 0.7rem;
    color: #888888;
    margin: 4px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.show-date {
    font-size: 0.7rem;
    color: #00d4ff;
    margin: 4px 0 0 0;
    font-weight: 500;
}

.show-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.show-info {
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.show-rating-date {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.show-rating {
    background-color: rgba(255, 215, 0, 0.9);
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-shadow: none;
}

.show-rating::before {
    content: "★";
    color: #000;
    margin-right: 2px;
}


.loading-shows {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #cccccc;
    font-size: 1rem;
    gap: 10px;
    width: 100%;
    height: 140px;
}

.loading-shows i {
    font-size: 2rem;
    color: #00d4ff;
}

.loading-movies {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #cccccc;
    font-size: 1rem;
    gap: 10px;
    width: 100%;
    height: 140px;
}

.loading-movies i {
    font-size: 2rem;
    color: #00d4ff;
}

.movie-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.movie-year {
    font-size: 0.8rem;
    color: #cccccc;
    margin: 6px 0 0 0;
    line-height: 1.2;
}

.movie-platform {
    font-size: 0.7rem;
    color: #888888;
    margin: 4px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.movie-date {
    font-size: 0.7rem;
    color: #00d4ff;
    margin: 4px 0 0 0;
    font-weight: 500;
}

.movie-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.movie-info {
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.movie-rating-date {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.movie-rating {
    background-color: rgba(255, 215, 0, 0.9);
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-shadow: none;
}

.movie-rating::before {
    content: "★";
    color: #000;
    margin-right: 2px;
}


/* Kafle */
.tile {
    background: linear-gradient(145deg, #2a2a3e, #1e1e2e);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    width: 250px;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}
/* Okładki dla kafelków aplikacji (jak w filmach/serialach) */
.tile.has-cover {
    background-image: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)), var(--tile-bg);
    background-size: cover;
    background-position: center;
}

.tile.has-cover .tile-icon,
.tile.has-cover .tile-label {
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
}




.tile:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.2);
}

.tile:hover .tile-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.tile:focus {
    outline: none;
    border-color: transparent;
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.5);
    transform: translateY(-4px) scale(1.01);
}

.tile:focus .tile-icon {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.4));
}

/* Usunięto .tile.large - wszystkie kafelki jednakowe */

/* Ikony */
.tile-icon {
    font-size: 48px;
    margin-bottom: 12px;
    z-index: 1;
    position: relative;
    transition: all 0.3s ease;
}

.tile-label {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 1;
    position: relative;
}

/* Kolory charakterystyczne dla usług */
/* Usunięto brandowe gradienty dla aplikacji – tła ustawione wyżej przez images/apps/*.jpg */

/* Ukryj ikonę w sekcji Aplikacje – zostawiamy tylko podpis */
#main-grid .tile { position: relative; }
#main-grid .tile .tile-icon { display: none; }
#main-grid .tile .tile-label { display: none; }
#main-grid .tile { border: none; }
#live-grid .tile { border: none; }
#live-grid .tile .tile-icon { display: none; }
#live-grid .tile .tile-label { display: none; }

.tile.nawspolnej { /* ujednolicone zachowanie z innymi – bez pomarańczowych wyjątków */ }

/* Sekcja z tekstem */
.text-content {
    padding: 20px 0;
    color: #ffffff;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.text-content p {
    margin-bottom: 16px;
    font-size: 16px;
    opacity: 0.9;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.text-content p:last-child {
    margin-bottom: 0;
}

/* Bottom bar */
.bottombar {
    padding: 15px 40px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Media modal */
.media-modal { display:none; }
.media-modal[aria-hidden="false"] { display:block; }
.media-modal__backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
}
.media-modal__panel {
    position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: min(900px, 92vw);
    max-height: 82vh; overflow: auto;
    background: rgba(20,20,35,0.98);
    border-radius: 16px; border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    z-index: 1001; padding: 20px;
    min-height: 400px;
}
.media-modal__close {
    position: absolute; right: -10px; top: -10px;
    width: 36px; height: 36px; border-radius: 50%;
    font-size: 18px; line-height: 1; color: #fff; 
    background: rgba(0, 0, 0, 0.7); border: 2px solid rgba(255, 255, 255, 0.25); 
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease; z-index: 1002;
}
.media-modal__close:hover {
    background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.5);
}
.media-modal__header { display:flex; justify-content: space-between; align-items: center; gap: 16px; }
.media-modal__title { font-size: 22px; margin: 0; }
.media-modal__meta { opacity: .9; font-size: 14px; display:flex; align-items:center; gap:10px; }
.badge { display:inline-flex; align-items:center; gap:6px; padding:4px 8px; border-radius: 8px; font-weight:700; font-size: 13px; }
.badge--rating { 
    background-color: rgba(255, 215, 0, 0.9);
    color: #000;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
}
.badge--rating::before {
    content: "★";
    color: #000;
    margin-right: 4px;
}
.badge--date { 
    background: transparent; 
    border: none; 
    color: #00d4ff; 
    font-weight: 400; 
    font-size: 0.7rem;
    padding: 0;
}
.media-modal__body { display:flex; gap: 20px; margin-top: 24px; }
.media-modal__poster { width: 240px; height: 135px; background: rgba(255,255,255,0.08); border-radius: 8px; background-size: cover; background-position: center; flex-shrink: 0; }
.media-modal__desc { flex: 1; font-size: 15px; line-height: 1.5; opacity: .95; }
.media-modal__providers { 
    margin-top: 30px; 
    display: flex; 
    flex-wrap: wrap; 
    align-items: center; 
    gap: 8px; 
    min-height: 40px;
    padding-bottom: 5px; /* Minimalny odstęp do przycisku Przejdź */
}
.provider-info { 
    display: inline-flex; 
    align-items: center;
    padding: 6px 12px; 
    background: rgba(0, 212, 255, 0.1); 
    border: 1px solid rgba(0, 212, 255, 0.3); 
    border-radius: 20px; 
    color: #00d4ff; 
    font-size: 14px; 
    font-weight: 600; 
    height: 32px;
}
.provider-chip { 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    padding: 6px 10px; 
    border-radius: 10px; 
    background: rgba(255,255,255,0.06); 
    border: 1px solid rgba(255,255,255,0.14); 
    height: 32px;
}
.provider-chip img { width: 22px; height: 22px; object-fit: contain; }
.media-modal__actions { 
    position: absolute; 
    left: 20px; 
    right: 20px; 
    bottom: 20px; 
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.media-modal__actions-right {
    display: inline-flex;
    gap: 10px;
    white-space: nowrap;
}
.tmdb-button { 
    padding: 10px 16px; 
    border-radius: 8px; 
    background: linear-gradient(45deg, #00d4ff, #00a8e1); 
    color: #000; 
    font-weight: 700; 
    border: none; 
    cursor: pointer; 
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}
.tmdb-button:hover, .tmdb-button:focus { 
    transform: translateY(-2px) scale(1.02); 
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.6); 
    outline: none;
}
.tmdb-button:active { transform: translateY(0) scale(0.98); }

/* Trailer button – wygląd jak tmdb-button, ale bez focus/hover efektu podbicia */
.yt-button {
    padding: 10px 16px; 
    border-radius: 8px; 
    background: linear-gradient(45deg, #00d4ff, #00a8e1); 
    color: #000; 
    font-weight: 700; 
    border: none; 
    cursor: pointer; 
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}
.yt-button:hover, .yt-button:focus { 
    transform: translateY(-2px) scale(1.02); 
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.6); 
    outline: none;
}
.yt-button:active { transform: translateY(0) scale(0.98); }

.hint {
    font-size: 14px;
    color: #cccccc;
    text-align: center;
    opacity: 0.8;
}

/* Animacje focus */
.tile.focused {
    border-color: transparent;
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.6), 0 8px 20px rgba(0, 212, 255, 0.2);
    transform: translateY(-8px) scale(1.05);
    z-index: 10;
    position: relative;
}

/* Responsywność */
@media (max-width: 600px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
    
    .tile {
        min-height: 100px;
        padding: 15px;
    }
    
    .tile-icon {
        font-size: 36px;
        margin-bottom: 8px;
    }
    
    .tile-label {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .topbar {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .search-container {
        order: 2;
        max-width: 100%;
        margin: 0;
    }
    
    .brand {
        order: 1;
        font-size: 24px;
    }
    
    .status {
        order: 3;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
    
    .weather {
        padding: 2px 6px;
    }
    
    #weather-temp {
        font-size: 12px;
    }
    
    #date {
        font-size: 12px;
    }
    
    #clock {
        font-size: 16px;
    }
    
    .content {
        padding: 20px;
    }
}

/* Animacje wejścia */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tile {
    animation: fadeInUp 0.6s ease-out;
}

.tile:nth-child(1) { animation-delay: 0.1s; }
.tile:nth-child(2) { animation-delay: 0.2s; }
.tile:nth-child(3) { animation-delay: 0.3s; }
.tile:nth-child(4) { animation-delay: 0.4s; }
