@font-face {
    font-family: "Arrival";
    src: url("../fonts/arrival/arrival.otf") format("opentype"),
      /* Open Type Font */ url("../fonts/arrival/arrival.svg") format("svg"),
      /* Legacy iOS */ url("../fonts/arrival/arrival.ttf") format("truetype"),
      /* Safari, Android, iOS */ url("../fonts/arrival/arrival.woff")
        format("woff"),
      /* Modern Browsers */ url("../fonts/arrival/arrival.woff2") format("woff2"); /* Modern Browsers */
    font-weight: normal;
    font-style: normal;
  }
  @keyframes bounce {
    from {
      transform: translate3d(0, -86px, 0);
    }
    to {
      transform: translate3d(0, 40px, 0);
    }
  }
  
  @-webkit-keyframes bounce {
    from {
      -webkit-transform: translate3d(0, -86px, 0);
      transform: translate3d(0, -86px, 0);
    }
    to {
      -webkit-transform: translate3d(0, 40px, 0);
      transform: translate3d(0, 40px, 0);
    }
  }
  html {
    scroll-behavior: smooth;
    overflow-x: hidden;
  }
  
  body {
    font-size: 16px;
    font-family: "Titillium Web", sans-serif;
    overflow-x: hidden;
  }
  
  header {
    transition: 0.6s;
    z-index: 10000;
    top: 0;
    left: 0;
    position: fixed;
    transition: 0.6s;
    background: rgba(26, 26, 26, 0.9);
    width: 100%;
    overflow: hidden;
  }
  
  header > div {
    display: flex;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0.5em;
  }

  .menu-item {
    display: none;
    align-items: flex-start;
    justify-content: flex-start;
    font-weight: bold;
    padding: 0.5rem;
  }
  .menu-item:first-of-type {
    display: inline-flex;
    justify-content: left;
    width: 60%;
    margin-left: 0;
    margin-right: auto;
    padding: 0;
  }
  .menu-item.show {
    display: inline-flex;
  }
  .menu-item a {
    color: #fff;
    text-decoration: none;
    padding: 0 0.5em;
    width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
    white-space: nowrap;
  }
  .menu-item a:hover {
    color: #ff6b6b;
  }
  .menu-item a svg {
    flex-shrink: 0;
    opacity: 0.85;
  }

  .menu-mobile-item {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 32px;
  }

  .menu-mobile-item > a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.5rem;
    text-align: center;
  }
  
  h2 {
    text-align: center;
  }
  
  main > * {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    width: 100%;
  }
  .dark-container {
    background: rgba(26, 26, 26, 1);
    color: #fff;
  }
  .title {
    flex-direction: column;
    width: 100%;
    align-items: center;
    padding-top: 126px;
  }
  .title > img {
    margin: 0 auto;
    max-width: 450px;
  }
  .title > h1 {
    margin: 0;
    font-family: "Arrival", Times, sans-serif;
    background: -webkit-linear-gradient(
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.4)
    );
    background: linear-gradient(
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.4)
    );
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 4px;
    transition: 0.2s;
  }
  .description > h2 {
    text-align: center;
    font-weight: 400;
    font-size: 1.75rem;
  }
  .description > h2 > strong {
    color: #e42800;
    font-weight: 700;
    font-size: 3.5rem;
  }
  
  .download {
    text-decoration: none;
    padding: 20px 6px;
    display: block;
    border-radius: 20px;
    font-size: 1.75rem;
    border: none;
    font-weight: 700;
    background-color: #d60000;
    width: 200px;
    text-align: center;
    margin: auto;
    padding: 16px 60px;
    transition: 0.2s;
    color: #fff;
  }
  
  .download:hover {
    width: 250px;
    background-color: #f02020;
  }
  .github {
    margin: 30px auto;
  }
  
  .facts > h2 {
    text-align: center;
    font-size: 2rem;
    margin: 30px 0;
  }
  .facts > h2 > strong {
    color: #d60000;
    font-weight: 700;
  }
  
  .tab-controls {
    display: flex;
    list-style-type: none;
    margin: 0 0 16px;
    padding: 0;
  }
  
  .tab-controls button {
    background: transparent;
    border: none;
    color: #9a9a9a;
    padding: 0.5rem 1rem;
  }
  
  .tab-controls button.active {
    color: #495057;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
    border: 1px solid transparent;
    border-radius: 0.25rem;
  }
  
  .tab-content {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
  }
  .tab-content:not(.show) {
    display: none;
  }
  .tab-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='140'%3E%3Ctext x='140' y='70' dominant-baseline='middle' text-anchor='middle' fill='rgba(255%2C255%2C255%2C0.08)' font-family='Titillium Web%2C sans-serif' font-size='20' font-weight='900' letter-spacing='2' transform='rotate(-30 140 70)'%3EOpenPlayerJS%3C/text%3E%3C/svg%3E");
    background-size: 280px 140px;
    pointer-events: none;
    z-index: 0;
  }
  .tab-content > * {
    position: relative;
    z-index: 1;
  }

  .players {
    margin: 0 auto 50px;
    max-width: 800px;
  }
  .players > div {
    flex: 0 0 65%;
  }
  .players > p {
    margin: 0;
    margin-inline-start: 20px;
    line-height: 1.5;
    font-size: 1.2rem;
    margin-top: 66px;
  }
  
  pre {
    margin: 20px 0;
    padding: 20px 24px;
    font-family: "Roboto Mono";
    background: #1e1e1e;
    color: #d4d4d4;
    font-size: 0.55rem;
    border-radius: 6px;
    border-left: 3px solid #d60000;
  }
  pre code {
    line-height: 1.75;
  }

  pre .comment {
    color: #6272a4;
    font-style: italic;
  }

  pre .keyword {
    color: #ff79c6;
  }

  pre .constant {
    color: #f8f8f2;
  }
  pre .class {
    color: #8be9fd;
  }
  pre .method {
    color: #50fa7b;
  }

  pre .tag {
    color: #ff5555;
  }

  pre .attr-name {
    color: #ffb86c;
  }
  pre .attr-value {
    color: #f1fa8c;
  }

  pre .id {
    color: #bd93f9;
  }
  
  .browsers {
    position: relative;
    flex-direction: column;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .browsers > img {
    max-width: 300px;
    margin: 0 auto;
    display: block;
  }
  .browsers > div {
    position: absolute;
  }
  .browsers > div > img {
    animation-name: bounce;
    animation-direction: alternate;
    animation-timing-function: cubic-bezier(0.5, 0.05, 1, 0.5);
    animation-iteration-count: infinite;
    -webkit-animation-name: bounce;
    -webkit-animation-direction: alternate;
    -webkit-animation-timing-function: cubic-bezier(0.5, 0.05, 1, 0.5);
    -webkit-animation-iteration-count: infinite;
  }
  .browsers > div > img:first-of-type {
    animation-duration: 0.5s;
    -webkit-animation-duration: 0.5s;
  }
  .browsers > div > img:nth-of-type(2) {
    animation-duration: 0.25s;
    -webkit-animation-duration: 0.25s;
  }
  .browsers > div > img:nth-of-type(3) {
    animation-duration: 0.65s;
    -webkit-animation-duration: 0.65s;
  }
  .browsers > div > img:last-of-type {
    animation-duration: 0.45s;
    -webkit-animation-duration: 0.45s;
  }
  
  .form-group input[type="url"], .form-group input[type="text"] {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
  }
  
  .column {
    display: flex;
    flex-direction: column;
    flex-basis: 100%;
    flex: 1;
  }
  .row {
    max-width: 1024px;
    margin: 0 auto 30px;
    display: flex;
    column-count: 2;
    column-gap: 20px;
    flex-direction: column;
    margin: 0 50px;
  }
  
  #features > h1,
  #configuration > h1 {
    text-align: center;
  }
  
  .form-group {
    display: inline-flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
    padding: 0;
    margin: 0 0 20px;
    border: 0;
    vertical-align: top;
  }
  .panel-body {
    display: flex;
    flex-direction: column;
  }
  #types, #ads-type {
    display: flex;
    justify-content: flex-start;
    gap: 24px;
    flex-wrap: wrap;
  }
  form {
    margin-bottom: 30px;
  }
  form button {
    border-radius: 28px;
    border: none;
    color: #fff;
    font-size: 1.25rem;
    padding: 10px 20px 10px 20px;
    text-decoration: none;
  }
  
  form button:hover {
    text-decoration: none;
  }
  
  #load {
    background: #d96534;
  }
  
  #load:hover {
    background: #e8845d;
    background-image: -webkit-linear-gradient(top, #e8845d, #d96534);
    background-image: linear-gradient(to bottom, #e8845d, #d96534);
  }
  
  #permalink {
    background: #3498db;
  }
  
  #permalink:hover {
    background: #3cb0fd;
    background-image: -webkit-linear-gradient(top, #3cb0fd, #3498db);
    background-image: linear-gradient(to bottom, #3cb0fd, #3498db);
  }

  #configuration {
    margin-bottom: 60px;
  }

  footer {
    width: 100%;
    background-color: #1a1a1a;
    padding: 20px 0 50px;
    color: #fff;
    text-align: center;
  }

  .v3-badge {
    display: inline-block;
    background: #d60000;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 2px 10px;
    border-radius: 20px;
    vertical-align: middle;
    margin-left: 8px;
    text-transform: uppercase;
  }
  .hero-tagline {
    color: rgba(255,255,255,0.65);
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 24px;
    text-transform: uppercase;
  }
  .install-block {
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 14px 24px;
    font-family: "Roboto Mono", monospace;
    font-size: 0.9rem;
    color: #7ec699;
    text-align: center;
    margin: 16px auto 0;
    max-width: 460px;
    cursor: pointer;
    position: relative;
    user-select: all;
  }
  .install-block span.comment {
    color: rgba(255,255,255,0.3);
    display: block;
    font-size: 0.75rem;
    margin-bottom: 4px;
  }
  .packages-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    padding: 20px 40px 40px;
    max-width: 960px;
    margin: 0 auto;
  }
  .package-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 20px 24px;
    flex: 1 1 200px;
    max-width: 220px;
    text-align: center;
  }
  .package-card h3 {
    font-size: 0.85rem;
    font-family: "Roboto Mono", monospace;
    color: #f8c555;
    margin: 0 0 8px;
  }
  .package-card p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    margin: 0;
    line-height: 1.5;
  }
  .section-label {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #d60000;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
  }
  .contribute-cta {
    background: rgba(26,26,26,1);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
  }
  .contribute-cta h2 {
    font-size: 2rem;
    margin-bottom: 12px;
  }
  .contribute-cta p {
    color: rgba(255,255,255,0.65);
    max-width: 560px;
    margin: 0 auto 28px;
    line-height: 1.6;
    font-size: 1rem;
  }
  .cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
  }
  .btn-outline {
    border: 2px solid #d60000;
    color: #fff;
    background: transparent;
    padding: 12px 32px;
    border-radius: 28px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s;
  }
  .btn-outline:hover {
    background: #d60000;
  }
  .btn-solid {
    background: #d60000;
    color: #fff;
    padding: 12px 32px;
    border-radius: 28px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s;
  }
  .btn-solid:hover {
    background: #f02020;
  }
  
  @media (min-width: 768px) {
    .menu-mobile-item {
      display: none;
    }
    header > div {
      flex-direction: row;
    }
    .menu-item {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin: 0 20px;
      padding: 0;
    }
    .title {
      flex-direction: row-reverse;
    }
    .title > h1 {
      display: block;
      flex: 0 0 60%;
      font-size: 3rem;
      margin: 0.67em 0;
      margin-inline-start: -170px;
    }
    .title > img {
      max-width: 580px;
      margin: 0;
    }
    pre {
      font-size: 0.75rem;
    }
    .players {
      display: flex;
    }
    .browsers > img {
      max-width: 350px;
    }
    .row {
      flex-direction: row !important;
      margin: 0 auto !important;
    }
    #configuration > .row {
      min-width: 800px;
    }
    #features > div:nth-child(odd) {
      flex-direction: row-reverse !important;
    }

    pre code {
        margin: 0 auto;
    }
  }

  /* ── Small-screen overrides (< 768px) ─────────────────── */
  @media (max-width: 767px) {
    .title {
      padding-top: 80px;
    }
    .row {
      margin: 0 16px;
    }
    pre {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }
    .packages-grid {
      padding: 12px 16px 28px;
    }
    .install-block {
      font-size: 0.8rem;
      padding: 12px 16px;
    }
    .package-card {
      max-width: 100%;
    }
    .cta-buttons {
      flex-direction: column;
      align-items: center;
    }
    .players > p {
      margin-inline-start: 0;
      margin-top: 20px;
      padding-inline: 20px;
    }
    #configuration > .row {
      margin: 0 12px;
    }
    form button {
      font-size: 1rem;
      padding: 10px 16px;
    }
    .contribute-cta {
      padding: 40px 16px;
    }
    .hero-tagline {
      font-size: 1rem;
    }
  }