  body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background-color: #0a0a0a;
    color: white;
    display: flex;
    justify-content: center;
  }

  .container {
    width: 100%;
    max-width: 1540px;
    background-color: #1f1f1f;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.8);
    position: relative; /* KLUCZOWE */
  }

  nav {
    width: 100%;
    height: 50px;
    background-color: #181818;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    border-bottom: 1px solid #111;
    box-sizing: border-box;
  }

  .logo img {
    height: 32px;
    display: block;
  }

  .nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
  }

  .nav-links a {
    color: white;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s ease;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
  }

  .nav-links a:hover {
    opacity: 1;
  }

  /* --- RESZTA STRONY --- */
  main {
    display: flex;
    flex: 1;
    align-items: stretch;
    box-sizing: border-box;
  }

  .ramowka {
    width: 320px;
    background-color: #161616;
    border-right: 1px solid #111;
    padding: 8px 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    font-size: 0.75rem;
  }

  #searchInput {
    width: 100%;
    padding: 6px 9px;
    border: 0;
    background-color: #111;
    color: #eee;
    font-size: 0.78rem;
    outline: 0;
    margin-bottom: 6px;
  }

  #ramowkaList {
    flex: 1;
    overflow-y: auto;
  }

  .event-item {
    display: flex;
    align-items: center;
    background-color: #1d1d1d;
    padding: 3px 6px;
    margin-bottom: 3px;
    cursor: pointer;
    transition: background 0.15s;
  }

  .event-item:hover {
    background-color: #252525;
  }

  .event-item .time {
    font-weight: 600;
    font-size: 0.72rem;
    margin-right: 6px;
    white-space: nowrap;
    color: #fff;
  }

  .event-item .emoji {
    font-size: 0.7rem;
    margin-right: 6px;
  }

  .event-item .match {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.2px;
  }

  .main-content {
    flex: 1;
    background-color: #2a2a2a;
    padding: 10px 20px;
    box-sizing: border-box;
    color: #fff;
  }

  .placeholder img {
    width: 100%;
    display: block;
    height: auto;
    border: 0;
    margin: 0 auto;
  }

  .player-box {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background-color: #000;
    border: 1px solid #333;
    margin-bottom: 15px;
  }

  .player-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }

  .link-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #1a1a1a;
    border: 1px solid #222;
    padding: 8px 10px;
    margin-bottom: 15px;
    font-size: 0.9rem;
  }

  .copy-link {
    color: #ccc;
    text-decoration: none;
    word-break: break-all;
  }

  .copy-btn {
    background-color: #333;
    color: #fff;
    border: 0;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
  }

  .copy-btn:hover {
    background-color: #444;
  }

  .quality-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
  }

  .quality-header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .cinema-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #b3bf0a;
    color: #fff;
    border: 0;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
  }
  
  .add-source-btn {
    background-color: #b3bf0a;
    color: #000;
    border: 0;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.2s;
    text-decoration: none;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
}

.add-source-btn:hover {
    background-color: #d4e010;
    transform: translateY(-1px);
}

  .cinema-btn:hover {
    background: #c80812;
  }

  .language-block {
    margin-bottom: 6px;
    color: #eee;
    font-size: 0.85rem;
  }

.quality-option {
  cursor: pointer;
  font-family: Calibri, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  margin: 0 8px;
  text-decoration: underline;
  text-decoration-color: #fff;
}

.quality-option.active {
  text-decoration-color: #ff0000;
  color: #fff;
}

  .chat-panel {
    width: 282px;
    background-color: #1e1e1e;
    border-left: 1px solid #111;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
  }

  .chat-panel iframe {
    width: 282px;
    height: 650px;
    border: 0;
    background-color: #000;
    margin-bottom: 8px;
  }

  details {
    width: 90%;
    margin-bottom: 8px;
    background-color: #181818;
    padding: 6px 8px;
    font-size: 0.8rem;
    color: #ccc;
    border: 1px solid #111;
  }

  summary {
    cursor: pointer;
    color: #fff;
    font-weight: 600;
  }

  details p {
    margin: 5px 0;
    color: #aaa;
    line-height: 1.4;
  }

  details img {
    max-width: 100%;
  }