<style>
body {
    font-family: 'Inter', system-ui, sans-serif;
    margin: 0;
    background: #f9f9f9;
    color: #222;
}
.container {
    max-width: 900px;
    margin: auto;
    padding: 20px;
}
h1 {
    text-align: center;
    margin-bottom: 25px;
    font-weight: 600;
    color: #111;
}
form {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
input[type="text"] {
    padding: 10px 12px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    width: 220px;
    transition: border-color 0.2s;
}
input[type="text"]:focus {
    border-color: #0077ff;
    outline: none;
}
button {
    padding: 10px 18px;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
button.submit-btn {
    background: #0077ff;
    color: #fff;
}
button.submit-btn:hover {
    background: #005fcc;
}
button.reset-btn {
    background: #ccc;
    color: #222;
}
button.reset-btn:hover {
    background: #aaa;
}
.card {
    padding: 15px;
    border-radius: 12px;
    background: #fff;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.player-iframe {
    width: 100%;
    height: 70vh;
    border: 0;
    border-radius: 8px;
}
.fullscreen-btn {
    margin: 10px 0;
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 6px;
    background: #0077ff;
    color: #fff;
    border: none;
    transition: background 0.2s;
}
.fullscreen-btn:hover {
    background: #005fcc;
}
.error {
    color: #b00020;
    font-weight: bold;
    margin-top: 10px;
}
.examples {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #555;
}
.example {
    margin: 5px 0;
}
.kinopoisk-id {
    font-weight: 600;
    color: #0077ff;
}
.material-name {
    text-align: center;
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #111;
}


.movie-list { 
    display:flex; 
    flex-wrap:wrap; 
    gap:10px; 
    justify-content:center; 
}

.movie-link { 
    display:inline-block; 
    padding:10px 16px; 
    font-size:14px; 
    font-weight:bold; 
    color:white; 
    text-decoration:none; 
    border-radius:6px; 
    transition:all 0.3s ease; 
    cursor:pointer; 
    position:relative; 
    overflow:hidden; 
    background:#607d8b; /* базовый нейтральный цвет */
}

.movie-link::after { 
    content:''; 
    position:absolute; 
    left:50%; 
    top:50%; 
    width:0; 
    height:0; 
    background:rgba(255,255,255,0.2); 
    transform:translate(-50%,-50%); 
    border-radius:50%; 
    transition: width 0.4s ease, height 0.4s ease; 
    z-index:0; 
}

.movie-link:hover::after { 
    width:200%; 
    height:500%; 
}

.movie-link:hover { 
    opacity:0.95; 
}

/* Более нейтральные кнопки */
.btn-red { background:#b0a4a4; }      /* мягкий красный */
.btn-green { background:#8ca390; }    /* спокойный зеленый */
.btn-blue { background:#5f7d8a; }     /* синий сероватый */
.btn-orange { background:#cda17a; }   /* теплый бежево-оранжевый */
.btn-purple { background:#9e90a8; }   /* нежный фиолетовый */
.btn-pink { background:#d7a6b0; }     /* приглушенный розовый */
.btn-cyan { background:#7da1a0; }     /* мягкий голубой */
.btn-teal { background:#609b91; }     /* спокойный бирюзовый */

.random-movies h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.random-movies h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}


.tab-buttons button { padding:6px 12px; margin-right:8px; border:none; background:#eee; cursor:pointer; border-radius:4px; }
.tab-buttons button.active { background:#0077ff; color:#fff; }
/* .iframes-container iframe { width:100%; height:500px; border:0; margin-top:10px; } */

.iframes-container iframe { width: 100%; height: 40vh; border: 0; margin-top: 10px; }



.iframe-wrapper { position: relative; display: inline-block; width: 100%; }
.fullscreen-btn {
    position: absolute;
    top: 5px; right: 5px; z-index: 10;
background: rgb(0 119 255);
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
}




.card { border:1px solid #ccc; border-radius:6px; padding:15px; margin-top:20px; }
.reset-btn { padding:5px 10px; cursor:pointer; margin-top:10px; }
.error {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffe5e5;
    border: 1px solid #ffb3b3;
    color: #d93025;
    font-weight: 600;
    padding: 12px 15px;
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    animation: fadeIn 0.4s ease-in-out;
}

.error::before {
    content: "⚠️";
    font-size: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}


.home-fab {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #0077ff, #005ad9);
    color: #fff;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.25);
    transition: all 0.25s ease;
    z-index: 1000;
}
.home-fab:hover {
    background: linear-gradient(135deg, #005ad9, #0041a8);
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
@media (max-width: 600px) {
    .home-fab {
        bottom: 15px;
        right: 15px;
        width: 48px;
        height: 48px;
        font-size: 22px;
    }
}


.steps-container {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border-left: 6px solid #607d8b;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    font-size: 14px;
    color: #222;
    margin-bottom: 20px;
}
.steps-container h2 {
    color: #607d8b;
    font-size: 18px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap; /* для мобильных */
}
.step .icon {
    font-size: 20px;
    flex-shrink: 0;
}
.step .text {
    flex: 1;
    line-height: 1.5;
}
.step code {
    background: #e7f1ff;
    color: #0056b3;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 600;
}
.step .id {
    color: #d63384;
    font-weight: 700;
}
.step .btn {
    display: inline-block;
    background: #607d8b;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 13px;
    margin-left: 3px;
}



#bookmark-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.4s ease;
}
#bookmark-popup.hide { animation: fadeOut 0.3s ease forwards; }

.popup-content.cinema-style {
  background: #f7f7f7;
  color: #222;
  border-radius: 16px;
  padding: 30px 24px;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  transform: scale(0.95);
  animation: popIn 0.3s ease forwards;
}
.popup-content.cinema-style .emoji { font-size: 48px; margin-bottom: 10px; }
.popup-content.cinema-style h2 { margin: 10px 0; font-size: 1.35em; font-weight: 700; color: #333; }
.popup-content.cinema-style p { font-size: 1em; color: #555; margin-bottom: 14px; }
.popup-content.cinema-style .shortcut {
  font-size: 1em;
  color: #0077cc;
  background: rgba(0, 119, 204, 0.1);
  border-radius: 8px;
  display: inline-block;
  padding: 8px 14px;
  margin: 10px 0 18px 0;
}
.popup-buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.popup-btn {
  display: inline-block;
  background: #0077cc;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(0,119,204,0.3);
  transition: 0.2s;
}
.popup-btn:hover { background: #005fa3; transform: scale(1.05); }
.popup-btn.watch-now { background: #ff9800; box-shadow: 0 0 12px rgba(255,152,0,0.3); }
.popup-btn.watch-now:hover { background: #ffb300; }
.popup-content.cinema-style .tip { font-size: 0.9em; color: #777; margin-top: 16px; }

@keyframes fadeIn { from {opacity:0} to {opacity:1} }
@keyframes fadeOut { from {opacity:1} to {opacity:0} }
@keyframes popIn { from {opacity:0; transform:scale(0.9)} to {opacity:1; transform:scale(1)} }


/* Адаптивность для мобильных */
@media (max-width: 480px) {
    .step {
        flex-direction: row;
        gap: 8px;
    }
    .step .icon {
        font-size: 18px;
    }
    .step .text {
        font-size: 13px;
    }
}



@media(max-width:600px){
    input[type="text"]{ width:100%; }
    .player-iframe { height:50vh; }
}





</style>
