/* --------------------------------------------------------------------------
   Wrapper
--------------------------------------------------------------------------- */
.dt-stream-search {
    max-width: 800px;
    margin: 20px auto;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Input */
.dt-stream-search-input-wrap {
    margin-bottom: 16px;
    position: relative;
}

/* Ikon inde i input-feltet */
.dt-stream-search-input-wrap::before {
    content: "\1F50D"; /* 🔍 */
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 17px;
    color: #777;
    pointer-events: none;
}

.dt-stream-search-input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    font-size: 16px;
    border-radius: 24px;
    border: 1px solid #d0d0d0;
    background: #fff;

    box-shadow:
        0 1px 2px rgba(0,0,0,0.08),
        0 1px 3px rgba(0,0,0,0.04);

    transition: all 0.18s ease;
    outline: none;
}

/* Hover-effekt */
.dt-stream-search-input:hover {
    box-shadow:
        0 2px 4px rgba(0,0,0,0.12),
        0 3px 6px rgba(0,0,0,0.08);
    border-color: #c6c6c6;
}

/* Fokus-effekt */
.dt-stream-search-input:focus {
    border-color: #4285f4;
    box-shadow:
        0 0 0 2px rgba(66,133,244,0.25),
        0 2px 4px rgba(0,0,0,0.12);
}

/* Placeholder */
.dt-stream-search-input::placeholder {
    color: #888;
}

/* Resultater */
.dt-stream-search-results {
    margin-top: 10px;
}

.dt-stream-search-item {
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

/* MAIN LAYOUT: poster + info + actions */
.dt-stream-search-main {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Poster thumbnail */
.dt-stream-search-poster {
    width: 60px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Info tager al plads */
.dt-stream-search-info {
    flex: 1;
}

.dt-stream-search-title {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 4px;
}

.dt-stream-search-meta {
    font-size: 13px;
    color: #666;
}

.dt-stream-search-tag {
    display: inline-block;
    background: #f1f1f1;
    border-radius: 999px;
    padding: 2px 8px;
    margin-right: 6px;
    font-size: 11px;
}

/* Genres */
.dt-stream-search-genres {
    margin-top: 6px;
    color: #777;
    font-size: 13px;
}

/* Actions (højre side) */
.dt-stream-search-actions {
    margin-left: auto;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Links */
.dt-stream-search-link {
    color: #000000 !important;
    text-decoration: none;
}

.dt-stream-search-link:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   NY DISKRET STREAMING-KNAP (Forslag 1)
--------------------------------------------------------------------------- */
.dt-stream-search-fancy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;

    background: #f7f7f7;
    border: 1px solid #d0d0d0;
    border-radius: 999px;
    color: #333;
    cursor: pointer;

    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: background 0.15s ease, transform 0.15s ease;
}

.dt-stream-search-fancy-btn:hover {
    background: #ececec;
    transform: translateY(-1px);
}
.dt-stream-search-jw {
    display: none;
}
.dt-stream-search-jw.open {
    display: block;
}

/* Pil-ikon med rotation */
.dt-stream-search-fancy-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.25s ease;
}

/* Pil roteres når knappen har class "open" */
.dt-stream-search-fancy-btn.open .dt-stream-search-fancy-icon {
    transform: rotate(180deg);
}


/* --------------------------------------------------------------------------
   JUSTWATCH – Tiles
--------------------------------------------------------------------------- */

.dt-stream-search-jw {
    margin-top: 12px;
}

.dt-stream-search-jw-loading,
.dt-stream-search-jw-empty,
.dt-stream-search-jw-error {
    font-size: 14px;
    color: #666;
    padding: 8px 4px;
}

.dt-stream-search-jw-section {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #eee;

    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.dt-stream-search-jw-section-title {
    width: 100%;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.dt-stream-search-jw-offer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;

    background: #fcfcfc;
    border: 1px solid #ddd;
    border-radius: 10px;

    padding: 10px;
    width: 110px;

    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dt-stream-search-jw-offer:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

/* Logo */
.dt-stream-search-jw-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 4px;
}

/* Provider navn */
.dt-stream-search-jw-provider {
    font-size: 13px;
    font-weight: 600;
}

/* Badges */
/* Wrapper spacing som tidligere */
.dt-stream-search-jw-badges {
    display: flex;
    gap: 6px; /* mere luft end den nuværende 4px */
}

/* Standard badge */
.dt-stream-search-jw-badge {
    padding: 3px 8px;        /* mere padding end nu */
    font-size: 11px;         /* tidligere størrelse */
    border-radius: 4px;
    background: #e3e3e3;
    color: #333;
    font-weight: 600;
    margin-bottom: 5px;
    margin-top: 5px;
}

/* SD = mild/grå */
.dt-stream-search-jw-badge[data-quality="sd"] {
    background: #d5d5d5;
    color: #333;
}

/* HD = blød blå (ikke så mættet som #1976d2) */
.dt-stream-search-jw-badge[data-quality="hd"] {
    background: #4a90e2;   /* tidligere blå-tone */
    color: #fff;
}

/* 4K = lidt blødere guld */
.dt-stream-search-jw-badge[data-quality="4k"] {
    background: #c9a43b;   /* mindre skarp guld */
    color: #fff;
}

/* Link */
.dt-stream-search-jw-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.dt-stream-search-jw-info a {
    font-size: 10px;
    color: #0056c4;
	text-align: center;
}

.dt-stream-search-jw-info a:hover {
    text-decoration: underline;
}
/* Clear-knap i søgefeltet */
.dt-stream-search-input-wrap .dt-clear-input {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #ac1818;
    cursor: pointer;
    display: none; /* skjult som standard */
    user-select: none;
	font-weight: 800;
}

.dt-stream-search-input-wrap .dt-clear-input:hover {
    color: #555;
}

/* --------------------------------------------------------------------------
   Responsivitet
--------------------------------------------------------------------------- */
@media (max-width: 600px) {

    /* Layout på mobil: poster + info i én række */
    .dt-stream-search-main {
        flex-direction: row;       /* ← behold info ved siden af poster */
        align-items: flex-start;
        gap: 12px;
        flex-wrap: wrap;           /* ← gør det muligt at sende actions ned */
    }

   /* Info skal kun fylde sin naturlige bredde */
    .dt-stream-search-info {
        flex: 1 1 auto;
    }

    /* ACTIONS SKAL NED UNDER INFO */
    .dt-stream-search-actions {
        flex: 1 1 100%;            /* ← tving ny linje */
        margin-left: 0;            /* ← fjern desktop right alignment */
        margin-top: 8px;
        text-align: left;
        align-items: flex-start;
    }

    .dt-stream-search-jw-offer {
        width: 100px;
    }
	.dt-stream-search-fancy-btn {
    margin-left: 75px;
}
}
