  body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: #1a1a1a;
    color: #f5f5f5;
  }

  header {
    text-align: center;
    padding: 1rem;
    background: #111;
    font-size: 1.8rem;
    letter-spacing: 1px;
  }

  .controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1rem 0;
  }

  select, input[type="text"] {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
  }

  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.5rem;
    padding: 1rem;
    padding-bottom: 120px;
  }

  .card {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
  }

  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
  }

  .card img {
    display: block;
    border-bottom: 1px solid #333;
    height: 300px;
    width: 175px;
    background: gray;
  }

img {
    max-height: 300px;
    width: auto;
    display: block;
    margin: auto;
    height: 100%;
}

  .card-info {
    text-align: center;
    padding: 0 2rem;
  }

  .card-info h3 {
    margin: 0.2rem 0;
    font-size: 1.1rem;
  }

  .card-info p {
    margin: 0.2rem 0;
    font-size: 0.85rem;
    color: #aaa;
  }

  .deck-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    gap: 0.5rem;
  }

  .deck-toggle button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    background: #333;
    color: #f5f5f5;
    cursor: pointer;
    transition: background 0.2s;
  }

  .deck-toggle button.active {
    background: #f5f5f5;
    color: #111;
  }

  .input-buttons {
    transform: scale(2);
    padding: 0;
    height: 16px;
    padding: 3px 2px 7px 2px;
    text-align: center;
    vertical-align: middle;
    display: inline-block;
    cursor: pointer;
  }

  #sticky-footer {
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100%;
      text-align: center;
      z-index: 100;
      background: black;
    }

    .card-link-wrapper {
        color: white;
        text-decoration: none;
    }

    .hide {
        display: none;
    }

    /* Base popover styling */
  .window {
    position: fixed; /* allow dragging */
    border: 1px solid #aaa;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    resize: both;
    overflow: hidden;
    min-width: 300px;
    min-height: 200px;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    padding-bottom: 15px;
  }

  .window-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #333;
    color: white;
    padding: 0.4em 0.6em;
    cursor: move;
    user-select: none;
  }

  .window-header span {
    font-size: 0.9em;
  }

  .window-header button {
    background: none;
    border: none;
    color: white;
    margin-left: 0.4em;
    cursor: pointer;
    font-size: 1em;
  }

  .window-body {
    width: 100%;
    height: calc(100% - 2em);
  }

  .window-body iframe {
    border: none;
    width: 100%;
    height: 100%;
  }

  .card img:hover {
    transform: rotate(180deg);
    filter: invert(1);
  }
