* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-user-drag: none;
  }

  body {
    background: transparent;
    margin-top: -17px;
    width: 336px;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

a:hover {
    cursor: url('https://i026net.neocities.org/website/elements/cursor_hover.png'), auto;
}

* {
    cursor: url('https://i026net.neocities.org/website/elements/cursor_normal.png'), auto;
}
    *::-webkit-scrollbar {
      width: 10px;
    }
    *::-webkit-scrollbar-track {
      background: linear-gradient(to right, #e0e0e0 0%, #b8b8b8 100%);
      border-left: 1.5px solid #3c3c3d;
      border-right: 1.5px solid #575757;
      box-shadow: inset 2px 0 6px rgba(0, 0, 0, 0.65);
    }
    *::-webkit-scrollbar-thumb {
      background-color: #e0e0e0;
      border: 1.5px solid #3c3c3d;
      border-radius: 6px;
      box-shadow: inset 0 1.5px 1px #ffffff, inset 1px 0 1px #ffffff, inset -1px -1.5px 2px rgba(0, 0, 0, 0.4), 1px 2px 4px rgba(0, 0, 0, 0.5);
    }
    *::-webkit-scrollbar-button:single-button:vertical:decrement {
      border-radius: 4px 4px 0 0;
      background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23475569'><polygon points='50,25 15,80 85,80'/></svg>"),
        linear-gradient(to bottom, #ffffff 0%, #e0e0e0 50%, #b8b8b8 100%);
      background-size: 6px, cover;
      background-repeat: no-repeat;
      background-position: center;
      border: 1.5px solid #575757;
    }
    *::-webkit-scrollbar-button:single-button:vertical:increment {
      border-radius: 0 0 4px 4px;
      background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23475569'><polygon points='50,75 15,20 85,20'/></svg>"),
        linear-gradient(to bottom, #ffffff 0%, #e0e0e0 50%, #b8b8b8 100%);
      background-size: 6px, cover;
      background-repeat: no-repeat;
      background-position: center;
      border: 1.5px solid #575757;
    }

.media-tabs {
    position: relative;
    left: -8px;
    display: flex;
    gap: 13px;
    margin-top: 18px;
    margin-bottom: -15px;
    width: 90%;
    text-align: center;
    justify-content: center;
    padding: 5px 0px;
    border-radius: 0px 0px 50px 50px;
    box-shadow: 0 3px 7px rgba(15, 23, 42, 0.18), inset 0 1px 1px #ffffff, inset 0 -2px 5px rgba(15 23 42 / 21%);
    border: 1.5px solid #837560;
    border-top: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, .45), transparent 34%), linear-gradient(to bottom, #eeeae6 0%, #dcd6d0 52%, #c8c1bb 100%);
}

.media-tab {
    text-decoration: none;
    font-size: 14px;
    color: #8b7c64;
    text-shadow: 1px 1px 0 white;
}

.tab-divider {
    text-decoration: none;
    font-size: 14px;
    color: #8b7a64;
    text-shadow: 1px 1px 0 white;
}

  .media-entry {
    display: flex;
    align-items: center;
    position: relative;
    width: 324px;
    height: 140px;
    overflow: visible;
    padding: 10px 0;
    margin-bottom: -44px;
  }

.media-card {
    display: flex;
    position: relative;
    align-items: center;
    border-radius: 6px;
    padding: 12px;
    gap: 12px;
    width: 278px;
    height: 98px;
    overflow: visible;
    z-index: 10;
    border: 1.5px solid #4f4f4f;
    background: linear-gradient(135deg, rgba(255, 255, 255, .45), transparent 34%), linear-gradient(to bottom, #eeeae6 0%, #dcd6d0 52%, #c8c1bb 100%);
    border-color: #816d5a;
    color: #514b45;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78), inset 0 -5px 12px rgba(76, 68, 60, .08), 0 3px 8px rgba(76, 68, 60, .11);
}

.media-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url(https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSULhkFx-t0BELyBBUJ_dydswoo959dRyQxHROJbX86BciMFS0_NrIPJXmx&s=10);
    background-position: center;
    background-size: cover;
    opacity: 0.5;
    mix-blend-mode: color-burn;
    pointer-events: none;
    z-index: 1;
    border-radius: 6px;
}
.card-detail {
    position: absolute;
    width: 5px;
    height: 5px;
    background: linear-gradient(135deg, #b8a794 0%, #695f47 100%);
    border: 0.5px solid #554433;
    border-radius: 50%;
    box-shadow: inset 0.5px 0.5px 1px rgba(255, 255, 255, 0.6), 0.5px 0.5px 1px rgba(0, 0, 0, 0.15);
    z-index: 21;
}
  .card-detail-tl { top: 5px; left: 5px; }
  .card-detail-tr { top: 5px; right: 5px; }
  .card-detail-bl { bottom: 5px; left: 5px; }
  .card-detail-br { bottom: 5px; right: 5px; }

  .connector {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #475569;
    border-radius: 50%;
    border: 1px solid #94a3b8;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.5);
    z-index: 22;
    display: none;
  }
  .connector-top { top: 12px; right: 10px; }
  .connector-bottom { bottom: 12px; right: 10px; }

  .poster-area {
    width: 43px;
    height: 64px;
    position: relative;
    perspective: 500px;
    flex-shrink: 0;
    z-index: 10;
  }

.poster-frame {
    width: 43px;
    height: 64px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    border: 1.5px solid #796853;
    border-radius: 4px;
    box-shadow: 2px 4px 6px rgba(15, 23, 42, 0.25);
    background: #3b311e;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    -webkit-box-reflect: below 0px linear-gradient(to bottom, transparent 78%, rgba(255, 255, 255, 0.15) 100%, rgba(255, 255, 255, 0.3) 100%);
}

  .poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
    display: block;
    filter: brightness(92%) contrast(106%);
  }

  .info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    width: 192px;
    margin-left: 0;
    z-index: 20;
  }

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px solid #b8a594;
    padding-bottom: 3px;
    gap: 6px;
}

.status-dot {
    width: 5px;
    height: 5px;
    background-color: #5bb910;
    border-radius: 50%;
    box-shadow: 0 0 6px #51b910;
    display: inline-block;
    margin-right: 4px;
    vertical-align: middle;
}

  .title {
    font-size: 9px;
    font-weight: 900;
    color: #5f554c;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    max-width: 145px;
    display: inline-flex;
    align-items: center;
    overflow: visible;
  }
.title .title-text {
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    color: #5f554c;
}
.watched-mark {
    margin-left: 0px;
    font-size: 12px;
    cursor: help;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #856741;
    filter: drop-shadow(0 0 1.5px rgba(77, 168, 204, 0.4));
    transition: transform 0.2s ease;
    z-index: 20;
    font-weight: 900;
}

.watched-mark::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #f9f4f1;
    border: 1.5px solid #857769;
    color: #8b7065;
    padding: 3px 8px;
    border-radius: 2px;
    font-size: 8px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 1px 1px 6px rgb(0 0 0 / 24%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.25s ease, visibility 0.25s;
    z-index: 999;
}

  .watched-mark::before {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px;
    border-style: solid;
    border-color: transparent transparent #857269 transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
    z-index: 1000;
  }

  .watched-mark:hover::after,
  .watched-mark:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
  
.owned-badge {
    margin-left: 0px;
    font-size: 12px;
    cursor: help;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #856741;
    filter: drop-shadow(0 0 1.5px rgba(77, 168, 204, 0.4));
    transition: transform 0.2s ease;
    z-index: 20;
    font-weight: 900;
}

.owned-badge::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #f9f4f1;
    border: 1.5px solid #857769;
    color: #8b7065;
    padding: 3px 8px;
    border-radius: 2px;
    font-size: 8px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 1px 1px 6px rgb(0 0 0 / 24%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.25s ease, visibility 0.25s;
    z-index: 999;
}

  .owned-badge::before {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px;
    border-style: solid;
    border-color: transparent transparent #857269 transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
    z-index: 1000;
  }

  .owned-badge:hover::after,
  .owned-badge:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

.review-date {
    font-size: 8px;
    font-weight: 850;
    color: #8b7164;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

  .metadata {
    display: flex;
    flex-direction: column;
    gap: 1.5px;
    margin-top: 1px;
  }

  .metadata-item {
    font-size: 9.5px;
    color: #81756b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

.metadata-item span {
    font-weight: 850;
    font-style: italic;
    color: #81756b;
}

.rating-box {
    position: absolute;
    right: 11px;
    top: 18px;
    width: 25px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    height: 102px;
    border: 1.5px solid #4f4f4f;
    background: linear-gradient(135deg, rgba(255, 255, 255, .45), transparent 34%), linear-gradient(to bottom, #eeeae6 0%, #dcd6d0 52%, #c8c1bb 100%);
    border-color: #816d5a;
    color: #514b45;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78), inset 0 -5px 12px rgba(76, 68, 60, .08), 0 3px 8px rgba(76, 68, 60, .11);
}

  .rating-box::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    border-radius: 4px 4px 0 0;
    z-index: 25;
  }

.rating-inner {
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 3.5px;
    right: 3.5px;
    background: linear-gradient(to right, #e1d8cb 0%, #b8a194 100%);
    border: 1px solid #695647;
    border-right-color: #f9f5f1;
    border-bottom-color: #f9f6f1;
    border-radius: 3px;
    box-shadow: inset 1px 1px 3px rgb(42 25 15 / 25%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

  .rating-detail {
    position: absolute;
    width: 3.5px;
    height: 3.5px;
    background: #475569;
    border-radius: 50%;
    border: 0.5px solid rgba(255,255,255,0.4);
    z-index: 26;
  }
  .rating-detail-top { top: 2px; left: 50%; transform: translateX(-50%); }
  .rating-detail-bottom { bottom: 2px; left: 50%; transform: translateX(-50%); }

  .rating-socket {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #334155;
    border-radius: 50%;
    border: 0.5px solid #94a3b8;
    z-index: 27;
  }
  .rating-socket-top { top: 12px; left: -2px; }
  .rating-socket-bottom { bottom: 12px; left: -2px; }

  .rating-stars {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 71px;
    align-items: center;
    position: relative;
    z-index: 15;
  }

.rating-stars img {
    width: 11px;
    height: 11px;
    display: block;
    filter: drop-shadow(0 0 2px rgba(255, 223, 0, 0.7)) hue-rotate(20deg) grayscale(55%) brightness(95%);
}

  .card-connectors {
    position: absolute;
    right: 33px;
    top: 0;
    bottom: 0;
    width: 14px;
    pointer-events: none;
    z-index: 5;
  }

  .connector-lines {
    width: 100%;
    height: 100%;
  }

.connector-line {
    fill: none;
    stroke: #485533;
    stroke-width: 1.8;
    stroke-linecap: round;
    filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.4));
}